ubuntu-cve-2026-17510
Vulnerability from osv_ubuntu
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.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "0.7-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl@0.7-1build1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.7-1",
"0.7-1build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "0.8-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl@0.8-1build1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.7-3ubuntu2",
"0.8-1",
"0.8-1build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "1.2-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl@1.2-1build1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.2-1",
"1.2-1build1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "1.9-3build4"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl@1.9-3build4?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.9-2",
"1.9-3",
"1.9-3build1",
"1.9-3build3",
"1.9-3build4"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcrypt-openssl-pkcs12-perl",
"binary_version": "1.94-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "libcrypt-openssl-pkcs12-perl",
"purl": "pkg:deb/ubuntu/libcrypt-openssl-pkcs12-perl@1.94-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.94-1"
]
}
],
"aliases": [],
"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 info_as_hash() can crash the process. info() prints attribute values directly without sizing a buffer and is unaffected.",
"id": "UBUNTU-CVE-2026-17510",
"modified": "2026-08-09T02:16:00Z",
"published": "2026-08-09T02:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-17510"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-17510"
},
{
"type": "REPORT",
"url": "https://github.com/dsully/perl-crypt-openssl-pkcs12/commit/6cb282d8d8e8ded4859551cd2d3cfa7c6028ce48.patch"
},
{
"type": "REPORT",
"url": "https://metacpan.org/release/JONASBN/Crypt-OpenSSL-PKCS12-1.98/source/Changes.md"
},
{
"type": "REPORT",
"url": "http://www.openwall.com/lists/oss-security/2026/08/09/1"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-17510"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.