Skip to main content

OpenSSL CVE-2026-31789

| EUVDEUVD-2026-19968 CRITICAL
Out-of-bounds Write (CWE-787)
2026-04-07 openssl GHSA-j79m-9jxq-788r
Critical
Disputed · 9.8 NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft X.509 cert with >1GB SKID/AKID OCTET STRING
  2. Delivery
    Deliver cert to 32-bit service that logs certs
  3. Exploit
    Trigger buflen*3 size_t overflow in hex conversion
  4. Execution
    Undersized heap buffer allocated
  5. Persist
    Out-of-bounds write corrupts heap
  6. Impact
    Crash or possible code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following concrete conditions: (1) the target must run a 32-bit (ILP32) OpenSSL build - 64-bit platforms are not affected because the multiplication cannot overflow; (2) the vulnerable application must print or log the contents of an untrusted X.509 certificate, invoking the OCTET STRING-to-hex conversion; (3) the attacker must supply a crafted certificate containing an OCTET STRING-typed extension (such as Subject Key Identifier or Authority Key Identifier) larger than approximately 1 GB (over ~1.43 GB to overflow the length*3 computation). Limiting factors: the multi-gigabyte certificate size makes delivery, storage, and processing conspicuous and unlikely in normal operation; only 32-bit deployments are exploitable; and only applications that actually render/log untrusted certificate contents reach the code path - libraries that merely validate without printing extensions are not affected. FIPS-module code paths are also excluded.

Impact

The signals conflict sharply and real-world risk is low. The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, base 9.8) overstates severity: it ignores the two hard preconditions OpenSSL itself cites - a certificate exceeding 1 GB and a 32-bit build - so AC:L is unrealistic and true attack complexity is high. Corroborating this, EPSS is only 0.01% (1st percentile), the SSVC decision is Exploitation: none and Automatable: no, and OpenSSL assigned Low severity. The one signal pointing to seriousness is SSVC Technical Impact: total, consistent with CWE-787 heap corruption that may possibly yield code execution - but OpenSSL describes crash/undefined behavior as the likely outcome. There is no KEV listing and no public PoC. Net: this is a high-nominal-CVSS, low-real-risk issue - a routine patch-in-maintenance-window item, not an emergency, and largely moot on the majority of modern 64-bit deployments where the multiplication cannot overflow. The discrepancy should be stated explicitly: the 9.8 score and AC:L are inaccurate given the >1 GB certificate and 32-bit-only requirements in the description.

Exploit ScenarioDerived

An attacker crafts a malicious X.509 certificate containing a Subject Key Identifier or Authority Key Identifier extension whose OCTET STRING exceeds 1 GB, then presents it to a 32-bit service that logs or pretty-prints certificate contents (for example a diagnostic, audit, or certificate-inspection tool). When the service converts the extension to colon-separated hex, the buflen*3 size calculation overflows, an undersized heap buffer is allocated, and the ensuing write corrupts the heap - most likely crashing the process (DoS) and, per the advisory, possibly enabling attacker-controlled code execution. No public exploit code is known, and the >1 GB certificate plus 32-bit requirement make this difficult and conspicuous.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Heap buffer overflow in OpenSSL's OCTET STRING-to-hexadecimal conversion routine (crypto/o_str.c) affects 32-bit builds of OpenSSL 3.0, 3.3, 3.4, 3.5 and 3.6. When an application parses and prints or logs an untrusted X.509 certificate whose SKID or AKID extension carries an OCTET STRING larger than ~1.4 GB, the buffer-size calculation (length x 3) overflows a 32-bit size_t, allocating an undersized buffer and writing past it. OpenSSL rates this Low severity because it requires >1 GB certificates and 32-bit platforms; there is no public exploit identified at time of analysis and EPSS is 0.01%, despite the input's headline CVSS of 9.8.

RemediationAI

Upgrade OpenSSL to a fixed release for your branch: 3.0.20, 3.3.7, 3.4.5, 3.5.6, or 3.6.2 (Vendor-released patch per the OpenSSL advisory at https://openssl-library.org/news/secadv/20260407.txt; upstream fix commit a24216018e1ede8ff01a4ff5afff7dfbd443e2f9). On managed distributions apply the vendor packages instead - RHSA-2026:7261, USN-8155-1, or the SUSE-SU-2026:1213/1214/1215/1216/1255 updates - and restart or reload services that link OpenSSL so the patched library is loaded. Where immediate patching is not possible, the practical compensating controls are: prefer 64-bit builds, since the integer overflow cannot occur there and this fully neutralizes the bug; and, on any application that displays or logs untrusted certificates, cap accepted certificate/input size well below 1 GB at the ingestion layer (a reverse proxy, TLS terminator, or application limit), which prevents the oversized OCTET STRING from reaching the hex conversion at the cost of rejecting abnormally large but legitimate inputs (in practice there are none this large). Avoid printing or logging attacker-supplied certificates on 32-bit hosts until patched.

Affected VersionsENISA

OpenSSL 3.0.0 <3.0.20
OpenSSL 3.5.0 <3.5.6
OpenSSL 3.3.0 <3.3.7
OpenSSL 3.4.0 <3.4.5
OpenSSL 3.6.0 <3.6.2

Affected Packages

euvd openssl fix: 3.0.20, 3.3.7, 3.4.5, 3.5.6, 3.6.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw lives in OpenSSL's generic string utilities (ossl_buf2hexstr_sep / buf2hexstr_sep in crypto/o_str.c), which convert arbitrary byte buffers into human-readable hex, optionally with a separator byte. For separated output the code computes the result length as buflen * 3 (two hex digits plus a separator per input byte); for unseparated output it uses 1 + buflen * 2. This is the classic CWE-787 (out-of-bounds write) rooted in an integer/size miscalculation: on ILP32 (32-bit) platforms size_t is 32 bits, so multiplying a buflen just over ~1.43 GB by 3 wraps around, yielding a small allocation while the subsequent write loop iterates over the true, huge input length. The affected code path is reached through X.509 certificate display of OCTET STRING-typed extension values such as Subject Key Identifier and Authority Key Identifier, which OpenSSL renders as colon-separated hex. The CPE cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* confirms the OpenSSL library itself is the vulnerable component. The official fix adds explicit guards rejecting buflen > SIZE_MAX/3 (or (SIZE_MAX-1)/2 without a separator) with CRYPTO_R_TOO_MANY_BYTES before the multiplication. The FIPS provider modules in 3.6, 3.5, 3.4, 3.3 and 3.0 are unaffected because this code sits outside the FIPS module boundary.

Know when OpenSSL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–Critical)
NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 5.6 MEDIUM

AC:H because exploitation needs a 32-bit build, a >1 GB certificate, and an app that logs untrusted certs; impact is most likely a crash with only possible, unproven code execution, so C/I/A:L.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
SUSE CRITICAL
Red Hat 5.8 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Apr 23, 2026 - 16:12 NVD
9.8 (CRITICAL)
Patch released
Apr 07, 2026 - 22:16 nvd
Patch available
CVE Published
Apr 07, 2026 - 22:00 cve.org
CRITICAL 9.8
CVE Published
Apr 07, 2026 - 22:00 nvd
N/A

DescriptionNVD

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.

Executive ViewAI

Why It Matters

OpenSSL versions 3.0-3.6 contain a heap buffer overflow in certificate parsing affecting only 32-bit builds handling abnormally large certificates-a scenario the vendor rates as Low severity due to extreme practical constraints. Real-world risk is negligible; organizations should treat this as standard maintenance patching.

Business Impact: Low
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Threat Score
4.0/10
Composite threat intelligence
EPSS Score
0.0%
Top 99% exploitable
Prevalence
Ubiquitous
OpenSSL underpins TLS in nearly all server and platform deployments
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
9 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CISA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Total

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2021-3711 CRITICAL POC
9.8 Aug 24

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri

