CVE-2026-58102
Full vulnerability record from the local CVENow database.
Description
Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via a long certificate extension OID in hv_exts. When building the extension hash (via extensions(), extensions_by_long_name(), extensions_by_oid(), or has_extension_oid()), the code passes OBJ_obj2txt()'s return value as the hash-key length; because that value is the OID's full text length rather than the bytes written to the fixed-size buffer (129 bytes), an OID whose text is longer than the 129-byte buffer causes a read past the allocation, exposing adjacent heap memory as the returned hash key. extensions_by_name() uses the static shortname path and is not affected.
Severity
CRITICAL
CVSS score
9.1
(v3.1)
Vulnerability status
Analyzed
Source identifier
9b29abf9-4ab0-4765-b253-1875cd9b441e
Published
2026-07-13 23:16:47.127000
Last modified
2026-10-24 22:10:00.210000
View original CVE JSON
{
"id": "CVE-2026-58102",
"sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"published": "2026-07-13T23:16:47.127",
"lastModified": "2026-10-24T22:10:00.210",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via a long certificate extension OID in hv_exts.\n\nWhen building the extension hash (via extensions(), extensions_by_long_name(), extensions_by_oid(), or has_extension_oid()), the code passes OBJ_obj2txt()'s return value as the hash-key length; because that value is the OID's full text length rather than the bytes written to the fixed-size buffer (129 bytes), an OID whose text is longer than the 129-byte buffer causes a read past the allocation, exposing adjacent heap memory as the returned hash key. extensions_by_name() uses the static shortname path and is not affected."
},
{
"lang": "es",
"value": "Las versiones de Crypt::OpenSSL::X509 anteriores a la 2.1.3 para Perl permiten una lectura fuera de límites del montón a través de un OID de extensión de certificado largo en hv_exts.\n\nAl construir el hash de extensión (a través de extensions(), extensions_by_long_name(), extensions_by_oid(), o has_extension_oid()), el código pasa el valor de retorno de OBJ_obj2txt() como la longitud de la clave del hash; porque ese valor es la longitud de texto completa del OID en lugar de los bytes escritos en el búfer de tamaño fijo (129 bytes), un OID cuyo texto es más largo que el búfer de 129 bytes provoca una lectura más allá de la asignación, exponiendo memoria adyacente del montón como la clave de hash devuelta. extensions_by_name() utiliza la ruta de nombre corto estática y no se ve afectada."
}
],
"affected": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"affectedData": [
{
"vendor": "JONASBN",
"product": "Crypt::OpenSSL::X509",
"defaultStatus": "unaffected",
"collectionURL": "https://cpan.org/modules",
"packageName": "Crypt-OpenSSL-X509",
"programFiles": [
"X509.xs"
],
"programRoutines": [
{
"name": "hv_exts"
},
{
"name": "Crypt::OpenSSL::X509::extensions"
},
{
"name": "Crypt::OpenSSL::X509::extensions_by_long_name"
},
{
"name": "Crypt::OpenSSL::X509::extensions_by_oid"
}
],
"repo": "https://github.com/dsully/perl-crypt-openssl-x509",
"versions": [
{
"version": "0",
"lessThan": "2.1.3",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
"baseScore": 9.1,
"baseSeverity": "CRITICAL",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "NONE",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 5.2
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-14T13:02:35.283353Z",
"id": "CVE-2026-58102",
"options": [
{
"exploitation": "none"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-125"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:jonasbn:crypt\\:\\:openssl\\:\\:x509:*:*:*:*:*:perl:*:*",
"versionEndExcluding": "2.1.3",
"matchCriteriaId": "D2DF3628-106C-4788-8797-A30E048275AF"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/dsully/perl-crypt-openssl-x509/commit/757289bfce095455c104d4adfe9312e7b339620f.patch",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"tags": [
"Patch"
]
},
{
"url": "https://metacpan.org/release/JONASBN/Crypt-OpenSSL-X509-2.1.3/source/Changes.md",
"source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"tags": [
"Release Notes"
]
}
]
}