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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-05-04T12:00:00.000Z
- Modified: 2026-11-10T14:10:43.787Z
- Also known as: GHSA-xp3w-r5p5-63rr, RUSTSEC-2026-0474
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.7 to before 0.10.79, 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. This vulnerability is fixed in 0.10.79.

(As written by CVE List.)

## Affected

- rust-openssl rust-openssl: >= 0.9.7, < 0.10.79
- openssl (crates.io): from 0.9.7 before 0.10.79

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xp3w-r5p5-63rr> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42327> (advisory)
- <https://github.com/rust-openssl/rust-openssl> (package)
- <https://crates.io/crates/openssl> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0474.html> (advisory)
- <https://github.com/rust-openssl/rust-openssl/pull/2631> (web)

## Sources

- CVE List: [CVE-2026-42327](https://www.cve.org/CVERecord?id=CVE-2026-42327), CVE Terms of Use, modified 2026-05-15
- GitHub Advisory Database: [GHSA-xp3w-r5p5-63rr](https://github.com/advisories/GHSA-xp3w-r5p5-63rr), CC-BY-4.0, modified 2026-11-10
- RustSec Advisory Database: [RUSTSEC-2026-0474](https://rustsec.org/advisories/RUSTSEC-2026-0474.html), CC0-1.0, modified 2026-11-10
- NVD: [CVE-2026-42327](https://nvd.nist.gov/vuln/detail/CVE-2026-42327), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-42327 · Whole record: https://cve.day/CVE-2026-42327.json · Rebuilt by cve.day 2026-11-25T22:59:21.784Z
