CVE-2026-58102 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
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- OpenSSLUbuntuDebian
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.
Upgrade path
9 packages: 3 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libcrypt-openssl-x509-perl(Debian 12) | = 1.9.14-2; = 1.9.15-1; = 2.0.0+pristine-1; = 2.0.1-1 +5 more | No fix listed | No fix yet |
| debian/libcrypt-openssl-x509-perl(Debian 13) | = 2.0.1-1; = 2.1.1-1; = 2.1.2-1; = 2.1.3-1 +2 more | No fix listed | No fix yet |
| ubuntu/libcrypt-openssl-x509-perl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcrypt-openssl-x509-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcrypt-openssl-x509-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libcrypt-openssl-x509-perl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/perl-crypt-openssl-x509(Alpine v3.24) | < 2.1.3-r0 | 2.1.3-r0 | Fixed |
| debian/libcrypt-openssl-x509-perl(Debian 14) | < 2.1.3-1; = 2.0.1-1; = 2.1.1-1; = 2.1.2-1 | 2.1.3-1 | Fixed |
| JONASBN Crypt::OpenSSL::X509 | < 2.1.3 | 2.1.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| JONASBN Crypt::OpenSSL::X509 | < 2.1.3 | 2.1.3 |
| debian/libcrypt-openssl-x509-perl(Debian:12) | All versions | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:12) | = 1.9.14-2 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:12) | = 1.9.15-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:12) | = 2.0.0+pristine-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:12) | = 2.0.1-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:12) | = 2.1.1-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:12) | = 2.1.2-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:12) | = 2.1.3-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:12) | = 2.1.5-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:13) | All versions | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:13) | = 2.0.1-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:13) | = 2.1.1-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:13) | = 2.1.2-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:13) | = 2.1.3-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:13) | = 2.1.5-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:14) | < 2.1.3-1 | 2.1.3-1 |
| debian/libcrypt-openssl-x509-perl(Debian:14) | = 2.0.1-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:14) | = 2.1.1-1 | No fix listed |
| debian/libcrypt-openssl-x509-perl(Debian:14) | = 2.1.2-1 | No fix listed |
| ubuntu/libcrypt-openssl-x509-perl(Ubuntu:22.04) | All versions | No fix listed |
| alpine/perl-crypt-openssl-x509(Alpine:v3.24) | < 2.1.3-r0 | 2.1.3-r0 |
| ubuntu/libcrypt-openssl-x509-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libcrypt-openssl-x509-perl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libcrypt-openssl-x509-perl(Ubuntu:26.10) | All versions | No fix listed |
References
- github.com patch
- metacpan.org release-notes
- Debian Security Tracker CVE-2026-58102 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking