Vulnerability · Published Jul 13, 2026 · Assigned by CPANSec

CVE-2026-58102Crypt::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

Critical 9.1

In plain English

A critical-severity out-of-bounds read in Crypt::OpenSSL::X509 from JONASBN. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.3%top 72.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24perl-crypt-openssl-x5092.1.3-r0ALPINE-CVE-2026-58102
Debian:12libcrypt-openssl-x509-perlno fix listedDEBIAN-CVE-2026-58102
Debian:13libcrypt-openssl-x509-perlno fix listedDEBIAN-CVE-2026-58102
Debian:14libcrypt-openssl-x509-perl2.1.3-1DEBIAN-CVE-2026-58102
Ubuntu:22.04:LTSlibcrypt-openssl-x509-perlno fix listedUBUNTU-CVE-2026-58102
Ubuntu:24.04:LTSlibcrypt-openssl-x509-perlno fix listedUBUNTU-CVE-2026-58102
Ubuntu:26.04:LTSlibcrypt-openssl-x509-perlno fix listedUBUNTU-CVE-2026-58102
Ubuntu:26.10libcrypt-openssl-x509-perlno fix listedUBUNTU-CVE-2026-58102

Affected products (as reported)

VendorProductVersions
JONASBN Crypt::OpenSSL::X509 0 – before 2.1.3

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

References