# OpenSSL Integer Overflow Leading to Heap Buffer Overflow in EVP_EncodeBlock() Base64 Encoding (CVE-2026-121481)

> CVE-2026-121481 is an integer overflow in OpenSSL's EVP_EncodeBlock() that causes a heap buffer overflow when the function is called with an input length close to INT_MAX (about 2 GB). CISA's Vulnrichment scores it CVSS 3.1 9.8, while OpenSSL, as CNA, rates it Low because no attacker-controlled path to the overflow is known. Fixed in OpenSSL 4.0.4 and 4.1.1.

- **Published:** 2026-11-20T13:11:23Z
- **Last reviewed:** 2026-11-20T13:11:23Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6579
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6579.png
- **ID:** TL-2026-6579
- **Severity:** CRITICAL (CVSS 9.8)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 10 (1 shown free below)
- **CVEs:** CVE-2026-121481

## Description

CVE-2026-121481 affects the Base64 encoder EVP_EncodeBlock() in OpenSSL 4.0.0 before 4.0.4 and 4.1.0 before 4.1.1. The caller is expected to supply an output buffer of 4*((len+2)/3)+1 bytes. For input lengths near INT_MAX, that size calculation overflows a signed integer, so the function writes past the end of the caller-allocated heap buffer. Triggering it requires the calling application to hold a buffer of roughly two gigabytes and to pass a very large length to the function.

Severity is disputed between sources. The CISA ADP (Vulnrichment) container assigns CVSS 3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and CWE-122; NVD shows only this secondary score and the record is 'Awaiting Analysis'. OpenSSL, as the CNA, gives no CVSS score and rates the issue Low under its security policy, stating that no attacker-controlled path to the overflow is known. OpenSSL's TLS, QUIC and CMS code never encode buffers that large, and the command-line tools cannot practically be driven to do so. An application is exposed only if it accepts an attacker-controlled length and passes it to EVP_EncodeBlock() without its own bound check. The CNA weakness is CWE-190 (Integer Overflow or Wraparound).

No in-the-wild exploitation, public proof of concept, attribution or network IOCs are reported in any source. The CVE is not in CISA KEV. CISA SSVC (v2.0.3) records Exploitation 'none', Automatable 'yes', Technical Impact 'total'. OpenCVE shows an EPSS of 0.140% (30-day). The fix is OpenSSL pull request #33652; Nicky Mouha is credited as reporter and remediation developer. OpenSSL 3.x is outside the affected ranges. Ubuntu rates the issue Medium; its openssl package is 'Needs evaluation' on all releases, and nodejs on 22.04 LTS (which embeds OpenSSL 1.1.1m) is listed as Vulnerable, while edk2 (embedded OpenSSL) is 'Needs evaluation'.

Defender guidance: inventory software built against OpenSSL 4.0.0-4.0.3 and 4.1.0, upgrade to 4.0.4 or 4.1.1, and audit custom code that calls EVP_EncodeBlock() with externally influenced lengths. Add explicit length limits before Base64 encoding. Note that the OpenCVE 'Analysis' text is AI-generated and makes claims (signed 32-bit integer details, crafted network traffic, code execution) that are not in the CNA record, so it was not used as evidence.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1203 Exploitation for Client Execution
- T1499.004 Application or System Exploitation
- T1565.001 Stored Data Manipulation
- T1005 Data from Local System

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**CVE-2026-121481 Follow-on: Web/Runtime Service Spawning a Shell After Memory-Corruption Attempt** (`TL-2026-6579-SPL-003`)

Post-exploitation behaviour for TL-2026-6579. If a heap overflow in an OpenSSL-linked service (CVE-2026-121481) were ever weaponised into code execution, the typical outcome is a web/runtime service (node, nginx, httpd, apache2, java, php-fpm, gunicorn, uwsgi) spawning an interactive shell. Exploitation is currently theoretical; this is a generic high-signal post-exploitation control mapped to T1190/T1203, with the resulting interactive shell tracked as T1059.004 (Unix Shell).

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1203, T1190, T1059.004
- **Data sources:** sysmon_for_linux, microsoft_defender_for_endpoint
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

