CVEfocus › CVE database › CVE-2026-8507

CVE-2026-8507Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl have out-of-bounds (OOB) write flaws

CVSS 9.8 CriticalEPSS 0.8% (higher than 53% of CVEs)Published 2026-05-17Updated 2026-05-18Assigner: CPANSec

Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl have out-of-bounds (OOB) write flaws. When parsing a PKCS12 file, with a >= 1 GiB OCTET STRING (or BIT STRING) attribute on a SAFEBAG, via info() or info_as_hash(), a heap out-of-bounds write would be triggered with remote-code-execution potential (RCE) due to a signed integer overflow in the size calculation passed to Renew().

CWE-787

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
1Will not fix

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-8507
Ubuntu 26.04libcrypt-openssl-pkcs12-perlUnder investigationUBUNTU-CVE-2026-8507
Ubuntu 25.10libcrypt-openssl-pkcs12-perlWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-8507
Ubuntu 24.04libcrypt-openssl-pkcs12-perlUnder investigationUBUNTU-CVE-2026-8507
Ubuntu 20.04libcrypt-openssl-pkcs12-perlFix pendingUBUNTU-CVE-2026-8507
Ubuntu 18.04libcrypt-openssl-pkcs12-perlFix pendingUBUNTU-CVE-2026-8507
Ubuntu 16.04libcrypt-openssl-pkcs12-perlFix pendingUBUNTU-CVE-2026-8507
Debian 14libcrypt-openssl-pkcs12-perlFixed1.95-1DEBIAN-CVE-2026-8507
Debian 13libcrypt-openssl-pkcs12-perlFix pendingDEBIAN-CVE-2026-8507

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 1.95 or later.

Workaround: Do not parse untrusted PKCS12 files via info or info_as_hash.

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.