CVEfocus › CVE database › CVE-2026-58102

CVE-2026-58102Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via…

CVSS 9.1 CriticalEPSS 0.3% (higher than 20% of CVEs)Published 2026-07-13Updated 2026-07-14Assigner: CPANSec

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.

CWE-125

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
6Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libcrypt-openssl-x509-perlFix pendingUBUNTU-CVE-2026-58102
Ubuntu 26.04libcrypt-openssl-x509-perlUnder investigationUBUNTU-CVE-2026-58102
Ubuntu 24.04libcrypt-openssl-x509-perlUnder investigationUBUNTU-CVE-2026-58102
Ubuntu 22.04libcrypt-openssl-x509-perlUnder investigationUBUNTU-CVE-2026-58102
Ubuntu 20.04libcrypt-openssl-x509-perlFix pendingUBUNTU-CVE-2026-58102
Ubuntu 18.04libcrypt-openssl-x509-perlFix pendingUBUNTU-CVE-2026-58102
Ubuntu 16.04libcrypt-openssl-x509-perlFix pendingUBUNTU-CVE-2026-58102
Debian 14libcrypt-openssl-x509-perlFixed2.1.3-1DEBIAN-CVE-2026-58102
Debian 13libcrypt-openssl-x509-perlFix pendingDEBIAN-CVE-2026-58102
Debian 12libcrypt-openssl-x509-perlFix pendingDEBIAN-CVE-2026-58102
Alpine Linux 3.24perl-crypt-openssl-x509Fixed2.1.3-r0ALPINE-CVE-2026-58102

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to Crypt::OpenSSL::X509 2.1.3 or later.

Workaround: Callers that must enumerate extensions of untrusted certificates can restrict enumeration to extensions_by_name(), which uses the static shortname path and does not trigger the over-read.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.