{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-42327","id":"CVE-2026-42327","title":"rust-openssl: undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs","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 OCS","descriptionLong":"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.","published":"2026-05-14T20:17:39.923Z","updated":"2026-11-10T14:10:43.787985131Z","reserved":"2026-04-26T12:37:18.171Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","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","rating":"high","source":"GitHub_M"},{"version":"4.0","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","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"}],"rating":"high","products":["rust-openssl"],"affectedProducts":[{"vendor":"rust-openssl","product":"rust-openssl","defaultStatus":null,"versions":[{"version":">= 0.9.7, < 0.10.79","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"openssl","purl":"pkg:cargo/openssl","ranges":[">=0.9.7 <0.10.79"],"fixed":["0.10.79"],"advisory":"GHSA-xp3w-r5p5-63rr"}],"cwes":["CWE-20"],"aliases":["GHSA-xp3w-r5p5-63rr","RUSTSEC-2026-0474"],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xp3w-r5p5-63rr","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42327.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42327","tags":["advisory"]},{"url":"https://github.com/rust-openssl/rust-openssl","tags":["package"]},{"url":"https://crates.io/crates/openssl","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0474.html","tags":["advisory"]},{"url":"https://github.com/rust-openssl/rust-openssl/pull/2631","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00211,"epssPercentile":0.11392,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-42327","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42327","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-42327","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xp3w-r5p5-63rr","ok":true,"note":"GHSA-xp3w-r5p5-63rr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42327","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["openssl"],"critical":[],"attention":null}