CVE-2026-42327
HIGH 8.7CVSS 4.0rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs
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.
- Published
- 14 May 2026
- Last modified
- 10 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-20
- Also known as
- GHSA-xp3w-r5p5-63rrRUSTSEC-2026-0474
- Sources
- NVDJSONOSV GHSA-xp3w-r5p5-63rrJSONOSV RUSTSEC-2026-0474JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | openssl | >= 0.9.7, < 0.10.79 | 0.10.79 |
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
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 14 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 May 2026)