Vulnerability · Published May 17, 2026 · Assigned by CPANSec
CVE-2026-8721Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs
Critical 9.8
In plain English
A critical-severity security flaw in Crypt::OpenSSL::PKCS12 from JONASBN. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | libcrypt-openssl-pkcs12-perl | no fix listed | DEBIAN-CVE-2026-8721 |
| Debian:14 | libcrypt-openssl-pkcs12-perl | 1.95-1 | DEBIAN-CVE-2026-8721 |
| Ubuntu:24.04:LTS | libcrypt-openssl-pkcs12-perl | no fix listed | UBUNTU-CVE-2026-8721 |
| Ubuntu:25.10 | libcrypt-openssl-pkcs12-perl | no fix listed | UBUNTU-CVE-2026-8721 |
| Ubuntu:26.04:LTS | libcrypt-openssl-pkcs12-perl | no fix listed | UBUNTU-CVE-2026-8721 |
| Ubuntu:26.10 | libcrypt-openssl-pkcs12-perl | no fix listed | UBUNTU-CVE-2026-8721 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| JONASBN | Crypt::OpenSSL::PKCS12 | 0 – through 1.94 |
Weakness: CWE-170 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H