RUSTSEC-2026-0474

Source
https://rustsec.org/advisories/RUSTSEC-2026-0474
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0474.json
JSON Data
https://api.test.osv.dev/v1/vulns/RUSTSEC-2026-0474
Aliases
Published
2026-05-04T12:00:00Z
Modified
2026-11-10T14:00:04Z
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / openssl

Package

Name
openssl
View open source insights on deps.dev
Purl
pkg:cargo/openssl

Affected ranges

Type
SEMVER
Events
Introduced
0.9.7
Fixed
0.10.79

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "openssl::x509::X509Ref::ocsp_responders"
        ],
        "os": []
    }
}

Database specific

categories
[]
cvss
null
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0474.json"