cve.bz

CVE-2026-31789 openssl openssl: Out-of-bounds Write

9.8 criticalEPSS 0.3%Fix available

Critical (9.8) in openssl openssl. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 17th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-31789 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31789?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31789?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31789 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSSLfrom 3.6.0 before 3.6.2
OpenSSLfrom 3.5.0 before 3.5.6
OpenSSLfrom 3.4.0 before 3.4.5
OpenSSLfrom 3.3.0 before 3.3.7
OpenSSLfrom 3.0.0 before 3.0.20

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12openssl3.0.19-1~deb12u2DEBIAN-CVE-2026-31789 DSA-6201-1
Debian13openssl3.5.5-1~deb13u2DEBIAN-CVE-2026-31789 DSA-6201-1
Debian14openssl3.6.2-1DEBIAN-CVE-2026-31789
Ubuntu22.04:LTSopenssl3.0.2-0ubuntu1.23UBUNTU-CVE-2026-31789
Ubuntu24.04:LTSopenssl3.0.13-0ubuntu3.9UBUNTU-CVE-2026-31789
Ubuntu24.04:LTS, 25.10edk2no fix listedUBUNTU-CVE-2026-31789
Ubuntu25.10openssl3.5.3-1ubuntu3.3UBUNTU-CVE-2026-31789
Ubuntu26.04:LTS, 26.10edk2, edk2-hweno fix listedUBUNTU-CVE-2026-31789
Ubuntu26.04:LTS, 26.10openssl3.5.5-1ubuntu3UBUNTU-CVE-2026-31789
UbuntuPro:FIPS-preview:22.04:LTS, Pro:FIPS-updates:22.04:LTSopenssl, openssl-fipsno fix listedUBUNTU-CVE-2026-31789
UbuntuPro:FIPS-updates:24.04:LTSopenssl-fips3.0.13-0ubuntu3.12+Fips1UBUNTU-CVE-2026-31789
Red Hathummingbird:1openssl, openssl-libs, openssl-perl and 3 more0:3.5.6-0.1.hum1RHSA-2026:7261
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 3 moreopenssl-1_11.1.1l-150400.7.90.1SUSE-SU-2026:1257-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 3 moreopenssl-33.0.8-150400.4.81.1SUSE-SU-2026:1214-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Legacy 15 SP7 and 6 moreopenssl-1_0_01.0.2p-150000.3.105.1SUSE-SU-2026:1291-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 moreopenssl-1_11.1.1l-150500.17.51.1SUSE-SU-2026:1290-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 moreopenssl-33.0.8-150500.5.60.1SUSE-SU-2026:1213-1
SUSELinux Enterprise Micro 5.2openssl-1_11.1.1d-150200.11.109.1SUSE-SU-2026:1216-1
SUSELinux Enterprise Module for Basesystem 15 SP7openssl-33.2.3-150700.5.31.1SUSE-SU-2026:1375-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Module for Legacy 15 SP7openssl-1_11.1.1w-150700.11.16.1SUSE-SU-2026:1386-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5openssl-1_0_01.0.2p-3.106.1SUSE-SU-2026:1256-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5openssl-1_11.1.1d-2.125.1SUSE-SU-2026:1255-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6openssl-1_11.1.1w-150600.5.26.2SUSE-SU-2026:1577-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6openssl-33.1.4-150600.5.45.1SUSE-SU-2026:1215-1
4 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6openssl-1_0_01.0.2p-150000.3.105.1SUSE-SU-2026:1291-1
openSUSELeap 15.6openssl-33.1.4-150600.5.45.1SUSE-SU-2026:1215-1
openSUSELeap 16.0openssl-33.5.0-160000.7.1openSUSE-SU-2026:20525-1
openSUSETumbleweedopenssl-33.5.3-4.1openSUSE-SU-2026:10533-1
Alpinev3.20, v3.21openssl3.3.7-r0ALPINE-CVE-2026-31789
Alpinev3.22, v3.23, v3.24openssl3.5.6-r0ALPINE-CVE-2026-31789
Azure Linux3openssl3.3.5-5AZL-81944
Alpaquita23openssl3.0.20-r0BELL-CVE-2026-31789
Alpaquita25, streamopenssl3.5.6-r0BELL-CVE-2026-31789
BellSoft Hardened Containers23openssl3.0.20-r0BELL-CVE-2026-31789
BellSoft Hardened Containers25, streamopenssl3.5.6-r0BELL-CVE-2026-31789

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This issue has a Low impact. The vulnerability affects 32-bit systems and requires an application or service to process an unusually large X.509 certificate (over 1 Gigabyte) by printing or logging its contents. This specific condition makes exploitation unlikely in typical Red Hat environments.

Red Hat's mitigation

To mitigate this issue, avoid processing or logging untrusted X.509 certificates, particularly those with unusually large OCTET STRING values. Restricting the source of X.509 certificates to trusted entities can reduce exposure to this vulnerability.

ProductPackageStateAdvisory
Red Hat Hardened Imagesopenssl-main-3.5.6-0.1.hum1Fixed 2026-04-09RHSA-2026:7261
Red Hat Enterprise Linux 10edk2Fix deferred
Red Hat Enterprise Linux 10opensslFix deferred
Red Hat Enterprise Linux 10shimFix deferred
Red Hat Enterprise Linux 10shim-unsigned-aarch64Fix deferred
Red Hat Enterprise Linux 10shim-unsigned-x64Fix deferred
Red Hat Enterprise Linux 6opensslFix deferred
Red Hat Enterprise Linux 7opensslFix deferred
Red Hat Enterprise Linux 7ovmfFix deferred
Red Hat Enterprise Linux 8compat-openssl10Fix deferred
Red Hat Enterprise Linux 8edk2Fix deferred
Red Hat Enterprise Linux 8mingw-opensslFix deferred
Red Hat Enterprise Linux 8opensslFix deferred
Red Hat Enterprise Linux 8shimFix deferred
Red Hat Enterprise Linux 8shim-unsigned-x64Fix deferred
Red Hat Enterprise Linux 9compat-openssl11Fix deferred
Red Hat Enterprise Linux 9edk2Fix deferred
Red Hat Enterprise Linux 9opensslFix deferred
Red Hat Enterprise Linux 9shimFix deferred
Red Hat Enterprise Linux 9shim-unsigned-aarch64Fix deferred
36 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31789.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-134-10Siemens SIMATIC2026-05-12Critical ManufacturingSIMATIC CN 4100none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON