9.8
/ 10
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
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.
AI Analysis
Password truncation vulnerability in Crypt::OpenSSL::PKCS12 due to embedded NULLs
Basic Information
ID
CVE-2026-8721
Source
CPANSec
Published
May 17, 2026 at 18:51
Modified
May 18, 2026 at 12:56
Affected Product
Vendor
JONASBN
Product
Crypt::OpenSSL::PKCS12
Affected Versions
JONASBN Crypt::OpenSSL::PKCS12 0
CWE Classification
AI Assessment
AI Score
9.8 / 10
AI Severity
Critical
Vendor
JONASBN
Product
Crypt::OpenSSL::PKCS12
Version
through 1.94