Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs
Summary
| CVE | CVE-2026-8721 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-17 19:16:25 UTC |
| Updated | 2026-05-17 22:16:21 UTC |
| Description | Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs. Password parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen. The Perl length is discarded. The C code (or OpenSSL internally) calls strlen() on the buffer. Any password byte at or after the first NULL is silently dropped. Binary / KDF-derived / HMAC-derived passwords lose entropy without any warnings. |
Risk And Classification
Problem Types: CWE-170 | CWE-170 CWE-170 Improper Null Termination
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | JONASBN | CryptOpenSSLPKCS12 | affected 1.94 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| www.openwall.com/lists/oss-security/2026/05/17/6 | 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 | CPANSec identified issue |
| CNA | 2026-05-13T00:00:00.000Z | Author was notified |
| CNA | 2026-05-17T00:00:00.000Z | Maintainer released patch version |
Solutions
CNA: Upgrade to 1.95 or later.
There are currently no legacy QID mappings associated with this CVE.