What’s Vulnerable › Vulnerabilities
CVE-2026-9265: Crypt::OpenSSL::PKCS12 versions before 1.96 for Perl permits a heap OOB read in print_attribute UTF8STRING path
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-20 · updated 2026-10-25
- Weakness: CWE-125
Description
Crypt::OpenSSL::PKCS12 versions before 1.96 for Perl permits a heap OOB read in print_attribute UTF8STRING path. print_attribute() copies a UTF8STRING ASN.1 attribute value into a heap buffer sized exactly to its declared length via strncpy, leaving no NUL terminator. Downstream callers run strlen() on the result and pass the inflated length to newSVpvn(), copying attacker-influenced adjacent heap bytes into a Perl scalar.
Affected products
- JONASBN Crypt::OpenSSL::PKCS12: before 1.96 — fixed in 1.96
How to fix
Upgrade to a fixed version: JONASBN Crypt::OpenSSL::PKCS12 1.96. Check the vendor advisory for mitigations.
References
- https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/a7bd2f319fa8aab8177b3d767ea06dd85ceb3173.patch
- https://github.com/dsully/perl-crypt-openssl-pkcs12/issues/55
- https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.96/source/Changes.md
Get alerted when CVE-2026-9265 or the next vulnerability affects your stack