{"api_version":"1","generated_at":"2026-05-18T03:59:35+00:00","cve":"CVE-2026-8721","urls":{"html":"https://cve.report/CVE-2026-8721","api":"https://cve.report/api/cve/CVE-2026-8721.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-8721","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-8721"},"summary":{"title":"Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs","description":"Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs.\n\nPassword parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen.  The Perl length is discarded.\n\nThe 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.","state":"PUBLISHED","assigner":"CPANSec","published_at":"2026-05-17 19:16:25","updated_at":"2026-05-17 22:16:21"},"problem_types":["CWE-170","CWE-170 CWE-170 Improper Null Termination"],"metrics":[],"references":[{"url":"https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md","name":"https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2026/05/17/6","name":"http://www.openwall.com/lists/oss-security/2026/05/17/6","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-8721","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8721","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"JONASBN","product":"Crypt::OpenSSL::PKCS12","version":"affected 1.94 custom","platforms":[]}],"timeline":[{"source":"CNA","time":"2026-05-13T00:00:00.000Z","lang":"en","value":"CPANSec identified issue"},{"source":"CNA","time":"2026-05-13T00:00:00.000Z","lang":"en","value":"Author was notified"},{"source":"CNA","time":"2026-05-17T00:00:00.000Z","lang":"en","value":"Maintainer released patch version"}],"solutions":[{"source":"CNA","title":"","value":"Upgrade to 1.95 or later.","time":"","lang":"en"}],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2026-05-17T21:18:34.820Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"url":"http://www.openwall.com/lists/oss-security/2026/05/17/6"}],"title":"CVE Program Container"}],"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Crypt-OpenSSL-PKCS12","product":"Crypt::OpenSSL::PKCS12","programFiles":["PKCS12.xs"],"programRoutines":[{"name":"Crypt::OpenSSL::PKCS12::mac_ok"},{"name":"Crypt::OpenSSL::PKCS12::changepass"},{"name":"Crypt::OpenSSL::PKCS12::create"},{"name":"Crypt::OpenSSL::PKCS12::create_as_string"},{"name":"Crypt::OpenSSL::PKCS12::certificate"},{"name":"Crypt::OpenSSL::PKCS12::ca_certificate"},{"name":"Crypt::OpenSSL::PKCS12::private_key"},{"name":"Crypt::OpenSSL::PKCS12::info_as_hash"},{"name":"Crypt::OpenSSL::PKCS12::info"}],"repo":"https://github.com/dsully/perl-crypt-openssl-pkcs12","vendor":"JONASBN","versions":[{"lessThanOrEqual":"1.94","status":"affected","version":"0","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs.\n\nPassword parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen.  The Perl length is discarded.\n\nThe 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."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-170","description":"CWE-170 Improper Null Termination","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-05-17T18:51:41.420Z","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec"},"references":[{"tags":["release-notes"],"url":"https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md"}],"solutions":[{"lang":"en","value":"Upgrade to 1.95 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-05-13T00:00:00.000Z","value":"CPANSec identified issue"},{"lang":"en","time":"2026-05-13T00:00:00.000Z","value":"Author was notified"},{"lang":"en","time":"2026-05-17T00:00:00.000Z","value":"Maintainer released patch version"}],"title":"Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs","x_generator":{"engine":"cpansec-cna-tool 0.1"}}},"cveMetadata":{"assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","assignerShortName":"CPANSec","cveId":"CVE-2026-8721","datePublished":"2026-05-17T18:51:41.420Z","dateReserved":"2026-05-16T01:07:36.063Z","dateUpdated":"2026-05-17T21:18:34.820Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-05-17 19:16:25","lastModifiedDate":"2026-05-17 22:16:21","problem_types":["CWE-170","CWE-170 CWE-170 Improper Null Termination"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"8721","Ordinal":"1","Title":"Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates ","CVE":"CVE-2026-8721","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"8721","Ordinal":"1","NoteData":"Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs.\n\nPassword parameters in PKCS12.xs are declared char *, which routes through Perl's default typemap to SvPV_nolen.  The Perl length is discarded.\n\nThe 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.","Type":"Description","Title":"Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates "}]}}}