Bug 2477618 (CVE-2026-42327)

Summary: CVE-2026-42327 rust-openssl: rust-openssl: Arbitrary code execution via specially crafted certificate
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: anpicker, anthomas, bdettelb, brasmith, bsmejkal, cochase, dbosanac, derez, doconnor, dranck, dschmidt, eborisov, ehelms, erezende, ggainey, gotiwari, hasun, jachapma, jcantril, jfula, jgrulich, jhorak, jkoehler, jlanda, jowilson, jreimann, juwatts, kshier, lball, lphiri, mdessi, mhulan, mreynolds, mrizzi, mvyas, ngough, nmoumoul, nyancey, ometelka, osousa, pcattana, pcreech, progier, ptisnovs, rchan, rhel-process-autobot, rjohnson, rojacob, simaishi, smallamp, smcdonal, snegrini, spichugi, stcannon, syedriko, tbordaz, teagle, tmalecek, tpopela, vashirov, veshanka, watson-tool-maintainers, xdharmai, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in rust-openssl, a library providing OpenSSL bindings for the Rust programming language. A remote attacker could exploit this vulnerability by presenting a specially crafted certificate. This certificate, containing non-UTF-8 characters in its OCSP (Online Certificate Status Protocol) access location, can cause the application to process an invalid string. This leads to undefined behavior, which may allow an attacker to achieve arbitrary code execution or cause a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2479904, 2479905    
Bug Blocks:    

Description OSIDB Bzimport 2026-05-14 21:01:35 UTC
rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.7 to before 0.10.79, 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. This vulnerability is fixed in 0.10.79.