OpenSSL
Heap Use-After-Free in the PKCS7_verify() Function
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.0.0, < 4.0.1
- >= 3.6.0, < 3.6.3
- >= 3.5.0, < 3.5.7
- >= 3.4.0, < 3.4.6
- >= 3.0.0, < 3.0.21
- >= 1.1.1, < 1.1.1zh
- >= 1.0.2, < 1.0.2zq
Fixed in 4.0.1, 3.6.3, 3.5.7, 3.4.6, 3.0.21, 1.1.1zh, 1.0.2zq
Mitigation
Upgrade OpenSSL to 4.0.1 or 3.6.3 or 3.5.7 or 3.4.6 or 3.0.21 or 1.1.1zh or 1.0.2zq or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 1.6 days after publication; not in CISA KEV. First PoC: HORKimhab/CVE-2026-45447 (created 11 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.4 PoCs
PoCs 4
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| HORKimhab/CVE-2026-45447 | 11 Jun 2026 +1.6 d | 0 | PoC via PoC Index |
| 0xBlackash/CVE-2026-45447 | 13 Jun 2026 +3.9 d | 1 | PoC |
| 0xredash/CVE-2026-45447 | 13 Jun 2026 +3.9 d | 1 | PoC |
| ashrafzaryouh/CVE-2026-45447 | 13 Jun 2026 +3.9 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.