Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl have out-of-bounds (OOB) write flaws
Summary
| CVE | CVE-2026-8507 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-17 19:16:24 UTC |
| Updated | 2026-05-18 00:16:36 UTC |
| Description | 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(). |
Risk And Classification
Problem Types: CWE-787 | CWE-787 CWE-787 Out-of-bounds Write
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | JONASBN | CryptOpenSSLPKCS12 | affected 1.94 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/dsully/perl-crypt-openssl-pkcs12/issues/55 | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| github.com/dsully/perl-crypt-openssl-pkcs12/issues/56 | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| github.com/dsully/perl-crypt-openssl-pkcs12/commit/b9d0469c6d8f5b5c6c2a4... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| www.openwall.com/lists/oss-security/2026/05/17/5 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-05-13T00:00:00.000Z | Issue discovered |
| CNA | 2026-05-16T00:00:00.000Z | Maintainer notified |
| CNA | 2026-05-17T00:00:00.000Z | Public disclosure |
| CNA | 2026-05-17T00:00:00.000Z | Crypt-OpenSSL-PKCS12 1.95 released. |
Solutions
CNA: Upgrade to 1.95 or later.
Workarounds
CNA: Do not parse untrusted PKCS12 files via info or info_as_hash.
There are currently no legacy QID mappings associated with this CVE.