UBUNTU-CVE-2026-58102
Crypt::OpenSSL::X509 versions before 2.1.3 for Perl contain a heap out-of-bounds read vulnerability triggered by a long certificate extension OID in the hv_exts hash. The issue arises because the code uses the full text length of the OID as the hash key length, which can exceed the fixed buffer size of 129 bytes, causing a read beyond the allocated heap memory. This vulnerability affects functions that build the extension hash using long OIDs but not those using short names.
AI Analysis
Technical Summary
The vulnerability in Crypt::OpenSSL::X509 (prior to version 2.1.3) involves a heap out-of-bounds read caused by improper handling of long certificate extension OIDs in the hv_exts hash. Specifically, when building the extension hash via extensions(), extensions_by_long_name(), extensions_by_oid(), or has_extension_oid(), the code passes the length of the OID's full text as the hash key length instead of the actual bytes written to the fixed-size buffer (129 bytes). If the OID text length exceeds 129 bytes, this results in reading adjacent heap memory beyond the buffer, exposing potentially sensitive data. The extensions_by_name() function, which uses short names, is not affected by this issue.
Potential Impact
This vulnerability allows an attacker to cause a heap out-of-bounds read, potentially exposing adjacent heap memory contents. According to the CVSS vector, the impact is a high confidentiality impact (C:H) and high availability impact (A:H), with no impact on integrity (I:N). The vulnerability is remotely exploitable without privileges or user interaction. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing certificates with unusually long extension OIDs using the affected functions. Using extensions_by_name(), which is not affected, may be a temporary workaround. Monitor vendor channels for updates and apply patches promptly once released.
UBUNTU-CVE-2026-58102
Description
Crypt::OpenSSL::X509 versions before 2.1.3 for Perl contain a heap out-of-bounds read vulnerability triggered by a long certificate extension OID in the hv_exts hash. The issue arises because the code uses the full text length of the OID as the hash key length, which can exceed the fixed buffer size of 129 bytes, causing a read beyond the allocated heap memory. This vulnerability affects functions that build the extension hash using long OIDs but not those using short names.
CVSS v3.1
Score 9.1critical
Affected software
pkg:deb/ubuntu/[email protected]?arch=source&distro=xenialpkg:deb/ubuntu/[email protected]?arch=source&distro=bionicpkg:deb/ubuntu/[email protected]?arch=source&distro=focalpkg:deb/ubuntu/[email protected]?arch=source&distro=jammypkg:deb/ubuntu/[email protected]?arch=source&distro=noblepkg:deb/ubuntu/[email protected]?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Crypt::OpenSSL::X509 (prior to version 2.1.3) involves a heap out-of-bounds read caused by improper handling of long certificate extension OIDs in the hv_exts hash. Specifically, when building the extension hash via extensions(), extensions_by_long_name(), extensions_by_oid(), or has_extension_oid(), the code passes the length of the OID's full text as the hash key length instead of the actual bytes written to the fixed-size buffer (129 bytes). If the OID text length exceeds 129 bytes, this results in reading adjacent heap memory beyond the buffer, exposing potentially sensitive data. The extensions_by_name() function, which uses short names, is not affected by this issue.
Potential Impact
This vulnerability allows an attacker to cause a heap out-of-bounds read, potentially exposing adjacent heap memory contents. According to the CVSS vector, the impact is a high confidentiality impact (C:H) and high availability impact (A:H), with no impact on integrity (I:N). The vulnerability is remotely exploitable without privileges or user interaction. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing certificates with unusually long extension OIDs using the affected functions. Using extensions_by_name(), which is not affected, may be a temporary workaround. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-58102
- Osv Schema Version
- 1.7.0
- Aliases
- []
- Ecosystems
- ["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.04:LTS"]
- Database Specific Severity
- null
- Cvss Version
- 3.1
Threat ID: 6a58b46268715ace43d6e95e
Added to database: 07/16/2026, 10:37:22 UTC
Last enriched: 07/16/2026, 11:37:49 UTC
Last updated: 07/31/2026, 19:24:48 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.