CVE-2026-9265: CWE-125 Out-of-bounds Read in JONASBN Crypt::OpenSSL::PKCS12
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.
AI Analysis
Technical Summary
Crypt::OpenSSL::PKCS12 versions prior to 1.96 contain a heap out-of-bounds read vulnerability in the print_attribute UTF8STRING path. The function copies an ASN.1 UTF8STRING attribute value into a heap buffer sized exactly to the declared length using strncpy, but does not append a null terminator. Subsequent calls to strlen() on this non-null-terminated buffer cause it to read beyond the allocated memory, passing an inflated length to newSVpvn(). This leads to copying of adjacent heap bytes influenced by an attacker into a Perl scalar, resulting in a heap out-of-bounds read (CWE-125). The vulnerability has a CVSS 3.1 score of 9.1, indicating critical severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality and availability impact.
Potential Impact
Successful exploitation allows an attacker to read adjacent heap memory beyond the intended buffer, potentially disclosing sensitive information and causing denial of service due to memory corruption or application instability. The vulnerability does not directly impact integrity but can severely affect confidentiality and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary mitigation is currently documented. Users should monitor the vendor's communications for patches or updates addressing this vulnerability before upgrading to version 1.96 or later.
CVE-2026-9265: CWE-125 Out-of-bounds Read in JONASBN Crypt::OpenSSL::PKCS12
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.
CVSS v3.1
Score 9.1critical
Affected software
pkg:github/Crypt-OpenSSL-PKCS12Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Crypt::OpenSSL::PKCS12 versions prior to 1.96 contain a heap out-of-bounds read vulnerability in the print_attribute UTF8STRING path. The function copies an ASN.1 UTF8STRING attribute value into a heap buffer sized exactly to the declared length using strncpy, but does not append a null terminator. Subsequent calls to strlen() on this non-null-terminated buffer cause it to read beyond the allocated memory, passing an inflated length to newSVpvn(). This leads to copying of adjacent heap bytes influenced by an attacker into a Perl scalar, resulting in a heap out-of-bounds read (CWE-125). The vulnerability has a CVSS 3.1 score of 9.1, indicating critical severity with network attack vector, low attack complexity, no privileges required, no user interaction, and high confidentiality and availability impact.
Potential Impact
Successful exploitation allows an attacker to read adjacent heap memory beyond the intended buffer, potentially disclosing sensitive information and causing denial of service due to memory corruption or application instability. The vulnerability does not directly impact integrity but can severely affect confidentiality and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary mitigation is currently documented. Users should monitor the vendor's communications for patches or updates addressing this vulnerability before upgrading to version 1.96 or later.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-05-22T01:38:26.750Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a35f350daaa79a87dc2cb84
Added to database: 06/20/2026, 01:56:32 UTC
Last enriched: 06/27/2026, 21:51:06 UTC
Last updated: 08/01/2026, 07:18:02 UTC
Views: 105
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.