cve.bz

CVE-2026-121481 Integer Overflow in EVP_EncodeBlock() with Very Large Input Lengths

5.9 mediumEPSS 0.5%

Medium (5.9) in openssl openssl. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% estimated probability of exploitation activity in the next 30 days; 41st 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: partial, assessed 2026-11-20. 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-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
Assigned by
openssl (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-121481 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-121481?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-121481?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-121481 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 4.1.0 before 4.1.1
OpenSSLfrom 4.0.0 before 4.0.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14opensslno fix listedDEBIAN-CVE-2026-121481
Ubuntu22.04:LTS, 24.04:LTS, Pro:20.04:LTSedk2, opensslno fix listedUBUNTU-CVE-2026-121481
Ubuntu26.04:LTS, 26.10edk2, openssl, edk2-hweno fix listedUBUNTU-CVE-2026-121481
UbuntuPro:14.04:LTS, Pro:FIPS-updates:16.04:LTS, Pro:FIPS-updates:18.04:LTS and 4 moreopensslno fix listedUBUNTU-CVE-2026-121481
UbuntuPro:16.04:LTSedk2, nodejs, opensslno fix listedUBUNTU-CVE-2026-121481
UbuntuPro:18.04:LTSedk2, nodejs, openssl and 1 moreno fix listedUBUNTU-CVE-2026-121481
UbuntuPro:22.04:LTSnodejsno fix listedUBUNTU-CVE-2026-121481
UbuntuPro:FIPS-preview:22.04:LTS, Pro:FIPS-updates:22.04:LTSopenssl, openssl-fipsno fix listedUBUNTU-CVE-2026-121481
UbuntuPro:FIPS-updates:24.04:LTSopenssl-fipsno fix listedUBUNTU-CVE-2026-121481

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability is rated Low because OpenSSL reports no identified attacker-controlled path: the caller must pass an input length near INT_MAX to EVP_EncodeBlock(). OpenSSL TLS/QUIC/CMS and CLI tools do not reach this condition. Only OpenSSL 4.0/4.1 lines are affected upstream.

Red Hat's mitigation

Do not pass attacker-controlled lengths near INT_MAX into EVP_EncodeBlock(); enforce application bounds. OpenSSL TLS, QUIC, CMS, and CLI paths are not known to reach this condition. Products shipping OpenSSL 3.5 or earlier are outside the upstream affected range.

ProductPackageStateAdvisory
Red Hat Hardened Imageschunkah-main-0.7.1-1.hum1Fixed 2026-10-08RHSA-2026:79719
Red Hat Hardened Imagesrust-bootupd-main-0.3.2-1.1.hum1Fixed 2026-10-12RHSA-2026:80572
Red Hat Hardened Imagespython-cryptography-main-50.0.0-1.1.hum1Fixed 2026-10-12RHSA-2026:81364
Red Hat Hardened Imagesruby3-4-main-3.4.12-33.1.hum1Fixed 2026-10-23RHSA-2026:88861
Red Hat Hardened Imagesruby3-3-main-3.3.13-23.8.hum1Fixed 2026-10-24RHSA-2026:88880
Red Hat Hardened Imagesopenssl3-main-3.5.9-1.3.hum1Fixed 2026-11-12RHSA-2026:99574
Red Hat Developer Hub 1rhdh/rhdh-hub-rhel9Not affected
Red Hat Enterprise Linux 10edk2Not affected
Red Hat Enterprise Linux 10opensslNot affected
Red Hat Enterprise Linux 10shimNot affected
Red Hat Enterprise Linux 10shim-unsigned-aarch64Not affected
Red Hat Enterprise Linux 10shim-unsigned-x64Not affected
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 7opensslNot affected
Red Hat Enterprise Linux 7ovmfNot affected
Red Hat Enterprise Linux 7shim-signedNot affected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8edk2Not affected
Red Hat Enterprise Linux 8mingw-opensslNot affected
Red Hat Enterprise Linux 8opensslNot affected
24 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-121481.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • Quaerendir/openssl-cve-2026-121481-audit 0 stars, Shell, created
    Read-only audit script for OpenSSL CVE-2026-121481 (EVP_EncodeBlock overflow). Preliminary: affected range from third-party trackers, uncon…

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

History

  1. Scored 9.8 critical
  2. Score 9.8 → 8.4 high
  3. Score 8.4 → 5.9 medium

Changes since this site first stored the record. The same for every record: /api/public/changes.

References

Check your stackJSON