OpenSSL heap buffer overflow in X.509 OCTET STRING hexadecimal conversion
CVE-2026-31789 is a heap buffer overflow in OpenSSL affecting the conversion of excessively large ASN.1 OCTET STRING values to hexadecimal strings on 32-bit platforms. When OpenSSL converts certain X.509 certificate extension values, such as Subject Key Identifier (SKID) or Authority Key Identifier (AKID), into hex for printing or logging, the required output buffer size is computed as input_length * 3. On 32-bit systems, that multiplication can overflow for very large attacker-controlled OCTET STRING inputs, causing allocation of an undersized heap buffer followed by out-of-bounds writes during hex conversion. The issue is reachable in applications or services that process and print or log untrusted X.509 certificates. The OpenSSL advisory notes that certificates would need to exceed roughly 1 GB in size for exploitation, making practical reachability uncommon. OpenSSL 3.6, 3.5, 3.4, 3.3, and 3.0 are affected; 1.1.1 and 1.0.2 are not. The FIPS modules in 3.6, 3.5, 3.4, 3.3, and 3.0 are not affected because the vulnerable code lies outside the FIPS module boundary.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A specific vulnerability in OpenSSL addressed in Alpine Linux stable releases 3.20.10, 3.21.7, 3.22.4, and 3.23.4.
A heap buffer overflow in hexadecimal conversion in OpenSSL.
A heap buffer overflow in OpenSSL hexadecimal conversion functionality that may be exploitable when hex conversion APIs process untrusted input.
Heap buffer overflow in hexadecimal conversion in OpenSSL.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.