Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver ~2GB input to calling app
-
DeliveryApp invokes EVP_EncodeBlock()
-
ExploitOutput-size calc integer overflow
-
ExecutionOut-of-bounds write past buffer
-
ImpactMemory 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Primary rating from Vendor (openssl).
CVSS VectorVendor: openssl
Lifecycle Timeline
8DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe
In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri
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
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
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
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
In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas
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
The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak
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
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
A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig
EUVD-2026-128602
GHSA-83xj-7xh4-4p7x
NVD
CVE.org
EPSS
VulDB
Exploit-DB