All reports
High

rust-openssl has undefined behavior in X509Ref::ocsp_responders for certificates with non-UTF-8 OCSP URLs

Affected versions

Version ranges need review.

Rust / Cargoopenssl
Affected versions
>=0.9.7 <0.10.79
Fixed version
0.10.79
Rust / Cargoopenssl
Affected versions
>= 0.9.7, < 0.10.79
Fixed version
0.10.79

Exploitation

CVE-2026-42327

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-21

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.

Links