{"id":"CVE-2026-8721","state":"PUBLISHED","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.","publishedAt":"2026-05-17T18:51:41.420Z","updatedAt":"2026-05-18T12:56:41.486Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["JONASBN Crypt::OpenSSL::PKCS12"],"affected":[{"vendor":"JONASBN","product":"Crypt::OpenSSL::PKCS12","packageName":"Crypt-OpenSSL-PKCS12","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"1.94","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","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"}],"references":["https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md","http://www.openwall.com/lists/oss-security/2026/05/17/6"],"weaknesses":["CWE-170"],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/8xxx/CVE-2026-8721.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-8721","state":"PUBLISHED","datePublished":"2026-05-17T18:51:41.420Z","dateUpdated":"2026-05-18T12:56:41.486Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-05-16T01:07:36.063Z"},"containers":{"cna":{"title":"Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs","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."}],"affected":[{"vendor":"JONASBN","product":"Crypt::OpenSSL::PKCS12","packageName":"Crypt-OpenSSL-PKCS12","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"1.94","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","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"}],"references":[{"url":"https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-170","description":"CWE-170 Improper Null Termination","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-05-17T18:51:41.420Z"},"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"}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/05/17/6"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-05-17T21:18:34.820Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-05-18T12:56:25.907387Z","id":"CVE-2026-8721","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-18T12:56:41.486Z"}}]}}}