# CVE-2026-121481: Integer Overflow in EVP\_EncodeBlock() with Very Large Input Lengths

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-18 · Modified: 2026-11-30
- Aliases: UBUNTU-CVE-2026-121481, CGA-2h3q-3qvm-pqwc, CGA-322m-6jv6-7875, CGA-7vjf-w4qp-3vp2, CGA-9795-4vrq-mvj5, CGA-jm63-fj5g-73xm, CGA-r4vh-5fjv-9rx2, CGA-3p83-852v-98mh, CGA-4r7q-8ghp-99cc, CGA-6x9v-rvcf-xqx4, CGA-p6vv-v3pj-6qjf, CGA-rgxm-xmh4-v74w, CGA-rx39-fpv4-fppw, CGA-vr23-22j7-54h2, CGA-4f96-7rrf-5485, CGA-3g5q-3242-6vfp, CGA-ggj9-m263-4626, CGA-7vx9-86m3-9mqp, DEBIAN-CVE-2026-121481, CGA-wr54-2xxq-4w4f, CGA-85rp-cwh9-g9h5, CGA-x5h2-884f-rw67
- Record: https://cvemate.com/vulnerability/CVE-2026-121481 · JSON: https://cvemate.com/vulnerability/CVE-2026-121481/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.588%, percentile 49.55%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 25)

- chainguard eco-python-openssl-4 (Chainguard): All versions (No fix recorded)
- chainguard eco-python-openssl-4-pyca-dev (Chainguard): All versions (No fix recorded)
- chainguard openssl-4.0 (Chainguard): All versions (No fix recorded)
- chainguard openssl-4.0-dbg (Chainguard): All versions (No fix recorded) \| \< 4.0.4-r0
- chainguard openssl-4.0-dev (Chainguard): All versions (No fix recorded) \| \< 4.0.4-r0
- chainguard openssl-4.0-doc (Chainguard): All versions (No fix recorded) \| \< 4.0.4-r0
- chainguard openssl-4.0-libcrypto (Chainguard): All versions (No fix recorded)
- chainguard openssl-4.0-libssl (Chainguard): All versions (No fix recorded) \| \< 4.0.4-r0
- chainguard request-10630-openssl-4.0 (Chainguard): All versions (No fix recorded) \| \< 4.0.4-r0
- chainguard request-10630-openssl-4.0-libcrypto (Chainguard): All versions (No fix recorded) \| \< 4.0.4-r0
- chainguard request-10630-openssl-4.0-libssl (Chainguard): All versions (No fix recorded) \| \< 4.0.4-r0
- wolfi openssl-4.0 (Wolfi): All versions (No fix recorded)
- wolfi openssl-4.0-dbg (Wolfi): All versions (No fix recorded) \| \< 4.0.4-r0
- wolfi openssl-4.0-dev (Wolfi): All versions (No fix recorded) \| \< 4.0.4-r0
- wolfi openssl-4.0-doc (Wolfi): All versions (No fix recorded) \| \< 4.0.4-r0
- wolfi openssl-4.0-libcrypto (Wolfi): All versions (No fix recorded)
- wolfi openssl-4.0-libssl (Wolfi): All versions (No fix recorded) \| \< 4.0.4-r0
- debian openssl (Debian): All versions (No fix recorded)
- ubuntu edk2 (Ubuntu): All versions (No fix recorded)
- ubuntu edk2-hwe (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/openssl/openssl/pull/33652>
- <https://ubuntu.com/security/CVE-2026-121481>
- <https://www.cve.org/CVERecord?id=CVE-2026-121481>
- <https://news.ycombinator.com/item?id=50569226>
- <https://security-tracker.debian.org/tracker/CVE-2026-121481>
- <http://www.openwall.com/lists/oss-security/2026/11/24/18>
- <http://www.openwall.com/lists/oss-security/2026/11/25/3>

---

Data as of 2026-12-05T06:45:04.716Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
