CVE Tools

CVE-2026-31789

Heap Buffer Overflow in Hexadecimal Conversion

CVE-2026-31789 is an out-of-bounds write in OpenSSL (CVSS 9.8, Critical).

No known exploitation. EPSS puts it in the 20th percentile. Fixed versions are out.

Check it yourself

OpenVAS · 42 checks

e.g. OID 1.3.6.1.4.1.25623.1.0.136782

Run the check

Published Updated Sources: CVE.org, NVD, CSAF

What to do

Find your product and version, then upgrade to the build on the right.

  • OpenSSLAffected: ≥ 3.6.0, < 3.6.2Upgrade to: 3.6.2Affected: ≥ 3.5.0, < 3.5.6Upgrade to: 3.5.6Affected: ≥ 3.4.0, < 3.4.5Upgrade to: 3.4.5Affected: ≥ 3.3.0, < 3.3.7Upgrade to: 3.3.7 + 1 more branchStated by: CVE record

Versions as the sources state them. Full version matrix after sign-in

Steps

Written by AI from the record
  1. Check whether your system uses OpenSSL and what version is installed (including any 32-bit builds).
  2. Verify whether your services parse or process X.509 certificates received over the network (for example TLS termination, certificate validation, or any service that prints/logs client certificates).
  3. Upgrade OpenSSL to a fixed version: 3.0.20, 3.3.7, 3.4.5, 3.5.6, or 3.6.2.
  4. After upgrading, confirm the running service is using the updated OpenSSL version and re-test certificate handling paths (especially certificate logging/printing).
Empty string

What it is

From the CVE record

Issue summary: Converting an excessively large OCTET STRING value to a hexadecimal string leads to a heap buffer overflow on 32 bit platforms. Impact summary: A heap buffer overflow may lead to a crash or possibly an attacker controlled code execution or other undefined behavior. If an attacker can supply a crafted X.509 certificate with an excessively large OCTET STRING value in extensions such as the Subject Key Identifier (SKID) or Authority Key Identifier (AKID) which are being converted to hex, the size of the buffer needed for the result is calculated as multiplication of the input length by 3. On 32 bit platforms, this multiplication may overflow resulting in the allocation of a smaller buffer and a heap buffer overflow. Applications and services that print or log contents of untrusted X.509 certificates are vulnerable to this issue. As the certificates would have to have sizes of over 1 Gigabyte, printing or logging such certificates is a fairly unlikely operation and only 32 bit platforms are affected, this issue was assigned Low severity. The FIPS modules in 3.6, 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the affected code is outside the OpenSSL FIPS module boundary.

In plain language

Written by AI from the record

CVE-2026-31789 is a bug in OpenSSL where a specially crafted certificate can crash the service or (rarely) allow code execution on 32-bit systems; if you use untrusted X.509 certificates over the network, you should update to the fixed OpenSSL version.

CVE-2026-31789 is a heap buffer overflow in OpenSSL’s hexadecimal conversion of overly large X.509 OCTET STRING extension data (for example SKID/AKID), where attacker-controlled length handling on 32-bit platforms can lead to memory corruption without authentication and without user interaction during certificate processing.

If you're affected

  • Service crashes (denial of service)
  • Possible full process compromise
  • Business disruption from outages
  • Risk increases for untrusted cert handling

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS20th
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

No public exploit or proof of concept found in the sources we track.

EPSS

0.3% chance of exploitation activity in the next 30 days, which ranks it in the 20th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

8 events over 108 days, from the signal feeds we watch.

  1. Patch availablerecord updated
  2. OpenVAS check added
  3. Patch availablerecord updated
  4. Publishedweakness classified, att&ck mapped

Affected products

And 1 more affected product. See all after sign-in

Technical detail

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Scored 9.8 by NVD.

How it is reached

  • Attack Vector NetworkExploitable remotely over the network without any special conditions
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required NoneNo authentication required — anyone can exploit this
  • User Interaction NoneNo user interaction needed — fully automated exploitation

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability HighTotal denial of service — the component is completely unavailable

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2026-31789

Is CVE-2026-31789 being exploited?
No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 0.3%.
Which versions are affected by CVE-2026-31789?
OpenSSL: ≥ 3.6.0, < 3.6.2; ≥ 3.5.0, < 3.5.6; ≥ 3.4.0, < 3.4.5.
How do I fix or mitigate CVE-2026-31789?
Upgrade to a fixed build for your product branch: 3.6.2, 3.5.6, 3.4.5, 3.3.7. The advisory is on github.com.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for OpenSSL, not every advisory.