CVE-2026-17510

Source
https://cve.org/CVERecord?id=CVE-2026-17510
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-17510.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-17510
Downstream
Published
2026-08-09T01:21:30.439Z
Modified
2026-08-28T11:30:51.744298106Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Crypt::OpenSSL::PKCS12 versions before 1.98 for Perl allow a NULL pointer dereference in print_attribute via a zero length BMPSTRING attribute
Details

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 infoashash() can crash the process. info() prints attribute values directly without sizing a buffer and is unaffected.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/17xxx/CVE-2026-17510.json",
    "cna_assigner": "CPANSec",
    "cwe_ids": [
        "CWE-476"
    ]
}
References

Affected packages

Git / github.com/dsully/perl-crypt-openssl-pkcs12

Affected ranges

Type
GIT
Repo
https://github.com/dsully/perl-crypt-openssl-pkcs12
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.98"
        }
    ]
}

Affected versions

0.*
0.10
0.9
1.*
1.0
1.1
1.10
1.11
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
1.91
1.92
1.93
1.94
1.95
v1.*
v1.96
v1.97

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-17510.json"