CVE-2026-17510Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libcrypt-openssl-pkcs12-perl | Fix pending | UBUNTU-CVE-2026-17510 | |
| Ubuntu 26.04 | libcrypt-openssl-pkcs12-perl | Under investigation | UBUNTU-CVE-2026-17510 | |
| Ubuntu 24.04 | libcrypt-openssl-pkcs12-perl | Under investigation | UBUNTU-CVE-2026-17510 | |
| Ubuntu 20.04 | libcrypt-openssl-pkcs12-perl | Fix pending | UBUNTU-CVE-2026-17510 | |
| Ubuntu 18.04 | libcrypt-openssl-pkcs12-perl | Fix pending | UBUNTU-CVE-2026-17510 | |
| Ubuntu 16.04 | libcrypt-openssl-pkcs12-perl | Fix pending | UBUNTU-CVE-2026-17510 | |
| Debian 14 | libcrypt-openssl-pkcs12-perl | Fixed | 1.98-1 | DEBIAN-CVE-2026-17510 |
| Debian 13 | libcrypt-openssl-pkcs12-perl | Fix pending | DEBIAN-CVE-2026-17510 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- JONASBN Crypt::OpenSSL::PKCS12: affected: before 1.98; fixed in
1.98
Solution: Upgrade to Crypt::OpenSSL::PKCS12 1.98 or later, which sizes the buffer on the decoded string length plus one and writes an explicit terminator.
Workaround: For deployments that cannot upgrade to 1.98, ensure that PKCS#12 files passed to info_as_hash() come from trusted sources.
Vendor advisories:
- https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.98/source/Changes.md (release-notes)
- https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/6cb282d8d8e8ded4859551cd2d3cfa… (patch)
References
- https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.98/source/Changes.md
- https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/6cb282d8d8e8ded4859551cd2d3cfa7c6028ce48.patch
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.