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

CVE-2026-94650: Apache Thrift c_glib DOS Vulnerability

CVE-2026-94650 is an uncontrolled recursion flaw in Apache Thrift c_glib bindings that enables denial of service attacks. This article covers the technical details, affected versions, security impact, 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-94650 Overview

CVE-2026-94650 is an uncontrolled recursion vulnerability [CWE-674] in the Apache Thrift c_glib language bindings. The flaw affects all Apache Thrift releases prior to version 0.25.0. A remote, unauthenticated attacker can send a crafted payload that triggers unbounded recursive processing, exhausting stack resources and crashing the target service. The Apache Thrift project recommends upgrading to version 0.25.0, which contains the fix.

Critical Impact

Remote attackers can trigger a denial-of-service condition against any service using the Apache Thrift c_glib bindings by sending a malicious serialized message, with no authentication or user interaction required.

Affected Products

  • Apache Thrift c_glib bindings, all versions before 0.25.0
  • Services and daemons built on vulnerable Apache Thrift c_glib library releases
  • Downstream applications bundling the vulnerable Apache Thrift C/GLib runtime

Discovery Timeline

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

Technical Details for CVE-2026-94650

Vulnerability Analysis

Apache Thrift is a cross-language serialization and remote procedure call (RPC) framework. The c_glib bindings provide the C/GLib implementation used by native services and libraries. The vulnerability resides in the deserialization logic, which recursively processes nested data structures without enforcing a maximum recursion depth. An attacker who can send Thrift messages to a vulnerable service can craft deeply nested payloads that force the parser to recurse until stack memory is exhausted, aborting the process.

The weakness is classified as [CWE-674] Uncontrolled Recursion. Because the Thrift protocol is designed to carry arbitrary nested containers such as lists, sets, maps, and structs, each additional nesting level consumes stack frames in the parser. Without a depth limit, the recursion continues until the operating system terminates the process.

Root Cause

The root cause is the absence of a recursion-depth guard inside the Apache Thrift c_glib protocol readers. Each nested container element invokes the reader function again, which allocates additional stack frames. Version 0.25.0 introduces bounded recursion handling to reject messages that exceed a safe nesting depth.

Attack Vector

Exploitation occurs over the network. An attacker connects to a service that accepts Apache Thrift messages and transmits a serialized payload containing deeply nested containers. The vulnerable parser then recurses through each level and eventually crashes the process, terminating availability for all connected clients. No credentials or user interaction are required. See the Apache Discussion Thread and the Apache Mailing List Update for additional technical context. No public proof-of-concept is currently available, and the EPSS score at publication was 0.426%.

// No verified exploit code is available for CVE-2026-94650.
// Conceptually, an attacker sends a Thrift message where
// container elements (list/set/map/struct) are nested far
// beyond the depth the c_glib parser can safely process,
// causing the recursive reader to exhaust the stack.

Detection Methods for CVE-2026-94650

Indicators of Compromise

  • Unexpected crashes, segmentation faults, or stack overflow signals (SIGSEGV) in services linked against Apache Thrift c_glib prior to 0.25.0
  • Repeated process restarts of Thrift-based daemons shortly after receiving inbound RPC traffic
  • Inbound Thrift messages whose binary structure shows abnormally deep container nesting

Detection Strategies

  • Inventory binaries and containers for the Apache Thrift c_glib runtime and compare installed versions against 0.25.0
  • Instrument Thrift servers with wrappers that log message size and nesting depth, flagging outliers
  • Correlate service crash logs with recent remote connections to identify likely exploitation attempts

Monitoring Recommendations

  • Alert on repeated non-graceful terminations of Thrift server processes
  • Monitor network telemetry for abnormally large or malformed Thrift frames reaching exposed RPC ports
  • Track dependency manifests in CI/CD pipelines so builds that pull vulnerable Apache Thrift versions trigger a review

How to Mitigate CVE-2026-94650

Immediate Actions Required

  • Upgrade Apache Thrift to version 0.25.0 or later on all systems that use the c_glib bindings
  • Rebuild and redeploy any first-party applications statically linked against vulnerable Apache Thrift releases
  • Restrict network exposure of Thrift RPC endpoints to trusted clients while patching is in progress

Patch Information

Apache Thrift version 0.25.0 fixes the uncontrolled recursion issue in the c_glib bindings. Operators should obtain the fixed release from the Apache Thrift project and update downstream distribution packages. Refer to the Apache Discussion Thread and the Apache Mailing List Update for release coordination details.

Workarounds

  • Place Thrift services behind a reverse proxy or application-layer gateway that enforces maximum message size
  • Apply network-level access controls so only authenticated internal clients can reach Thrift RPC ports
  • Configure process supervisors to rate-limit automatic restarts, reducing the attacker's ability to repeatedly crash services
bash
# Example: restrict access to a Thrift RPC port using nftables
# Replace 9090 with the actual Thrift listener port and
# 10.0.0.0/24 with the trusted client subnet.
nft add table inet thrift_filter
nft add chain inet thrift_filter input { type filter hook input priority 0 \; }
nft add rule inet thrift_filter input tcp dport 9090 ip saddr 10.0.0.0/24 accept
nft add rule inet thrift_filter input tcp dport 9090 drop

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.