CVE-2026-41606
Apache Thrift vulnerability analysis and mitigation

Overview

CVE-2026-41606 is an Uncontrolled Recursion vulnerability (CWE-674) in Apache Thrift's c_glib component, described as a dispatch stack overflow. It affects all versions of Apache Thrift before 0.23.0 and was publicly disclosed on April 28, 2026, via the Apache security mailing list and oss-security. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium), with no privileges or user interaction required for exploitation (GitHub Advisory, oss-security).

Technical details

The vulnerability is classified as CWE-674 (Uncontrolled Recursion) and resides in the c_glib dispatch layer of Apache Thrift, where recursive processing is not properly bounded, leading to a stack overflow condition. An unauthenticated remote attacker can trigger this by sending specially crafted serialized data payloads (consistent with CAPEC-230: Serialized Data with Nested Payloads and CAPEC-231: Oversized Serialized Data Payloads) to a vulnerable Thrift service endpoint. No authentication or user interaction is required, and the attack complexity is low. The vulnerability was credited to finder Hasnain Lakhani and reported via the Apache security process (oss-security, GitHub Advisory).

Impact

Successful exploitation causes excessive resource consumption — specifically stack exhaustion — which can crash the affected Thrift service process, resulting in a denial of service (DoS). The impact is limited to availability; there is no confidentiality or integrity impact. Services relying on Apache Thrift's c_glib bindings for inter-process or network communication are at risk of becoming unresponsive, potentially affecting dependent applications and workflows (GitHub Advisory, oss-security).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.073% (22nd percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify services exposing Apache Thrift endpoints (particularly c_glib-based services) using network scanning tools such as Nmap or Shodan, targeting common Thrift ports (e.g., 9090, 9091).
  2. Craft malicious payload: Construct a deeply nested or self-referential serialized Thrift data structure (e.g., a struct containing itself recursively) designed to trigger unbounded recursive processing in the c_glib dispatch layer.
  3. Send payload: Transmit the crafted serialized payload to the target Thrift service endpoint without requiring any authentication credentials.
  4. Trigger stack overflow: The c_glib dispatch handler processes the nested payload recursively without depth limits, exhausting the call stack and causing the service process to crash, resulting in denial of service (oss-security, GitHub Advisory).

Indicators of compromise

  • Network: Unusual or malformed Thrift protocol traffic to service ports (e.g., 9090/9091) containing deeply nested serialized structures; repeated connection attempts from a single source IP to Thrift endpoints.
  • Logs: Application crash logs or core dumps from Thrift c_glib service processes; stack overflow or segmentation fault errors in system logs (/var/log/syslog, journalctl) associated with the Thrift service.
  • Process: Unexpected termination or restart of Thrift service processes; elevated CPU or memory usage immediately preceding a service crash.

Mitigation and workarounds

The primary remediation is to upgrade Apache Thrift to version 0.23.0 or later, which contains the fix for this vulnerability. For organizations unable to patch immediately, implement network-level controls (firewalls, ACLs) to restrict access to Thrift service endpoints to trusted hosts only, and monitor for unusual resource consumption or service crashes that may indicate exploitation attempts. Downstream distributions including Debian and openSUSE have begun packaging the updated version (GitHub Advisory, oss-security).

Community reactions

The vulnerability was announced by Jens Geyer to the oss-security mailing list on April 28, 2026, crediting Hasnain Lakhani as the finder. Downstream Linux distributions including Debian and openSUSE have issued packaging updates for Apache Thrift 0.23.0, and Red Hat published a security advisory (RHSA-2026:14885) addressing the issue in Red Hat OpenShift. Community reaction has been measured given the moderate severity and lack of active exploitation (oss-security, GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Apache Thrift vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-55971CRITICAL9.3
  • Apache Thrift logoApache Thrift
  • cpe:2.3:a:apache:thrift
NoYesJul 27, 2026
CVE-2026-58662HIGH8.7
  • Apache Thrift logoApache Thrift
  • thrift
NoYesJul 27, 2026
CVE-2026-58389HIGH8.7
  • Apache Thrift logoApache Thrift
  • thrift
NoYesJul 27, 2026
CVE-2026-58023MEDIUM6.9
  • Apache Thrift logoApache Thrift
  • thrift
NoYesJul 27, 2026
CVE-2026-66053MEDIUM5.9
  • Apache Thrift logoApache Thrift
  • python-thrift
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management