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-94654 Overview
CVE-2026-94654 is an infinite loop vulnerability [CWE-835] affecting the Apache Thrift Python bindings in versions prior to 0.25.0. The flaw allows a remote, unauthenticated attacker to send crafted input that triggers a loop with an unreachable exit condition. The condition exhausts CPU resources on the target process and results in denial of service against applications using the vulnerable Python bindings. Apache has released version 0.25.0 to address the issue.
Critical Impact
Remote unauthenticated attackers can trigger CPU exhaustion in Thrift-based Python services, degrading or halting availability without requiring credentials or user interaction.
Affected Products
- Apache Thrift Python bindings, all versions before 0.25.0
- Python services and daemons built on the Thrift RPC framework
- Downstream applications embedding the vulnerable Thrift Python package
Discovery Timeline
- 2026-10-02 - CVE-2026-94654 published to NVD
- 2026-10-02 - Last updated in NVD database
Technical Details for CVE-2026-94654
Vulnerability Analysis
The vulnerability is classified under CWE-835, Loop with Unreachable Exit Condition. The Apache Thrift Python bindings contain a parsing or deserialization path where the termination condition for a loop cannot be reached under attacker-controlled input. When a malicious peer transmits crafted Thrift messages, the Python process enters a loop that never exits, consuming CPU cycles indefinitely.
Because Thrift is a cross-language RPC framework, affected Python services typically expose network listeners that accept arbitrary binary protocol messages. The attacker does not need to authenticate or interact with a user. A single malformed request is sufficient to tie up a worker thread, and repeated requests can exhaust all workers and halt service availability.
Root Cause
The root cause is a logic defect in the Thrift Python protocol or transport decoder where loop progress depends on a condition the attacker can prevent from ever becoming true. Common patterns for this class of bug include reading length-prefixed fields where the length never decrements, or iterating over a container without validating that the stream advances. Apache's fix in version 0.25.0 corrects the loop termination logic.
Attack Vector
Exploitation occurs over the network against any service that uses the Apache Thrift Python bindings to deserialize untrusted input. The attack requires no privileges and no user interaction. Impact is limited to availability — the issue does not expose confidentiality or integrity. See the Apache Mailing List Discussion and Apache Thread Update for upstream details.
// No verified exploit code is published. Refer to the Apache advisory
// for technical details on the vulnerable protocol path.
Detection Methods for CVE-2026-94654
Indicators of Compromise
- Python worker processes pinned at 100% CPU utilization with no corresponding increase in legitimate request throughput
- Thrift service worker pools fully saturated and failing health checks while the host remains reachable
- Repeated TCP connections from a single source immediately preceding CPU exhaustion events
Detection Strategies
- Inventory Python environments for the thrift package and flag any installation below version 0.25.0
- Correlate sudden CPU spikes in Thrift listener processes with inbound connection logs to identify malformed-message sources
- Deploy software composition analysis to continuously track Thrift bindings across container images and virtual environments
Monitoring Recommendations
- Alert on sustained per-process CPU saturation in services exposing Thrift endpoints
- Monitor Thrift request latency and worker queue depth for anomalies suggesting stalled workers
- Log and rate-limit connections to Thrift ports and review traffic from unexpected source networks
How to Mitigate CVE-2026-94654
Immediate Actions Required
- Upgrade the Apache Thrift Python bindings to version 0.25.0 or later in all affected services
- Rebuild and redeploy container images and virtual environments that pin older thrift package versions
- Restrict network exposure of Thrift listeners to trusted peers until patching is complete
Patch Information
Apache has released Apache Thrift 0.25.0, which fixes the loop termination logic in the Python bindings. Users are instructed to upgrade to 0.25.0. Refer to the Apache Mailing List Discussion and the Apache Thread Update for the official announcements.
Workarounds
- Place Thrift services behind an authenticated reverse proxy or mutual TLS boundary to block unauthenticated peers
- Enforce short request timeouts and per-connection CPU limits so stalled workers can be recycled automatically
- Apply network ACLs that restrict Thrift ports to known client subnets while the upgrade is scheduled
# Upgrade the vulnerable Python bindings to the fixed release
pip install --upgrade "thrift>=0.25.0"
# Verify the installed version
python -c "import thrift; print(thrift.__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

