openssl
Affected
- introduced
0.9.7, fixed0.10.79(semver)
Fixed versions
0.10.79
Fix
- Fixed version
0.10.79cargo update -p openssl --precise 0.10.79
Advisory
Also known as: CVE-2026-42327, RUSTSEC-2026-0474
rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs
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.
High Basis: The source's own band: HIGH
0.9.7, fixed 0.10.79 (semver)0.10.79
0.10.79cargo update -p openssl --precise 0.10.79Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0