Skip to content
Heist/ feed
Back to feed
High

libcrypt-openssl-pkcs12-perl — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-17510

Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute. print_attribute() sizes the destination buffer for a BMPSTRING attribute from its declared byte length with `Renew(*attribute, length, char)`. A zero length attribute makes that a zero size reallocation, which Perl implements as a free returning NULL, so the buffer pointer becomes NULL, the following `strncpy` copies nothing, and the caller dereferences NULL in the `strlen()` it passes to `newSVpvn()`. A zero length BMPSTRING is even length, so the ASN.1 decoder accepts it and the value reaches this code. The UTF8STRING, OCTET STRING and BIT STRING arms size on `length + 1` or `length * 4 + 1` and are unaffected. Any caller that passes an untrusted PKCS#12 file to info_as_hash() can crash the process. info() prints attribute values directly without sizing a buffer and is unaffected.

Products
libcrypt-openssl-pkcs12-perl
Affected versions
0.7-1, 0.7-1build1, 0.7-3ubuntu2, 0.8-1, 0.8-1build1, 1.2-1, 1.2-1build1, 1.9-2, 1.9-3, 1.9-3build1, 1.9-3build3, 1.9-3build4, 1.94-1, 1.95-1, 1.96-1, 1.97-1, 1.99-1
Fixed versions
Not specified
CVEs
CVE-2026-17510
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:07 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-17510

core-osv · Original source

Published 9 Aug 2026, 02:16 UTC

Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute. print_attribute() sizes the destination buffer for a BMPSTRING attribute from its declared byte length with `Renew(*attribute, length, char)`. A zero length attribute makes that a zero size reallocation, which Perl implements as a free returning NULL, so the buffer pointer becomes NULL, the following `strncpy` copies nothing, and the caller dereferences NULL in the `strlen()` it passes to `newSVpvn()`. A zero length BMPSTRING is even length, so the ASN.1 decoder accepts it and the value reaches this code. The UTF8STRING, OCTET STRING and BIT STRING arms size on `length + 1` or `length * 4 + 1` and are unaffected. Any caller that passes an untrusted PKCS#12 file to info_as_hash() can crash the process. info() prints attribute values directly without sizing a buffer and is unaffected.

osv:UBUNTU-CVE-2026-17510

libcrypt-openssl-pkcs12-perl

Fixed versions: Not specified

libcrypt-openssl-pkcs12-perl

Fixed versions: Not specified

libcrypt-openssl-pkcs12-perl

Fixed versions: Not specified

libcrypt-openssl-pkcs12-perl

Fixed versions: Not specified

libcrypt-openssl-pkcs12-perl

Fixed versions: Not specified

libcrypt-openssl-pkcs12-perl

Fixed versions: Not specified

Complete source record
{
  "id": "883e8d2068f2a918addb77eeaf1e719f072435d53cad8d35c4ba01042412e937",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-17510",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-17510",
    "summary": "Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute. print_attribute() sizes the destination buffer for a BMPSTRING attribute from its declared byte length with `Renew(*attribute, length, char)`. A zero length attribute makes that a zero size reallocation, which Perl implements as a free returning NULL, so the buffer pointer becomes NULL, the following `strncpy` copies nothing, and the caller dereferences NULL in the `strlen()` it passes to `newSVpvn()`. A zero length BMPSTRING is even length, so the ASN.1 decoder accepts it and the value reaches this code. The UTF8STRING, OCTET STRING and BIT STRING arms size on `length + 1` or `length * 4 + 1` and are unaffected. Any caller that passes an untrusted PKCS#12 file to info_as_hash() can crash the process. info() prints attribute values directly without sizing a buffer and is unaffected.",
    "evidence": "osv:UBUNTU-CVE-2026-17510",
    "products": [
      {
        "name": {
          "value": "libcrypt-openssl-pkcs12-perl",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.7-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.7-1build1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libcrypt-openssl-pkcs12-perl",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.7-3ubuntu2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.8-1build1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libcrypt-openssl-pkcs12-perl",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.2-1build1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libcrypt-openssl-pkcs12-perl",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.9-2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.9-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.9-3build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.9-3build3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.9-3build4",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libcrypt-openssl-pkcs12-perl",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.94-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.95-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.96-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.97-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.99-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libcrypt-openssl-pkcs12-perl",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.94-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-17510",
      "aliases": [
        "UBUNTU-CVE-2026-17510"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libcrypt-openssl-pkcs12-perl",
            "purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.7-1",
            "0.7-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcrypt-openssl-pkcs12-perl",
                "binary_version": "0.7-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libcrypt-openssl-pkcs12-perl",
            "purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.7-3ubuntu2",
            "0.8-1",
            "0.8-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcrypt-openssl-pkcs12-perl",
                "binary_version": "0.8-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libcrypt-openssl-pkcs12-perl",
            "purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.2-1",
            "1.2-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcrypt-openssl-pkcs12-perl",
                "binary_version": "1.2-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libcrypt-openssl-pkcs12-perl",
            "purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.9-2",
            "1.9-3",
            "1.9-3build1",
            "1.9-3build3",
            "1.9-3build4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcrypt-openssl-pkcs12-perl",
                "binary_version": "1.9-3build4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libcrypt-openssl-pkcs12-perl",
            "purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.94-1",
            "1.95-1",
            "1.96-1",
            "1.97-1",
            "1.99-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcrypt-openssl-pkcs12-perl",
                "binary_version": "1.99-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libcrypt-openssl-pkcs12-perl",
            "purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.94-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-17510.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libcrypt-openssl-pkcs12-perl",
                "binary_version": "1.94-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:36.278781168Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-17510"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-17510",
        "https://www.cve.org/CVERecord?id=CVE-2026-17510",
        "https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/6cb282d8d8e8ded4859551cd2d3cfa7c6028ce48.patch",
        "https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.98/source/Changes.md"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-17510",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355836,
  "published_at": "2026-08-09T02:16:00+00:00"
}