Advisory

GHSA-xp3w-r5p5-63rr

Also known as: CVE-2026-42327, RUSTSEC-2026-0474

Summary

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

Details

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 Basis: The source's own band: HIGH

Dates

Published
2026-05-05 21:46 UTC
Modified
2026-11-10 14:10 UTC

Affected packages and fixes

openssl

crates.io · All systems

Affected

  • introduced 0.9.7, fixed 0.10.79 (semver)

Fixed versions

0.10.79

Fix

  • Fixed version 0.10.79
    cargo update -p openssl --precise 0.10.79

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences