Skip to main content

OpenSSL EUVDEUVD-2026-128602

| CVE-2026-121481 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-11-18 openssl GHSA-83xj-7xh4-4p7x
5.9
CVSS 3.1 · Vendor: openssl
View

Attack ChainAIDerived

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

  1. Access
    Deliver ~2GB input to calling app
  2. Delivery
    App invokes EVP_EncodeBlock()
  3. Exploit
    Output-size calc integer overflow
  4. Execution
    Out-of-bounds write past buffer
  5. Impact
    Memory corruption or code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Requires a calling application that invokes EVP_EncodeBlock() (or the internal base64encode path used by the OpenSSL HTTP client) with an input length close to INT_MAX (~2 GiB) that an attacker can influence, together with a caller-supplied output buffer sized by the standard base64 expansion without guarding against the size-calculation overflow. This is NOT a default-configuration remote flaw: the CVSS vector is AV:L, the attacker must get an enormous input to reach the specific API, and applications that never base64-encode near-INT_MAX buffers are not exposed. Limiting factors: the multi-gigabyte input requirement, the dependence on a particular (and uncommon) application code path, and affected versions being limited to OpenSSL 4.1.0 and 4.0.0-4.0.3. The complete fix is updating to OpenSSL 4.1.1 or 4.0.4.

Impact

Signals are mixed and lean toward lower real-world urgency than the 8.4 base score suggests. The provided CVSS:3.1 vector (AV:L/AC:L/PR:N/UI:N/C:H/I:H/A:H) treats this as a high-impact local memory-corruption flaw, but the mechanism (integer overflow in the output-size calculation when EVP_EncodeBlock() is called with an input length close to INT_MAX) means exploitability depends entirely on whether a calling application passes an attacker-influenced length near ~2 GiB to that specific API with an undersized output buffer - a narrow and uncommon code path. EPSS is very low (0.14%, 3rd percentile) and the vulnerability is NOT in CISA KEV, so there is no indication of active exploitation. The PoC is a reference link only, not verified working exploit code, so POC availability must not be read as a weaponization signal. vuln.today's 'this_week' decision label indicates a near-term patch priority rather than an emergency. Net: this is a credible but conditional library flaw whose practical risk is gated by application behavior, not a broadly exploitable remote issue. Note a tension worth verifying: AC:L in the provided vector is debatable given the requirement to deliver an input close to INT_MAX, which realistically raises attack complexity.

Exploit ScenarioDerived

In an application that feeds externally controlled, very large data (near INT_MAX / ~2 GiB) into EVP_EncodeBlock() with an output buffer sized by the normal base64 formula, the overflowed size calculation causes the function to write past the end of that buffer, corrupting adjacent memory. Because the CVSS vector is AV:L, the attacker (or the data) must reach the vulnerable call locally rather than directly over a network, and success depends on the surrounding application. A public PoC reference exists but is not verified as working exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – Nov 20, 2026

Heap-based buffer overflow in OpenSSL's base64 encoder - EVP_EncodeBlock() and the internal base64encode() path used by the HTTP client - where an input length close to INT_MAX overflows the encoded-output-size calculation and lets the encoder write past the end of the caller-supplied output buffer. Only OpenSSL 4.1.0 and 4.0.0 through 4.0.3 are affected, and reaching the flaw requires a calling application that base64-encodes a buffer of roughly 1.6-2 GiB whose length an attacker can influence, so exposure is confined to an uncommon code path rather than default deployments; the assessed vector is AV:L/AC:H/PR:N/UI:N, i.e. local attack vector with high attack complexity. No confirmed active exploitation (not in CISA KEV), EPSS is 0.14% (3rd percentile), and a public PoC reference exists but is not verified as working exploit code; vendor fixes are OpenSSL 4.1.1 and 4.0.4.

Earlier versions of this analysis (1)
v1 Nov 20, 2026 - 00:27 CVSS 9.8

Heap-based buffer overflow in OpenSSL 4.0.0 (before 4.0.4) and 4.1.0 (before 4.1.1) occurs when an application calls EVP_EncodeBlock() with an input length greater than roughly 1.61 billion bytes, overflowing the int-sized base64 output-size calculation and writing past the caller-supplied output buffer. Exposure is conditional on the calling application passing such near-INT_MAX, potentially attacker-controlled lengths; typical deployments that never approach that size are not reachable, and no public exploit identified at time of analysis, with EPSS at 0.14 percent (3rd percentile). Vendor fixes in 4.0.4 and 4.1.1 add explicit length assertions and reject the overflowing size, and the same overflow guard was hardened in OpenSSL's internal http_client base64encode() path.

RemediationAI

Update to OpenSSL 4.1.1 or 4.0.4, which the upstream fix states is the complete resolution - the patch is PR #33652 (https://github.com/openssl/openssl/pull/33652), also referenced from https://nvd.nist.gov/vuln/detail/CVE-2026-121481. If an immediate upgrade is not possible, the only meaningful compensating control is at the calling application: reject or chunk base64 input lengths above (INT_MAX / 4) * 3 bytes (about 1.61 GiB) before calling EVP_EncodeBlock(), and size output buffers with overflow-checked arithmetic rather than a raw 4 * ((dlen + 2) / 3) int computation; the trade-off is that legitimate large encodings must be split into multiple calls and reassembled, and any third-party code inside the same process that calls EVP_EncodeBlock() directly is not covered by that guard. Applications that never base64-encode buffers anywhere near INT_MAX are not exposed and can schedule the upgrade through normal maintenance; no vendor-issued interim patch beyond the 4.1.1/4.0.4 releases is identified in the available data.

Affected VersionsENISA

OpenSSL 4.1.0 <4.1.1
OpenSSL 4.0.0 <4.0.4

Affected Packages

euvd openssl fix: 4.0.4, 4.1.1

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

OpenSSL's EVP_EncodeBlock() implements base64 encoding, which expands every 3 input bytes to 4 output bytes; the function takes the input length as a signed int (dlen) and callers typically size their destination buffer as 4 * ceil(dlen / 3). Because that product is computed in int arithmetic, the expression overflows once dlen exceeds 3 * floor(INT_MAX / 4) - roughly 1.61 GiB - even though dlen itself is still a valid positive int, and the resulting undersized buffer is then written past its end (CWE-122, heap-based buffer overflow, rooted in an integer overflow in the size calculation). The upstream fix in PR #33652 adds OPENSSL_assert(dlen >= 0) and OPENSSL_assert(dlen <= (INT_MAX / 4) * 3) to EVP_EncodeBlock(), adds an explicit early return for dlen == 0 that writes only the NUL terminator, and tightens crypto/http/http_client.c's base64encode() from a len > INT_MAX check to len > (INT_MAX / 4) * 3 so the HTTP client path cannot reach the overflowing size computation. The same commit adds a negative-length guard to evp_decodeblock_int(), extends the EVP_EncodeInit/EVP_DecodeBlock man pages with the new pointer and length preconditions, and adds a test covering zero-length block encode/decode and negative decode length. The severity derives from heap corruption enabling both disclosure and code execution (C:H/I:H/A:H) once the overflow is triggered, but the trigger requires the multi-gigabyte input and the specific API call, which the available sources do not show being reachable in a default configuration.

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

Vendor (openssl) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.4 HIGH

AV:L and AC:H because exploitation requires locally delivering a near-INT_MAX (~2 GiB) input through a specific application call path; heap out-of-bounds write supports C/I/A:H.

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

Primary rating from Vendor (openssl).

CVSS VectorVendor: openssl

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

Lifecycle Timeline

8
Severity Changed
Nov 20, 2026 - 20:22 NVD
HIGH MEDIUM
CVSS changed
Nov 20, 2026 - 20:22 NVD
8.4 (HIGH) 5.9 (MEDIUM)
Analysis Updated
Nov 20, 2026 - 19:51 vuln.today
v2 - CVSS changed
Severity Changed
Nov 20, 2026 - 19:37 NVD
CRITICAL HIGH
CVSS changed
Nov 20, 2026 - 19:37 NVD
9.8 (CRITICAL) 8.4 (HIGH)
CVSS changed
Nov 19, 2026 - 22:22 NVD
9.8 (CRITICAL)
CVE Published
Nov 18, 2026 - 11:43 cve.org
CRITICAL 9.8
CVE Published
Nov 18, 2026 - 11:43 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Calling EVP_EncodeBlock() with an input length close to INT_MAX may overflow the calculation of the encoded output size and write past the end of the caller-supplied output buffer.

Executive ViewAI

Why It Matters

A high-severity heap overflow in OpenSSL 4.1.0 and 4.0.0-4.0.3 affects only applications that base64-encode extremely large buffers, requiring an attacker to influence the buffer length. While the attack path is narrow and local, unpatched systems in development or custom integration pipelines could face data corruption or code execution, so security management should prioritize patching to avoid compliance and operational risk.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
OpenSSL is a near-universal crypto library; vulnerable 4.0/4.1 branches still rolling out
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
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.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

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

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