Crypt::OpenSSL::PKCS12 Password Truncation Vulnerability

Vulnerability

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.

Impact

Exploitation of this vulnerability leads to unintended password truncation, causing loss of entropy in passwords derived from binary, KDF, or HMAC sources.

Remediation

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.

Added: May 17, 2026, 7:18 PM
Updated: May 17, 2026, 7:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
0.6
exploitability
7.4
remediation
0.0
relevance
8.6
threat
0.0
urgency
2.9
incentive
4.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.