{"id":"CVE-2026-42327","published":"2026-05-14T20:17:39Z","modified":"2026-05-15T18:05:15Z","title":"rust-openssl: undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs","vendor":"rust-openssl","product":"rust-openssl","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00211,"percentile":0.11491,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-xp3w-r5p5-63rr","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":2.3},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"rust-openssl","affectedVersions":[{"vendor":"rust-openssl","product":"rust-openssl","versions":[">= 0.9.7, < 0.10.79"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-15T16:28:41.920658Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"openssl","vulnerableRanges":[">=0.9.7, <0.10.79"],"patched":["0.10.79"],"from":["GHSA-xp3w-r5p5-63rr","RUSTSEC-2026-0474"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-30474","exploited":false,"provenance":"source"}}