Skip to main content
Vulnerability Database/CVE-2026-94636

CVE-2026-94636: Apache Thrift Python Bindings DOS Vulnerability

CVE-2026-94636 is a denial of service vulnerability in Apache Thrift Python bindings caused by improper handling of compressed data and input validation flaws. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-94636 Overview

CVE-2026-94636 is a denial-of-service vulnerability affecting the Apache Thrift Python bindings. The flaw combines improper handling of highly compressed data (data amplification), function calls with incorrectly specified arguments, and improper validation of specified quantity in input. An attacker can submit crafted compressed payloads that expand into excessive memory or CPU consumption on the receiving server. The issue affects all Apache Thrift releases before 0.25.0 and is tracked under CWE-409: Improper Handling of Highly Compressed Data. Remote exploitation requires no authentication and no user interaction, making exposed Thrift endpoints a direct availability risk.

Critical Impact

Unauthenticated remote attackers can trigger resource exhaustion in services using the Apache Thrift Python bindings, degrading or halting availability of dependent applications.

Affected Products

  • Apache Thrift Python (py) bindings, all versions before 0.25.0
  • Services and microservices that deserialize untrusted Thrift payloads via the Python runtime
  • Downstream applications bundling vulnerable thrift Python packages as a dependency

Discovery Timeline

  • 2026-10-02 - CVE-2026-94636 published to the National Vulnerability Database (NVD)
  • 2026-10-02 - Last updated in NVD database

Technical Details for CVE-2026-94636

Vulnerability Analysis

The vulnerability resides in how the Apache Thrift Python bindings parse and expand incoming serialized data. Thrift supports compact and binary protocols that encode length-prefixed collections such as lists, maps, and sets. The Python implementation does not sufficiently validate the declared element counts or the ratio between compressed input size and decompressed output size. A small network payload can therefore instruct the parser to allocate very large data structures, consuming memory and CPU disproportionate to the request size.

The issue is reinforced by internal function calls that pass incorrectly specified arguments, bypassing size sanity checks that would normally cap allocations. Combined, these weaknesses create a classic data amplification pattern against Remote Procedure Call (RPC) services built on Thrift.

Root Cause

The root cause is a failure to validate quantity fields in deserialized Thrift messages before allocating backing storage. Length prefixes supplied by the peer are trusted, and compression ratios are not bounded. This maps to CWE-409 and is compounded by argument-passing errors inside the deserialization routines of the Python bindings.

Attack Vector

The attack vector is network-based. An unauthenticated attacker sends a crafted Thrift message, typically using compact or compressed protocol variants, to any service that uses the vulnerable Python bindings to deserialize untrusted input. Processing the message triggers excessive allocation and parsing work, leading to denial of service. Full technical discussion is available in the Apache Mailing List Discussion and the Apache Mailing List Update.

Detection Methods for CVE-2026-94636

Indicators of Compromise

  • Sudden memory or CPU spikes in Python processes hosting Thrift RPC endpoints without a corresponding increase in request volume.
  • Repeated short-lived connections from a single source immediately preceding worker process restarts or out-of-memory kills.
  • Thrift deserialization exceptions or truncated responses logged alongside allocation failures.

Detection Strategies

  • Inventory all Python services and dependencies using the thrift package and flag versions earlier than 0.25.0.
  • Instrument Thrift servers to log the declared collection sizes and compare them against actual payload byte counts.
  • Deploy network monitoring to detect anomalously small requests that produce disproportionately large server-side resource usage.

Monitoring Recommendations

  • Alert on container or process OOMKills, segmentation faults, and worker restarts on hosts running Thrift services.
  • Track per-source request rates and payload-size distributions against baseline for each Thrift endpoint.
  • Forward application and system telemetry to a centralized analytics tier for correlation across hosts.

How to Mitigate CVE-2026-94636

Immediate Actions Required

  • Upgrade the Apache Thrift Python bindings to version 0.25.0 or later across all services and container images.
  • Restrict exposure of Thrift RPC ports to trusted networks and authenticated callers only.
  • Rebuild and redeploy any downstream packages that pin the vulnerable thrift dependency.

Patch Information

Apache Thrift version 0.25.0 fixes the issue. Users of the Python bindings should upgrade immediately. Confirm the fix by inspecting the installed package version with pip show thrift and verifying it reports 0.25.0 or newer. Refer to the Apache Mailing List Update for the official announcement.

Workarounds

  • Place a reverse proxy or API gateway in front of Thrift services to enforce maximum request body size limits.
  • Terminate connections that exceed configured deserialization time or memory budgets at the application layer.
  • Disable compressed protocol variants on externally reachable endpoints when they are not required.
bash
# Upgrade Apache Thrift Python bindings to the patched release
pip install --upgrade "thrift>=0.25.0"

# Verify the installed version
pip show thrift | grep -i version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.