CVE-2026-8721
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
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

Product or packageVersionsReported by
Crypt-OpenSSL-PKCS12up to 1.94CVE List

Classification

CWE-170

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Las versiones de Crypt::OpenSSL::PKCS12 hasta la 1.94 para Perl truncan contraseñas con NULLs incrustados. Los parámetros de contraseña en PKCS12.xs se declaran como char *, lo que se enruta a través del typemap predeterminado de Perl a SvPV_nolen. La longitud de Perl se descarta. El código C (o OpenSSL internamente) llama a strlen() en el búfer. Cualquier byte de contraseña en o después del primer NULL se descarta silenciosamente. Las contraseñas binarias / derivadas de KDF / derivadas de HMAC pierden entropía sin ninguna advertencia.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-8721 changed 2026-05-18CVE Terms of Use
NVDCVE-2026-8721 changed 2026-10-25Public domain