CVEfocus › CVE database › CVE-2026-121481

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

CVSS 5.9 MediumEPSS 0.6% (higher than 41% of CVEs)Published 2026-11-18Updated 2026-11-25Assigner: openssl

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.

CWE-190

What to do

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fix pending
7Under investigation
66Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10edk2Fix pendingUBUNTU-CVE-2026-121481
Ubuntu 26.10edk2-hweFix pendingUBUNTU-CVE-2026-121481
Ubuntu 26.10opensslFix pendingUBUNTU-CVE-2026-121481
Ubuntu 26.04edk2Under investigationUBUNTU-CVE-2026-121481
Ubuntu 26.04edk2-hweUnder investigationUBUNTU-CVE-2026-121481
Ubuntu 26.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 26.04opensslUnder investigationUBUNTU-CVE-2026-121481
Ubuntu 24.04edk2Under investigationUBUNTU-CVE-2026-121481
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 24.04opensslUnder investigationUBUNTU-CVE-2026-121481
Ubuntu 22.04edk2Under investigationUBUNTU-CVE-2026-121481
Ubuntu 22.04nodejsFix pendingUBUNTU-CVE-2026-121481
Ubuntu 22.04opensslUnder investigationUBUNTU-CVE-2026-121481
Ubuntu 20.04edk2Fix pendingUBUNTU-CVE-2026-121481
Ubuntu 20.04opensslFix pendingUBUNTU-CVE-2026-121481
Ubuntu 18.04edk2Fix pendingUBUNTU-CVE-2026-121481
Ubuntu 18.04nodejsFix pendingUBUNTU-CVE-2026-121481
Ubuntu 18.04opensslFix pendingUBUNTU-CVE-2026-121481
Ubuntu 18.04openssl1.0Fix pendingUBUNTU-CVE-2026-121481
Ubuntu 16.04edk2Fix pendingUBUNTU-CVE-2026-121481
Ubuntu 16.04nodejsFix pendingUBUNTU-CVE-2026-121481
Ubuntu 16.04opensslFix pendingUBUNTU-CVE-2026-121481
Ubuntu 14.04opensslFix pendingUBUNTU-CVE-2026-121481
Debian 14opensslFix pendingDEBIAN-CVE-2026-121481
Debian 13opensslFix pendingDEBIAN-CVE-2026-121481
Debian 12opensslFix pendingDEBIAN-CVE-2026-121481
Red Hat Enterprise Linux 10edk2Not affected
Red Hat Enterprise Linux 10edk2-aarch64Not affected
Red Hat Enterprise Linux 10edk2-ovmfNot affected
Red Hat Enterprise Linux 10edk2-toolsNot affected
Red Hat Enterprise Linux 10edk2-tools-docNot affected
Red Hat Enterprise Linux 10mokutilNot affected
Red Hat Enterprise Linux 10opensslNot affected
Red Hat Enterprise Linux 10openssl-develNot affected
Red Hat Enterprise Linux 10openssl-libsNot affected
Red Hat Enterprise Linux 10openssl-perlNot affected
Red Hat Enterprise Linux 10shim-aa64Not affected
Red Hat Enterprise Linux 10shim-unsigned-aarch64Not affected
Red Hat Enterprise Linux 10shim-unsigned-x64Not affected
Red Hat Enterprise Linux 10shim-x64Not affected
Red Hat Enterprise Linux 9compat-openssl11Not affected
Red Hat Enterprise Linux 9edk2Not affected
Red Hat Enterprise Linux 9edk2-aarch64Not affected
Red Hat Enterprise Linux 9edk2-ovmfNot affected
Red Hat Enterprise Linux 9edk2-toolsNot affected
Red Hat Enterprise Linux 9edk2-tools-docNot affected
Red Hat Enterprise Linux 9opensslNot affected
Red Hat Enterprise Linux 9openssl-develNot affected
Red Hat Enterprise Linux 9openssl-libsNot affected
Red Hat Enterprise Linux 9openssl-perlNot affected
Red Hat Enterprise Linux 9shimNot affected
Red Hat Enterprise Linux 9shim-aa64Not affected
Red Hat Enterprise Linux 9shim-unsigned-aarch64Not affected
Red Hat Enterprise Linux 9shim-unsigned-x64Not affected
Red Hat Enterprise Linux 9shim-x64Not affected
Red Hat Enterprise Linux 8compat-openssl10Not affected
Red Hat Enterprise Linux 8edk2Not affected
Red Hat Enterprise Linux 8edk2-aarch64Not affected
Red Hat Enterprise Linux 8edk2-ovmfNot affected
Red Hat Enterprise Linux 8mingw-opensslNot affected
Red Hat Enterprise Linux 8mingw32-opensslNot affected
Red Hat Enterprise Linux 8mingw64-opensslNot affected
Red Hat Enterprise Linux 8opensslNot affected
Red Hat Enterprise Linux 8openssl-develNot affected
Red Hat Enterprise Linux 8openssl-libsNot affected
Red Hat Enterprise Linux 8openssl-perlNot affected
Red Hat Enterprise Linux 8openssl-staticNot affected
Red Hat Enterprise Linux 8shimNot affected
Red Hat Enterprise Linux 8shim-aa64Not affected
Red Hat Enterprise Linux 8shim-ia32Not affected
Red Hat Enterprise Linux 8shim-unsigned-aarch64Not affected
Red Hat Enterprise Linux 8shim-unsigned-x64Not affected
Red Hat Enterprise Linux 8shim-x64Not affected
Red Hat Enterprise Linux 7AAVMFNot affected
Red Hat Enterprise Linux 7OVMFNot affected
Red Hat Enterprise Linux 7mokutilNot affected
Red Hat Enterprise Linux 7opensslNot affected
Red Hat Enterprise Linux 7openssl-develNot affected
Red Hat Enterprise Linux 7openssl-libsNot affected
Red Hat Enterprise Linux 7openssl-perlNot affected
Red Hat Enterprise Linux 7openssl-staticNot affected
Red Hat Enterprise Linux 7ovmfNot affected
Red Hat Enterprise Linux 7shimNot affected
Red Hat Enterprise Linux 7shim-ia32Not affected
Red Hat Enterprise Linux 7shim-signedNot affected
Red Hat Enterprise Linux 7shim-x64Not affected
Red Hat Enterprise Linux 6opensslNot affected
Red Hat Enterprise Linux 6openssl-develNot affected
Red Hat Enterprise Linux 6openssl-perlNot affected
Red Hat Enterprise Linux 6openssl-staticNot affected

What the vendor says

As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.