Integer overflow in OpenSSL EVP_EncodeBlock() with very large inputs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat. Impact type from CWE-190 and the CVSS impact.
Summary
OpenSSL from 4.0.0 before 4.0.4 and from 4.1.0 before 4.1.1 is affected. EVP_EncodeBlock() can overflow a signed integer when calculating the encoded output size for input lengths close to INT_MAX, which is CWE-190 and writes past the caller's output buffer. No attacker path to trigger it is known, since the application must itself pass such a length, and the result is a heap buffer overflow in the calling process.
Written with Claude Haiku 5.5 from the sources below · 2026-11-26
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade OpenSSL to version 4.1.1 or 4.0.4. Red Hat fixes Red Hat Hardened Images in RHSA-2026:79719, RHSA-2026:80572, RHSA-2026:81364, RHSA-2026:88861, RHSA-2026:88880, RHSA-2026:99061 and RHSA-2026:99574.
Written with Claude Haiku 5.5 from the sources below · 2026-11-26
- Fix · CNA OpenSSL (OpenSSL) Fixed in 4.1.1, 4.0.4
Red Hat 7 advisories
- RHSA-2026:99574 Released 2026-11-12 · Red Hat rating ModerateRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images openssl3-1:3.5.9-1.3.hum1@src, openssl3-devel-1:3.5.9-1.3.hum1@aarch64, openssl3-devel-1:3.5.9-1.3.hum1@s390x +7
- RHSA-2026:99061 Released 2026-11-11 · Red Hat rating ModerateRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images openssl-1:3.5.9-0.4.hum1@aarch64, openssl-1:3.5.9-0.4.hum1@s390x, openssl-1:3.5.9-0.4.hum1@src +19
- RHSA-2026:88880 Released 2026-10-24 · Red Hat rating CriticalRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.3-3.3.13-23.8.hum1@aarch64, ruby3.3-3.3.13-23.8.hum1@s390x, ruby3.3-3.3.13-23.8.hum1@src +16
Show 4 more Red Hat advisories
- RHSA-2026:88861 Released 2026-10-23 · Red Hat rating CriticalRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.4-3.4.12-33.1.hum1@aarch64, ruby3.4-3.4.12-33.1.hum1@s390x, ruby3.4-3.4.12-33.1.hum1@src +16
- RHSA-2026:81364 Released 2026-10-12 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images python-cryptography-50.0.0-1.1.hum1@src, python3-cryptography-50.0.0-1.1.hum1@aarch64, python3-cryptography-50.0.0-1.1.hum1@s390x +1
- RHSA-2026:80572 Released 2026-10-12 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images bootupd-0.3.2-1.1.hum1@aarch64, bootupd-0.3.2-1.1.hum1@s390x, bootupd-0.3.2-1.1.hum1@x86_64 +1
- RHSA-2026:79719 Released 2026-10-08 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images chunkah-0.7.1-1.hum1@aarch64, chunkah-0.7.1-1.hum1@s390x, chunkah-0.7.1-1.hum1@src +1
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Hardened Images | Fixed | RHSA-2026:79719, RHSA-2026:80572, RHSA-2026:81364, RHSA-2026:88861, RHSA-2026:88880, RHSA-2026:99061, RHSA-2026:99574 |
Not affected: 12 products
- Red Hat Developer Hub 1
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Hardened Images
- Red Hat JBoss Core Services
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
- Red Hat Satellite 6
- Red Hat Satellite Client
Timeline
- 2026-11-18 Threatist record created from CVE-2026-121481
- 2026-11-18 Alias added: GHSA-83xj-7xh4-4p7x
- 2026-11-19 CVSS score added · CISA ADP
- 2026-11-19 Weakness changed · CISA ADP
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-20 Title updated · CNA
- 2026-11-20 Weakness changed · CNA
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
- 2026-11-20 CVSS score changed · CISA ADP
- 2026-11-20 Weakness changed · CISA ADP
- 2026-11-20 Fix available: RHSA-2026:88861 · Red Hat
- 2026-11-20 Fix available: RHSA-2026:88880 · Red Hat
- 2026-11-20 Fix available: RHSA-2026:99574 · Red Hat
- 2026-11-20 Fix available: RHSA-2026:80572 · Red Hat
- 2026-11-20 Fix available: RHSA-2026:79719 · Red Hat
- 2026-11-20 Fix available: RHSA-2026:81364 · Red Hat
- 2026-11-20 Fix available: Red Hat Hardened Images · Red Hat
- 2026-11-20 CVSS score changed · CISA ADP
- 2026-11-20 CISA SSVC decision points changed
- 2026-11-21 Fix available: RHSA-2026:99061 · Red Hat
- 2026-11-21 Affected versions changed · Red Hat
- 2026-11-26 Affected versions changed · Red Hat
References
Patch 1
More OpenSSL vulnerabilities
- TI-2022-01915 The c_rehash script allows command injection CVSS 3.1CRITICAL 9.8
- TI-2021-02645 SM2 Decryption Buffer Overflow CVSS 3.1CRITICAL 9.8
- TI-2009-03392 The TLS protocol, and the SSL protocol 3.0 and possibly earlier, as used in Microsoft… CVSS 3.1CRITICAL 9.8
- TI-2022-01176 The c_rehash script allows command injection CVSS 3.1CRITICAL 9.8
- TI-2014-00154 Out-of-bounds read in OpenSSL TLS and DTLS Heartbeat handling KEVCVSS 3.1HIGH 7.5
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
Sources
- CVE-2026-121481 · CVE Program
- CVE-2026-121481 · NVD
- FIRST EPSS
- GHSA-83xj-7xh4-4p7x · GitHub Advisory Database · CC BY 4.0
- CVE-2026-121481 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences