CVE-2026-121481
Integer Overflow in EVP_EncodeBlock() with Very Large Input Lengths
Mitigation
- Upgrade OpenSSL to 4.0.4 or later.
Who should check
- Anyone running OpenSSL >= 4.1.0, < 4.1.1; >= 4.0.0, < 4.0.4
Vulnerability facts
- Affected
- OpenSSL >= 4.1.0, < 4.1.1; >= 4.0.0, < 4.0.4
- Fixed in
- OpenSSL 4.1.1, OpenSSL 4.0.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.59% chance of exploitation in 30 days (percentile 42, 2026-11-26)
- CWE
- CWE-190
- Modified
Description
Issue summary: 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. Impact summary: No path by which an attacker can trigger this has been identified. An application that passes an input length near INT_MAX to EVP_EncodeBlock() could suffer a heap buffer overflow, crashing or corrupting its own memory, but it must itself supply such a length. CWE: CWE-190: Integer Overflow or Wraparound Description: EVP_EncodeBlock() base64-encodes a buffer of a caller-supplied length into an output buffer that the caller allocates. The caller is expected to reserve 4*((len+2)/3)+1 bytes. For input lengths close to INT_MAX, the arithmetic that computes the encoded length overflows a signed integer, so the function writes more data than the documented output size. The result is a heap buffer overflow in the calling process. Reaching this requires an application to pass an input length near INT_MAX to EVP_EncodeBlock(). OpenSSL's TLS, QUIC and CMS implementations never encode buffers of that size, and the command line tools cannot practically be made to do so: the limits on reading a proxy password from a file and on bignum sizes prevent it. An application that accepts an attacker-controlled length and forwards it to EVP_EncodeBlock() without its own bound check is exposed. The severity is Low because no attacker-controlled path to the overflow is known. The caller must already hold a buffer of about two gigabytes before the defect can be reached. FIPS impact: no The affected code is outside the FIPS module boundary.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| OpenSSL | >= 4.1.0, < 4.1.1; >= 4.0.0, < 4.0.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-121481. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-121481.md Affected: OpenSSL >= 4.1.0, < 4.1.1; >= 4.0.0, < 4.0.4 Fixed in: OpenSSL 4.1.1, OpenSSL 4.0.4 Steps: 1. Search this machine and project for OpenSSL: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-121481 being exploited?
There is no confirmed exploitation: CVE-2026-121481 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.59% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-121481?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-121481?
OpenSSL >= 4.1.0, < 4.1.1; >= 4.0.0, < 4.0.4.
Is there a fix for CVE-2026-121481?
Yes. Fixed in OpenSSL 4.1.1, OpenSSL 4.0.4. Upgrade OpenSSL to 4.0.4 or later.
How do I check if I'm affected by CVE-2026-121481?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More OpenSSL vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 5.3 | CVE-2026-115841 Sequoia-openpgp: sequoia-openpgp: degenerate dsa keys are accepted on the nettle and openssl backendsa | Linux kernel+4 | ||
| UNSCORED | CVE-2026-84785 Unbounded Out-of-Order Fragment Reassembly in QUIC Streams | OpenSSL | EPSS 15% | |
| MEDIUM 5.3 | CVE-2026-95690 Excessive Memory Allocation in DTLS Handshake Message Reassembly | OpenSSL | EPSS 18% | |
| HIGH 7.5 | CVE-2026-84786 Possible NULL Dereference in Non-SMTP DANE Clients | OpenSSL | EPSS 35% | |
| HIGH 7.5 | CVE-2026-121482 Relative CRL Distribution Point Names Rebuilt per CRL in X.509 Verification | OpenSSL | EPSS 35% |