CVE-2026-42327 rust-openssl: undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- OpenSSLUbuntuDebian
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.
Upgrade path
9 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/rust-openssl(Debian 12) | = 0.10.45-1; = 0.10.57-1; = 0.10.64-1; = 0.10.68-1 +7 more | No fix listed | No fix yet |
| debian/rust-openssl(Debian 13) | = 0.10.72-1; = 0.10.73-1; = 0.10.78-1; = 0.10.79-1 +2 more | No fix listed | No fix yet |
| ubuntu/rust-openssl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-openssl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-openssl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-openssl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| crates.io openssl(crates.io) | >= 0.9.7, < 0.10.79 | 0.10.79 | Fixed |
| debian/rust-openssl(Debian 14) | < 0.10.79-1; = 0.10.72-1; = 0.10.73-1; = 0.10.78-1 | 0.10.79-1 | Fixed |
| rust-openssl | = >= 0.9.7, < 0.10.79 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rust-openssl | = >= 0.9.7, < 0.10.79 | No fix listed |
| crates.io openssl(crates.io) | >= 0.9.7, < 0.10.79 | 0.10.79 |
| debian/rust-openssl(Debian:12) | All versions | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.45-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.57-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.64-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.68-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.70-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.72-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.73-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.78-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.79-1 | No fix listed |
| debian/rust-openssl(Debian:12) | = 0.10.81-1 | No fix listed |
| debian/rust-openssl(Debian:13) | All versions | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.72-1 | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.73-1 | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.78-1 | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.79-1 | No fix listed |
| debian/rust-openssl(Debian:13) | = 0.10.81-1 | No fix listed |
| debian/rust-openssl(Debian:14) | < 0.10.79-1 | 0.10.79-1 |
| debian/rust-openssl(Debian:14) | = 0.10.72-1 | No fix listed |
| debian/rust-openssl(Debian:14) | = 0.10.73-1 | No fix listed |
| debian/rust-openssl(Debian:14) | = 0.10.78-1 | No fix listed |
| ubuntu/rust-openssl(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/rust-openssl(Ubuntu:24.04) | All versions | No fix listed |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/rust-openssl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rust-openssl(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xp3w-r5p5-63rr vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- crates.io product
- rustsec.org vendor-advisory
- github.com
- github.com
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2477618 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-42327 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking