# CVE-2026-8721: Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-05-17T18:51:41.420Z
- Modified: 2026-10-25T23:10:00.167Z
- Weaknesses: CWE-170
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Crypt-OpenSSL-PKCS12: up to 1.94

## References

- <https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/05/17/6>

## Sources

- CVE List: [CVE-2026-8721](https://www.cve.org/CVERecord?id=CVE-2026-8721), CVE Terms of Use, modified 2026-05-18
- NVD: [CVE-2026-8721](https://nvd.nist.gov/vuln/detail/CVE-2026-8721), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-8721 · Whole record: https://cve.day/CVE-2026-8721.json · Rebuilt by cve.day 2026-11-25T22:59:21.898Z
