NULL pointer dereference in JONASBN Crypt::OpenSSL::PKCS12
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA. Impact type from CWE-476.
Summary
Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute. print_attribute() sizes the destination buffer for a BMPSTRING attribute from its declared byte length with `Renew(*attribute, length, char)`. A zero length attribute makes that a zero size reallocation, which Perl implements as a free returning NULL, so the buffer pointer becomes NULL, the following `strncpy` copies nothing, and the caller dereferences NULL in the `strlen()` it passes to `newSVpvn()`. A zero length BMPSTRING is even length, so the ASN.1 decoder accepts it and the value reaches this code. The UTF8STRING, OCTET STRING and BIT STRING arms size on `length + 1` or `length * 4 + 1` and are unaffected. Any caller that passes an untrusted PKCS#12 file to info_as_hash() can crash the process. info() prints attribute values directly without sizing a buffer and is unaffected.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA Crypt::OpenSSL::PKCS12 (JONASBN) Fixed in 1.98
Timeline
- 2026-10-02 Threatist record created from CVE-2026-17510
- 2026-10-03 Alias added: GHSA-h64x-hp84-8636
References
More JONASBN vulnerabilities
- TI-2026-07468 Out-of-bounds write in JONASBN Crypt::OpenSSL::PKCS12 CVSS 3.1CRITICAL 9.8
- TI-2026-07663 Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded… CVSS 3.1CRITICAL 9.8
- TI-2026-08140 Out-of-bounds read in JONASBN Crypt::OpenSSL::PKCS12 CVSS 3.1CRITICAL 9.1
- TI-2026-41849 Out-of-bounds read in JONASBN Crypt::OpenSSL::X509 CVSS 3.1CRITICAL 9.1
- TI-2026-41848 NULL pointer dereference in JONASBN Crypt::OpenSSL::X509 CVSS 3.1HIGH 7.5
Sources
- CVE-2026-17510 · CVE Program
- CVE-2026-17510 · NVD
- FIRST EPSS
- GHSA-h64x-hp84-8636 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences