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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | perl-crypt-openssl-x509 | 2.1.3-r0 | ALPINE-CVE-2026-58102 |
| Debian:12 | libcrypt-openssl-x509-perl | no fix listed | DEBIAN-CVE-2026-58102 |
| Debian:13 | libcrypt-openssl-x509-perl | no fix listed | DEBIAN-CVE-2026-58102 |
| Debian:14 | libcrypt-openssl-x509-perl | 2.1.3-1 | DEBIAN-CVE-2026-58102 |
| Ubuntu:22.04:LTS | libcrypt-openssl-x509-perl | no fix listed | UBUNTU-CVE-2026-58102 |
| Ubuntu:24.04:LTS | libcrypt-openssl-x509-perl | no fix listed | UBUNTU-CVE-2026-58102 |
| Ubuntu:26.04:LTS | libcrypt-openssl-x509-perl | no fix listed | UBUNTU-CVE-2026-58102 |
| Ubuntu:26.10 | libcrypt-openssl-x509-perl | no fix listed | UBUNTU-CVE-2026-58102 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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