Impact
Crypt::OpenSSL::X509 versions older than 2.1.3 incorrectly use the full textual length of a certificate extension OID as a key in a hash, while the underlying buffer is limited to 129 bytes. If the OID text exceeds that limit, a heap out‑of‑bounds read occurs, exposing adjacent heap memory as the hash key. This flaw is identified by CWE‑125 and can reveal sensitive data stored on the heap.
Affected Systems
All releases of JONASBN’s Crypt::OpenSSL::X509 before version 2.1.3 are impacted. Functions such as extensions(), extensions_by_long_name(), extensions_by_oid() or has_extension_oid() invoke the vulnerable path. Extensions_by_name() does not trigger the over‑read and can be used as an alternative for enumeration.
Risk and Exploitability
The CVSS score of 9.1 marks the vulnerability as high severity. The EPSS score of less than 1% indicates a low probability of exploitation in the near term. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker could provide a certificate containing a very long OID to a vulnerable application in order to read adjacent heap data—an information‑disclosure attack rather than an arbitrary‑code‑execution scenario.
OpenCVE Enrichment