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

CVE-2026-66054: Apache Thrift C++ DOS Vulnerability

CVE-2026-66054 is a denial of service vulnerability in Apache Thrift C++ bindings caused by resource allocation without limits and improper handling of compressed data. This post explains its impact, affected versions, and mitigation steps.

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-66054 Overview

CVE-2026-66054 affects the Apache Thrift C++ bindings. The vulnerability stems from improper handling of highly compressed data combined with the allocation of resources without limits or throttling. Attackers can submit small, highly compressed payloads that force the server to allocate disproportionate memory during decompression, producing a data amplification condition. The flaw is tracked under CWE-409: Improper Handling of Highly Compressed Data. Apache Thrift versions prior to 0.25.0 are affected, and the Apache Thrift project recommends upgrading to 0.25.0, which fixes the issue.

Critical Impact

Remote, unauthenticated attackers can trigger excessive resource allocation in Apache Thrift C++ services, degrading availability through memory and CPU exhaustion.

Affected Products

  • Apache Thrift C++ bindings prior to version 0.25.0
  • Services and applications linking against vulnerable Apache Thrift C++ libraries
  • Downstream distributions packaging Apache Thrift releases before 0.25.0

Discovery Timeline

  • 2026-10-02 - CVE-2026-66054 published to NVD
  • 2026-10-03 - Last updated in NVD database

Technical Details for CVE-2026-66054

Vulnerability Analysis

Apache Thrift is a cross-language serialization and RPC framework. The C++ bindings accept compressed input and decompress it before processing. The affected code paths decompress attacker-controlled data without enforcing size caps on the resulting output or on intermediate buffers. A small compressed payload can expand into a far larger memory footprint during decoding.

The availability impact is network-reachable and does not require authentication or user interaction. An attacker only needs to reach a Thrift endpoint that accepts framed or compressed input. Confidentiality and integrity are not affected; the consequence is service degradation or process termination under sustained input.

Root Cause

The root cause is the absence of upper bounds on decompressed data size and on memory allocation during input parsing in the C++ bindings. CWE-409 describes this pattern: software that decompresses data without validating the ratio between input and output, allowing data amplification attacks sometimes called compression bombs.

Attack Vector

An attacker sends a crafted, highly compressed payload to any service built on the vulnerable Apache Thrift C++ bindings. The receiver attempts to decompress and buffer the result. Memory allocation grows rapidly relative to the request size, exhausting process memory or triggering out-of-memory kills. Repeated requests scale the impact into a sustained denial of service. See the Apache Security Mailing List Discussion and the Apache Thread on Security Issue for background on the fix.

No verified public exploit code is available for this CVE. The vulnerability class is well understood: a small compressed input decompresses into a very large buffer, and the Thrift C++ parser allocates memory to hold it without applying a configured ceiling.

Detection Methods for CVE-2026-66054

Indicators of Compromise

  • Spikes in resident memory for processes linking Apache Thrift C++ libraries, followed by out-of-memory terminations
  • Repeated small inbound requests to Thrift RPC ports that correlate with elevated allocator activity
  • Service restart loops on Thrift-based microservices without corresponding deployment changes

Detection Strategies

  • Inventory services statically or dynamically linked against Apache Thrift C++ libraries below 0.25.0
  • Monitor Thrift endpoints for anomalously high compression ratios between request size and post-decode buffer size
  • Alert on process memory growth that exceeds historical baselines for Thrift-backed services

Monitoring Recommendations

  • Enable per-process memory and allocator telemetry on hosts running Thrift C++ services
  • Capture network flow metadata for Thrift ports to detect bursts of small, repeated requests from single sources
  • Correlate OOM-killer events with upstream traffic patterns in your SIEM or data lake

How to Mitigate CVE-2026-66054

Immediate Actions Required

  • Upgrade Apache Thrift C++ bindings to version 0.25.0 or later across all affected services
  • Rebuild and redeploy applications that statically link vulnerable Apache Thrift C++ libraries
  • Restrict network exposure of Thrift RPC endpoints to trusted clients until patching is complete

Patch Information

The Apache Thrift project fixed this issue in version 0.25.0. Users are recommended to upgrade. Review the Apache Security Mailing List Discussion and the Apache Thread on Security Issue for release and advisory details.

Workarounds

  • Place Thrift services behind a reverse proxy that enforces maximum request body size
  • Apply per-client rate limits and connection quotas to Thrift endpoints
  • Configure operating system cgroup memory limits on Thrift service processes to contain amplification impact
  • Reject or drop requests whose declared or observed compression ratios exceed a conservative threshold

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.