```spl
index=linux_sysmon sourcetype="sysmon:linux" EventID=1 earliest=-24h
    (ParentImage="*/node" OR ParentImage="*/nginx" OR ParentImage="*/httpd" OR ParentImage="*/apache2" OR ParentImage="*/java" OR ParentImage="*/php-fpm" OR ParentImage="*/gunicorn" OR ParentImage="*/uwsgi")
    (Image="*/sh" OR Image="*/bash" OR Image="*/dash")
| stats count as spawns values(CommandLine) as commands earliest(_time) as first_seen latest(_time) as last_seen by host ParentImage Image User
| convert ctime(first_seen) ctime(last_seen)
| table host User ParentImage Image commands spawns first_seen last_seen
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ("node", "nginx", "httpd", "apache2", "java", "php-fpm", "gunicorn", "uwsgi")
| where FileName in~ ("sh", "bash", "dash")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine
| order by Timestamp desc
```

### Sigma

```yaml
title: Web or Runtime Service Spawning Shell (Post-Exploitation, CVE-2026-121481 Context)
id: a41e8f07-6c93-4b2a-8d15-9f3c0e7b6303
status: experimental
description: Detects a Linux web/application runtime process spawning sh/bash/dash, the typical result of successful memory-corruption exploitation of a service linked against a vulnerable OpenSSL (CVE-2026-121481).
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-121481
  - https://github.com/openssl/openssl/pull/33652
  - https://openssl-library.org/news/vulnerabilities/
author: Threadlinqs Team
date: 2026/11/20
tags:
  - attack.execution
  - attack.t1203
  - attack.t1059.004
  - attack.initial-access
  - attack.t1190
  - cve.2026.121481
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|endswith:
      - '/node'
      - '/nginx'
      - '/httpd'
      - '/apache2'
      - '/java'
      - '/php-fpm'
      - '/gunicorn'
      - '/uwsgi'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
  condition: selection_parent and selection_child
falsepositives:
  - Node/Java apps that legitimately shell out (build tools, deploy hooks)
  - Admin debugging sessions from application containers
level: high

```

**Known false positives:**

- Node.js / Java applications that legitimately shell out (build tools, deploy hooks, cron wrappers)
- Administrators debugging inside application containers

**Tuning notes:** Baseline legitimate parent/command pairs per host and exclude them (e.g. known deploy scripts). Extend the parent list for your stack. Raise priority when the host also shows SPL-002 segfaults or heap-corruption aborts. Requires Sysmon for Linux EventID 1 or equivalent process telemetry; adjust index/sourcetype to your environment.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- CVE-2026-121481 glibc Heap-Corruption Abort Messages (Heap Buffer Overflow Indicator) (locked: unlock with TL Creds)
- CVE-2026-121481 Service Crash Loop — Repeated systemd SEGV/ABRT Core Dumps (locked: unlock with TL Creds)
- CVE-2026-121481 Kernel OOM-Kill of Service Process During Multi-Gigabyte Buffer Handling (locked: unlock with TL Creds)
- CVE-2026-121481 auditd ANOM_ABEND — Abnormal Process Termination by SIGSEGV/SIGABRT (locked: unlock with TL Creds)
- Base64 Encoding of Sensitive Local Files via Command Line (Post-Exploitation Collection, CVE-2026-121481 Context) (locked: unlock with TL Creds)
- CVE-2026-121481 Core Dump File Created After Service Crash (Memory-Corruption Crash Artefact) (locked: unlock with TL Creds)
- CVE-2026-121481 OpenSSL EVP_EncodeBlock — Near-INT_MAX Request Body to Public-Facing Application (locked: unlock with TL Creds)
- CVE-2026-121481 Process Segfault Inside OpenSSL 4.x libcrypto (EVP_EncodeBlock Heap Overflow Crash) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (1 of 10)

Defanged, TLP:CLEAR.

- URL: `hxxps://news[.]ycombinator[.]com/item?id=50569226`

Full set of 10 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [OpenSSL Hit by Critical 9.8 Heap Buffer Overflow Vulnerability in Base64 Encoding Function](https://cybersecuritynews.com/openssl-heap-buffer-overflow/)
- [OpenCVE - CVE-2026-121481](https://app.opencve.io/cve/CVE-2026-121481)
- [Ubuntu Security Tracker - CVE-2026-121481](https://ubuntu.com/security/CVE-2026-121481)
- [NVD - CVE-2026-121481](https://nvd.nist.gov/vuln/detail/CVE-2026-121481)
- [OpenSSL fix: pull request #33652](https://github.com/openssl/openssl/pull/33652)
- [OpenSSL Vulnerabilities](https://openssl-library.org/news/vulnerabilities/)
- [Launchpad - CVE-2026-121481](https://launchpad.net/bugs/cve/CVE-2026-121481)
- [Debian Security Tracker - CVE-2026-121481](https://security-tracker.debian.org/tracker/CVE-2026-121481)
- [Hacker News discussion of CVE-2026-121481](https://news.ycombinator.com/item?id=50569226)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6579
