CVEfocus › CVE database › CVE-2026-17510

CVE-2026-17510Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in…

CVSS 7.5 HighEPSS 0.6% (higher than 43% of CVEs)Published 2026-08-09Updated 2026-08-12Assigner: CPANSec

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.

CWE-476

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

1Fixed
5Fix pending
2Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libcrypt-openssl-pkcs12-perlFix pendingUBUNTU-CVE-2026-17510
Ubuntu 26.04libcrypt-openssl-pkcs12-perlUnder investigationUBUNTU-CVE-2026-17510
Ubuntu 24.04libcrypt-openssl-pkcs12-perlUnder investigationUBUNTU-CVE-2026-17510
Ubuntu 20.04libcrypt-openssl-pkcs12-perlFix pendingUBUNTU-CVE-2026-17510
Ubuntu 18.04libcrypt-openssl-pkcs12-perlFix pendingUBUNTU-CVE-2026-17510
Ubuntu 16.04libcrypt-openssl-pkcs12-perlFix pendingUBUNTU-CVE-2026-17510
Debian 14libcrypt-openssl-pkcs12-perlFixed1.98-1DEBIAN-CVE-2026-17510
Debian 13libcrypt-openssl-pkcs12-perlFix pendingDEBIAN-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.

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:

References

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.