Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-8721 EUVD-2026-30707GHSA-hh8h-hxcj-2pm7

Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs

Published May 17, 2026 · Updated May 18, 2026 · Assigned by CPANSec

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 products

VendorProductAffectedFixed
JONASBN Crypt::OpenSSL::PKCS12 ≤ 1.94 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcrypt-openssl-pkcs12-perl 1.95-1 —
Debian 13 libcrypt-openssl-pkcs12-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 26.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 25.10 libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 24.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 20.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —
Ubuntu 16.04 LTS libcrypt-openssl-pkcs12-perl No fix yet —

References