CPANSA-Crypt-OpenSSL-PKCS12-2026-8721: Crypt-OpenSSL-PKCS12 vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-05-17T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-05-17T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 9.8 | Severity | |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability 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.
Vulnerabilities
CVE-2026-8721
Vulnerability DescriptionCrypt::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.
| Weakness | CWE-170 : Improper Null Termination |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Crypt-OpenSSL-PKCS12 less than or equal 1.94 |
|
Fixed
- Crypt-OpenSSL-PKCS12 greater than or equal 1.95
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-Crypt-OpenSSL-PKCS12-2026-8721 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-crypt-openssl-pkcs12-2026-8721.json - https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md external
https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md - http://www.openwall.com/lists/oss-security/2026/05/17/6 external
http://www.openwall.com/lists/oss-security/2026/05/17/6 - CVE-2026-8721 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-8721
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Sun May 17 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/