CVE-2026-58102Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libcrypt-openssl-x509-perl | Fix pending | UBUNTU-CVE-2026-58102 | |
| Ubuntu 26.04 | libcrypt-openssl-x509-perl | Under investigation | UBUNTU-CVE-2026-58102 | |
| Ubuntu 24.04 | libcrypt-openssl-x509-perl | Under investigation | UBUNTU-CVE-2026-58102 | |
| Ubuntu 22.04 | libcrypt-openssl-x509-perl | Under investigation | UBUNTU-CVE-2026-58102 | |
| Ubuntu 20.04 | libcrypt-openssl-x509-perl | Fix pending | UBUNTU-CVE-2026-58102 | |
| Ubuntu 18.04 | libcrypt-openssl-x509-perl | Fix pending | UBUNTU-CVE-2026-58102 | |
| Ubuntu 16.04 | libcrypt-openssl-x509-perl | Fix pending | UBUNTU-CVE-2026-58102 | |
| Debian 14 | libcrypt-openssl-x509-perl | Fixed | 2.1.3-1 | DEBIAN-CVE-2026-58102 |
| Debian 13 | libcrypt-openssl-x509-perl | Fix pending | DEBIAN-CVE-2026-58102 | |
| Debian 12 | libcrypt-openssl-x509-perl | Fix pending | DEBIAN-CVE-2026-58102 | |
| Alpine Linux 3.24 | perl-crypt-openssl-x509 | Fixed | 2.1.3-r0 | ALPINE-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.
- JONASBN Crypt::OpenSSL::X509: affected: before 2.1.3; fixed in
2.1.3
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:
- https://github.com/dsully/perl-crypt-openssl-x509/commit/757289bfce095455c104d4adfe9312e7… (patch)
- https://metacpan.org/release/JONASBN/Crypt-OpenSSL-X509-2.1.3/source/Changes.md (release-notes)
References
- https://github.com/dsully/perl-crypt-openssl-x509/commit/757289bfce095455c104d4adfe9312e7b339620f.patch
- https://metacpan.org/release/JONASBN/Crypt-OpenSSL-X509-2.1.3/source/Changes.md
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.