Skip to content
Heist/ feed
Back to feed
Critical

Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-8721
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 21:28 UTC · Revision 1

Source evidence

Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs

core-osv · Original source

Published 17 May 2026, 18:51 UTC

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.

osv:CVE-2026-8721
Complete source record
{
  "id": "aa2c40629bd90cf708713c742c563385c508fa9776d6956d2c836c15bbfe4eee",
  "url": "https://osv.dev/vulnerability/CVE-2026-8721",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Crypt::OpenSSL::PKCS12 versions through 1.94 for Perl truncates passwords with embedded NULLs",
    "summary": "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.",
    "evidence": "osv:CVE-2026-8721",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-8721",
      "aliases": [
        "CVE-2026-8721"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/dsully/perl-crypt-openssl-pkcs12",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "621d94a6d389f043ecb00bcea5e75e7a1783d34e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.94"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.94",
            "1.93",
            "1.92",
            "1.91",
            "1.11",
            "1.10",
            "1.9",
            "1.8",
            "1.7",
            "1.6",
            "1.5",
            "1.4",
            "1.3",
            "1.2",
            "1.1",
            "1.0",
            "0.10",
            "0.9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-8721.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.730313965Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8721.json",
        "https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.95/view/Changes.md",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-8721",
        "https://github.com/dsully/perl-crypt-openssl-pkcs12"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-170"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8721.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-8721",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490252,
  "published_at": "2026-05-17T18:51:41.42+00:00"
}