Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
CVE-2026-17510: Perl Crypt::OpenSSL::PKCS12 versions before 1.98 can crash with a malicious file
CVE-2026-17510 · published 26 days ago
Summary
Perl's Crypt::OpenSSL::PKCS12 module is vulnerable to a crash when processing certain types of files. This issue affects users who process untrusted PKCS#12 files. To protect against this issue, update to version 1.98 or later of the Crypt::OpenSSL::PKCS12 module.
What to do
- Update jonasbn crypt::openssl::pkcs12 to version 1.98 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Debian:11 | debian | libcrypt-openssl-pkcs12-perl | All versions |
| Debian:13 | debian | libcrypt-openssl-pkcs12-perl | All versions |
| Debian:14 | debian | libcrypt-openssl-pkcs12-perl | All versions |
| – | jonasbn | crypt::openssl::pkcs12 | < 1.98 |
Original advisory text
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...
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.
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.
References
- https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.98/source/Changes.md release-notes
- https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/6cb282d8d8e8ded485955... patch
- http://www.openwall.com/lists/oss-security/2026/08/09/1
- https://security-tracker.debian.org/tracker/CVE-2026-17510 Vendor Advisory
- https://github.com/dsully/perl-crypt-openssl-pkcs12 Product
- https://nvd.nist.gov/vuln/detail/CVE-2026-17510 Vendor Advisory
- https://cpan.org/modules URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/17xxx/CVE-2026-17510... Vendor Advisory
Severity
7.5
High
Exploitation
EPSS <1%
Type
CWE-476NULL Pointer Dereference
Timeline
Published9 Aug 2026
Updated3 Sep 2026
First seen9 Aug 2026
Sources
CVE-2026-17510 · NVD
CVE-2026-17510 · MITRE
CVE-2026-17510 · OSV
DEBIAN-CVE-2026-17510 · OSV
Monitor software like this
Free during beta