CVE-2026-8721
CWE-170Published: May 17, 2026· Updated: May 18, 2026
Official 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.
Risk Analysis
This critical vulnerability in Crypt::OpenSSL::PKCS12 for Perl truncates passwords with embedded NULLs, potentially reducing their entropy. The issue arises because Perl's default typemap discards length information, leading to strlen() being called on the buffer and silently dropping bytes after the first NULL. With a CVSS score of 9.8, this is an urgent concern for applications relying on this module for secure password handling.
No public exploit is currently known for this vulnerability. The flaw is remotely exploitable and requires no authentication.
Upgrade Crypt::OpenSSL::PKCS12 for Perl to a version beyond 1.94. Ensure that applications using this module handle passwords as binary data with explicit length rather than relying on null-terminated strings.
Technical Analysis
CVE-2026-8721 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
All References (2)
Quick Facts
Related CVEs (CWE-170)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2026-8721 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts