Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. openssl
  4. ›
  5. CVE-2026-42327

CVE-2026-42327: rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs

May 5, 2026 (updated May 15, 2026)

X509Ref::ocsp_responders returns OCSP responder URLs from a certificate’s AIA extension as OpensslString, whose Deref<Target = str> wraps the raw bytes with str::from_utf8_unchecked. OpenSSL does not enforce that the underlying IA5String is ASCII, so a certificate with non-UTF-8 bytes in its OCSP accessLocation causes safe Rust code to construct a &str that violates the UTF-8 invariant — resulting in undefined behavior.

References

  • github.com/advisories/GHSA-xp3w-r5p5-63rr
  • github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xp3w-r5p5-63rr
  • nvd.nist.gov/vuln/detail/CVE-2026-42327

Code Behaviors & Features

Detect and mitigate CVE-2026-42327 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.9.7 before 0.10.79

Fixed versions

  • 0.10.79

Solution

Upgrade to version 0.10.79 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

cargo/openssl/CVE-2026-42327.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:38 +0000.