Use After Free in OpenSSL
CVE-2026-45447
Issue summary: A specially crafted PKCS#7 or S/MIME signed message could
trigger a use-after-free during PKCS#7 signature verification.
Impact summary: A use-after-free may result in process crashes, heap
corruption, or potentially remote code execution.
When processing a PKCS#7 or S/MIME signed message, if the SignedData
digestAlgorithms field is present as an empty ASN.1 SET, OpenSSL may
incorrectly free a caller-owned BIO during PKCS7_verify(). A subsequent
use of the BIO by the calling application results in a use-after-free
condition.
In the common case this occurs when the application later calls
BIO_free() on the BIO originally passed to PKCS7_verify(). Depending
on allocator behavior and application-specific BIO usage patterns, this
may result in a crash or other memory corruption. In some application
contexts this may potentially be exploitable for remote code execution.
Applications that process PKCS#7 or S/MIME signed messages using OpenSSL
PKCS#7 APIs may be affected. Applications using the CMS APIs for this
processing are not affected.
The FIPS modules in 4.0, 3.6, 3.5, 3.4, and 3.0 are not affected by this
issue, as the affected code is outside the OpenSSL FIPS module boundary.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.040, 90.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- OpenSSL — versions 4.0.0, 3.6.0, 3.5.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
4 public repositories with exploit or proof-of-concept code for this CVE:
- 0xBlackash/CVE-2026-45447 (1 star, last pushed 2026-06-13): CVE-2026-45447
- 0xredash/CVE-2026-45447 (1 star, last pushed 2026-06-13): CVE-2026-45447
- ashrafzaryouh/CVE-2026-45447 (1 star, last pushed 2026-06-13): CVE-2026-45447
- HORKimhab/CVE-2026-45447 (last pushed 2026-06-11): CVE-2026-45447 - Draft
References
- github.com/openssl/security/commit/3aad5eb7af4de4ee0633c30a8541a54d9bbde63c
- github.com/openssl/security/commit/7d4a980c62258c5910cc883936e0c8dbab4d75a8
- github.com/openssl/security/commit/9dfd688ad2290fc5075cacbc9bf0c9a93eefed54
- github.com/openssl/security/commit/a541ae8bfe849a30cc885e8780715c0f488e496c
- github.com/openssl/security/commit/c505d7559da5d5f9f2c3913c6883a5562ce7273e
- OpenSSL Advisory (vendor-advisory, Vendor Advisory)
- 4.0.1 git commit (Patch, patch)
- 3.5.7 git commit (Patch, patch)
- 3.0.21 git commit (Patch, patch)
- 3.4.6 git commit (Patch, patch)
This CVE has public exploit evidence. See the latest CVEs with public exploits.