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
Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a heap out-of-bounds read via a long certificate extension OID in hvexts.
When building the extension hash (via extensions(), extensionsbylongname(), extensionsbyoid(), or hasextensionoid()), the code passes OBJobj2txt()'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. extensionsbyname() uses the static shortname path and is not affected.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Crypt::OpenSSL::X509to a version that resolves this vulnerability.Fixed in 2.1.3
Event History
Frequently Asked Questions
What is the severity of CVE-2026-58102?
CVE-2026-58102 has a critical severity rating of 9.1.
How do I fix CVE-2026-58102?
To fix CVE-2026-58102, update Crypt::OpenSSL::X509 to version 2.1.3 or later.
What are the risks associated with CVE-2026-58102?
CVE-2026-58102 could allow an attacker to perform a heap out-of-bounds read, potentially exposing sensitive data.
What software is affected by CVE-2026-58102?
CVE-2026-58102 affects versions of Crypt::OpenSSL::X509 prior to 2.1.3 for Perl.
When was CVE-2026-58102 published?
CVE-2026-58102 was published on July 13, 2026.