GHSA-xp3w-r5p5-63rr

Suggest an improvement
Source
https://github.com/advisories/GHSA-xp3w-r5p5-63rr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-xp3w-r5p5-63rr/GHSA-xp3w-r5p5-63rr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xp3w-r5p5-63rr
Aliases
  • CVE-2026-42327
Downstream
Related
Published
2026-05-05T21:46:38Z
Modified
2026-05-16T00:06:01.659271Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "github_reviewed": true,
    "severity": "HIGH",
    "nvd_published_at": "2026-05-14T21:16:45Z",
    "cwe_ids": [
        "CWE-20"
    ],
    "github_reviewed_at": "2026-05-05T21:46:38Z"
}
References

Affected packages

crates.io / openssl

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.9.7
Fixed
0.10.79

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-xp3w-r5p5-63rr/GHSA-xp3w-r5p5-63rr.json"