CVE-2014-0195 MEDIUM POC
6.8 Jun 05

The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2016-0800 MEDIUM POC
5.9 Mar 01

The SSLv2 protocol, as used in OpenSSL before 1.0.1s and 1.0.2 before 1.0.2g and other products, requires a server to se

CVE-2015-0204 MEDIUM POC
4.3 Jan 09

The ssl3_get_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8zd, 1.0.0 before 1.0.0p, and 1.0.1 before 1.0.1k

CVE-2022-2068 HIGH
7.3 Jun 21

In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas

CVE-2015-4000 LOW POC
3.7 May 21

The TLS protocol 1.2 and earlier, when a DHE_EXPORT ciphersuite is enabled on a server but not on a client, does not pro

CVE-2014-3566 LOW POC
3.4 Oct 15

The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak

CVE-2016-2107 MEDIUM POC
5.9 May 05

The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a

CVE-2015-1793 MEDIUM POC
6.5 Jul 09

The X509_verify_cert function in crypto/x509/x509_vfy.c in OpenSSL 1.0.1n, 1.0.1o, 1.0.2b, and 1.0.2c does not properly

CVE-2022-3602 HIGH
7.5 Nov 01

A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
Container private-registry/1.2/harbor-portal:1.2.0-1.8 Container private-registry/harbor-portal:1.1.2-2.17 Container suse/multi-linux-manager/5.1/x86_64/server-postgresql:5.1.3.6.18.1 Affected
Container suse/manager/4.3/proxy-httpd:4.3.17.9.76.9 Container suse/manager/4.3/proxy-squid:4.3.17.9.75.7 Container suse/manager/4.3/proxy-ssh:4.3.17.9.66.7 Affected
Container suse/manager/4.3/proxy-salt-broker:4.3.17.9.66.9 Container suse/manager/4.3/proxy-tftpd:4.3.17.9.66.8 Affected
Container suse/multi-linux-manager/5.1/x86_64/proxy-httpd:5.1.3.8.18.1 Container suse/multi-linux-manager/5.1/x86_64/proxy-squid:5.1.3.8.16.1 Container suse/multi-linux-manager/5.1/x86_64/proxy-ssh:5.1.3.8.16.1 Container suse/multi-linux-manager/5.1/x86_64/server-migration-14-16:5.1.3.8.16.1 Affected
Container suse/multi-linux-manager/5.1/x86_64/proxy-salt-broker:5.1.3.9.16.1 Container suse/multi-linux-manager/5.1/x86_64/proxy-tftpd:5.1.3.8.16.1 Container suse/multi-linux-manager/5.1/x86_64/server-saline:5.1.3.9.16.1 Container suse/multi-linux-manager/5.1/x86_64/server:5.1.3.8.16.1 Affected

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

References

Advisories & patches
PATCH https://github.com/openssl/openssl/commit/364f095b80601db632b0def6a33316967f863bde PATCH https://github.com/openssl/openssl/commit/7a9087efd769f362ad9c0e30c7baaa6bbfa65ecf PATCH https://github.com/openssl/openssl/commit/945b935ac66cc7f1a41f1b849c7c25adb5351f49 PATCH https://github.com/openssl/openssl/commit/a24216018e1ede8ff01a4ff5afff7dfbd443e2f9 PATCH https://github.com/openssl/openssl/commit/a91e537d16d74050dbde50bb0dfb1fe9930f0521 ADVISORY https://access.redhat.com/errata/RHSA-2026:7261 ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-31789 ADVISORY https://openssl-library.org/news/secadv/20260407.txt ADVISORY https://ubuntu.com/security/notices/USN-8155-1 ADVISORY https://vuldb.com/vuln/355907 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1213/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1214/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1215/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1216/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1255/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1256/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1257/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1290/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1291/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1375/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1386/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1577/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21037/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21065/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21107/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21186/ REF https://cert-portal.siemens.com/productcert/html/ssa-032379.html

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy