CVE-2026-121481Integer Overflow in EVP_EncodeBlock() with Very Large Input Lengths
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | edk2 | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 26.10 | edk2-hwe | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 26.10 | openssl | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 26.04 | edk2 | Under investigation | UBUNTU-CVE-2026-121481 | |
| Ubuntu 26.04 | edk2-hwe | Under investigation | UBUNTU-CVE-2026-121481 | |
| Ubuntu 26.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | openssl | Under investigation | UBUNTU-CVE-2026-121481 | |
| Ubuntu 24.04 | edk2 | Under investigation | UBUNTU-CVE-2026-121481 | |
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssl | Under investigation | UBUNTU-CVE-2026-121481 | |
| Ubuntu 22.04 | edk2 | Under investigation | UBUNTU-CVE-2026-121481 | |
| Ubuntu 22.04 | nodejs | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 22.04 | openssl | Under investigation | UBUNTU-CVE-2026-121481 | |
| Ubuntu 20.04 | edk2 | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 20.04 | openssl | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 18.04 | edk2 | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 18.04 | nodejs | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 18.04 | openssl | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 18.04 | openssl1.0 | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 16.04 | edk2 | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 16.04 | nodejs | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 16.04 | openssl | Fix pending | UBUNTU-CVE-2026-121481 | |
| Ubuntu 14.04 | openssl | Fix pending | UBUNTU-CVE-2026-121481 | |
| Debian 14 | openssl | Fix pending | DEBIAN-CVE-2026-121481 | |
| Debian 13 | openssl | Fix pending | DEBIAN-CVE-2026-121481 | |
| Debian 12 | openssl | Fix pending | DEBIAN-CVE-2026-121481 | |
| Red Hat Enterprise Linux 10 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | mokutil | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 10 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | compat-openssl11 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | edk2-tools-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 9 | shim | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 9 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-openssl10 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | edk2-ovmf | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw32-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw64-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 8 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 8 | shim | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-aa64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-unsigned-aarch64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-unsigned-x64 | Not affected | ||
| Red Hat Enterprise Linux 8 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 7 | AAVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | OVMF | Not affected | ||
| Red Hat Enterprise Linux 7 | mokutil | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 7 | openssl-static | Not affected | ||
| Red Hat Enterprise Linux 7 | ovmf | Not affected | ||
| Red Hat Enterprise Linux 7 | shim | Not affected | ||
| Red Hat Enterprise Linux 7 | shim-ia32 | Not affected | ||
| Red Hat Enterprise Linux 7 | shim-signed | Not affected | ||
| Red Hat Enterprise Linux 7 | shim-x64 | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-perl | Not affected | ||
| Red Hat Enterprise Linux 6 | openssl-static | Not 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.
- OpenSSL: affected: 4.1.0 to before 4.1.1, 4.0.0 to before 4.0.4; fixed in
4.1.1,4.0.4
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.