{"id":"RUSTSEC-2026-0474","summary":"`X509Ref::ocsp_responders` can produce a `&str` that is not valid UTF-8","details":"`X509Ref::ocsp_responders` returns the OCSP responder URLs from a certificate's Authority Information Access extension as `OpensslString` values, which dereference to `str` without validating the bytes. OpenSSL does not require these IA5String values to be ASCII, so for a certificate with non-UTF-8 bytes in an OCSP access location, safe code ends up holding a `&str` that is not valid UTF-8, which is undefined behavior. Certificates often come from untrusted peers.\n\n`ocsp_responders` was added in 0.9.7. 0.10.79 checks each URL and returns an error if it is not valid UTF-8.","aliases":["CVE-2026-42327","GHSA-xp3w-r5p5-63rr"],"modified":"2026-11-10T14:00:02.466675967Z","published":"2026-05-04T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/openssl"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0474.html"},{"type":"WEB","url":"https://github.com/rust-openssl/rust-openssl/pull/2631"}],"affected":[{"package":{"name":"openssl","ecosystem":"crates.io","purl":"pkg:cargo/openssl"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.9.7"},{"fixed":"0.10.79"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"functions":["openssl::x509::X509Ref::ocsp_responders"],"arch":[],"os":[]}},"database_specific":{"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0474.json","categories":[],"cvss":null}}],"schema_version":"1.9.2"}