CVE-2026-8721 Details
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.
A vulnerability exists in Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl, where passwords containing embedded NULLs are truncated. This issue arises because password parameters in PKCS12.xs are declared as char pointers, which are processed through Perl's default typemap in a way that discards the true length of the password. As a result, any password byte at or after the first NULL is silently omitted. This truncation is problematic for binary, key derivation function (KDF)-derived, or HMAC-derived passwords, which lose entropy without any warning.
Users are advised to update to Crypt::OpenSSL::PKCS12 version 1.95, which addresses this vulnerability by implementing length-aware password handling. Instructions for downloading the latest version are available on the MetaCPAN page for Crypt-OpenSSL-PKCS12.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 17, 2026CISA-ADP
Assessed May 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md | CPANSec | Release NotesVendor |
| http://www.openwall.com/lists/oss-security/2026/05/17/6 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-170 | Improper Null Termination | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Crypt::OpenSSL::PKCS12 | <= 1.94 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 18, 2026 | CVE Modified | CISA-ADP |
| May 17, 2026 | CVE Modified | CVE |
| May 17, 2026 | New CVE Received | CPANSec |
Volerion