CVE-2026-42327rust-openssl
High 8.7 No auth needed
Follow: this CVE · rust-openssl · rust-openssl We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 4.0
- 8.7
- EPSS
- —
- Auth required
- No
- Published
- May 14, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for rust-openssl.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | openssl |
≥ 0.9.7 < 0.10.79 |
0.10.79 |
cargo update -p openssl --precise 0.10.79 |
| crates.io | openssl |
≥ 0.9.7 < 0.10.79 |
0.10.79 |
cargo update -p openssl --precise 0.10.79 |
Per OSV / GitHub Advisories (GHSA-xp3w-r5p5-63rr, RUSTSEC-2026-0474). Check the version in your lockfile before upgrading.
Affected products
- rust-openssl · rust-openssl
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for rustup · SUSE · openSUSE-SU-2026:22456-1 · Nov 24, 2026 High
- Security update for rustup · SUSE · openSUSE-SU-2026:22016-1 · Oct 2, 2026 High
- Security update for rustup · SUSE · SUSE-SU-2026:24014-1 · Oct 2, 2026 High
Also: SUSE (+59)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.