Advisory

RUSTSEC-2026-0474

Also known as: CVE-2026-42327, GHSA-xp3w-r5p5-63rr

Summary

X509Ref::ocsp_responders can produce a &str that is not valid UTF-8

Details

X509Ref::ocsp_responders returns the OCSP responder URLs from a certificate's Authority Information Access extension as OpensslString values, which dereference to str without validating the bytes. OpenSSL does not require these IA5String values to be ASCII, so for a certificate with non-UTF-8 bytes in an OCSP access location, safe code ends up holding a &str that is not valid UTF-8, which is undefined behavior. Certificates often come from untrusted peers.

ocsp_responders was added in 0.9.7. 0.10.79 checks each URL and returns an error if it is not valid UTF-8.

Severity

Not rated by the source.

Dates

Published
2026-05-04 12:00 UTC
Modified
2026-11-10 14:00 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: RustSec Advisory Database · CC0-1.0

Sources & licences