CVE Watchtower

CVE-2026-31789OpenSSL Out-of-bounds Write

NVDCVSS scored by NVD (NIST)

Vulnerability Summary

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.
Severity Level
CRITICAL(9.8)
Published Date
Apr 7, 2026
Last Modified
Jul 24, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.24%Probability
Root Weakness (CWE)
The product writes data past the end, or before the beginning, of the intended buffer.
CVSS v3.1 Base Metrics — Score 9.8 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • OpenSSL >= 3.0.0 and < 3.0.20
  • OpenSSL >= 3.3.0 and < 3.3.7
  • OpenSSL >= 3.4.0 and < 3.4.5
  • OpenSSL >= 3.5.0 and < 3.5.6
  • OpenSSL >= 3.6.0 and < 3.6.2
  • Siemens SIMATIC CN 4100 < V5.0
Patched Versions
  • OpenSSL 3.0.20
  • OpenSSL 3.3.7
  • OpenSSL 3.4.5
  • OpenSSL 3.5.6
  • OpenSSL 3.6.2
  • Siemens SIMATIC CN 4100 V5.0

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.

  1. Check whether you run OpenSSL and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Apr 7, 2026Published
  • Jul 24, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new OpenSSL CVEsYou are reading CVE-2026-31789. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 23, 2026 17:13 UTC