{"id":"GHSA-xp3w-r5p5-63rr","aliases":["CVE-2026-42327","RUSTSEC-2026-0474"],"title":"rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"`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.","severity":"high","score":8.7,"published":"2026-05-04T12:00:00.000Z","modified":"2026-11-10T14:10:43.787Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"openssl","sources":[{"name":"OSV · GHSA-xp3w-r5p5-63rr","url":"https://osv.dev/vulnerability/GHSA-xp3w-r5p5-63rr"}],"ranges":[{"events":[{"introduced":"0.9.7"},{"fixed":"0.10.79"}],"type":"SEMVER"}],"versions":[],"fixed":["0.10.79"]},{"ecosystem":"crates.io","name":"openssl","sources":[{"name":"OSV · RUSTSEC-2026-0474","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0474"}],"ranges":[{"events":[{"introduced":"0.9.7"},{"fixed":"0.10.79"}],"type":"SEMVER"}],"versions":[],"fixed":["0.10.79"]}],"sourceAffected":[],"references":["https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xp3w-r5p5-63rr","https://nvd.nist.gov/vuln/detail/CVE-2026-42327","https://github.com/rust-openssl/rust-openssl","https://crates.io/crates/openssl","https://rustsec.org/advisories/RUSTSEC-2026-0474.html","https://github.com/rust-openssl/rust-openssl/pull/2631"],"sources":[{"name":"OSV","id":"GHSA-xp3w-r5p5-63rr","modified":"2026-11-10T14:10:43.787985131Z","url":"https://osv.dev/vulnerability/GHSA-xp3w-r5p5-63rr"},{"name":"OSV","id":"RUSTSEC-2026-0474","modified":"2026-11-10T14:00:02.466675967Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0474"}],"assessments":[{"source":"OSV","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","score":8.7}],"products":[],"remediation":[],"observedAt":"2026-11-10T14:22:06.240Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T02:15:33.662Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-10T14:30:31.171Z","attemptedAt":"2026-11-10T14:30:31.171Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-10T14:30:31.920Z","attemptedAt":"2026-11-10T14:30:31.920Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-10T14:30:31.171Z","attemptedAt":"2026-11-10T14:30:31.171Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-10T14:30:31.171Z","attemptedAt":"2026-11-10T14:30:31.171Z"}],"evidence":[{"source":"ENISA EUVD","id":"EUVD-2026-30474","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-30474","modified":"May 15, 2026, 6:05:15 PM","score":8.7,"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","checkedAt":"2026-11-10T14:30:31.171Z"},{"source":"NVD","id":"CVE-2026-42327","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42327","modified":"2026-06-17T10:47:41.687","score":8.7,"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","checkedAt":"2026-11-10T14:30:31.171Z"},{"source":"FIRST EPSS","id":"CVE-2026-42327","url":"https://www.first.org/epss/","probability":0.00211,"percentile":0.11331,"date":"2026-11-09","checkedAt":"2026-11-10T14:30:31.171Z"},{"source":"GitHub Advisory Database","id":"GHSA-xp3w-r5p5-63rr","url":"https://github.com/advisories/GHSA-xp3w-r5p5-63rr","modified":"2026-05-15T23:45:53Z","checkedAt":"2026-11-10T14:30:31.920Z"}],"aiSummary":null}