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-94658 Overview
CVE-2026-94658 is an inefficient algorithmic complexity vulnerability [CWE-407] in the Lua bindings of Apache Thrift. The flaw affects all releases prior to version 0.25.0. Attackers can send crafted network input to a service that uses the Thrift Lua bindings and trigger disproportionate CPU consumption during message processing. The result is a denial-of-service condition against the targeted Thrift server or client. The Apache Thrift project has published fixes in version 0.25.0 and recommends immediate upgrade.
Critical Impact
Remote, unauthenticated attackers can exhaust server CPU resources by sending crafted Thrift messages to applications built with the vulnerable Lua bindings, degrading or disabling service availability.
Affected Products
- Apache Thrift Lua bindings, all versions before 0.25.0
- Applications and services embedding Apache Thrift Lua client or server code
- Downstream Lua-based RPC consumers that depend on vulnerable Thrift releases
Discovery Timeline
- 2026-10-02 - CVE-2026-94658 published to NVD
- 2026-10-02 - Last updated in NVD database
Technical Details for CVE-2026-94658
Vulnerability Analysis
The vulnerability resides in the Lua language bindings shipped with Apache Thrift. Thrift is a cross-language RPC and serialization framework used to generate client and server stubs from an interface definition. The Lua bindings handle parsing and dispatching of serialized Thrift messages received over the network.
An attacker who can reach a Thrift endpoint built with the Lua bindings can submit input that forces parsing logic into a computationally expensive path. Processing time grows disproportionately to the size of the input, producing an algorithmic complexity attack [CWE-407]. The result is sustained CPU saturation that blocks legitimate request handling.
The weakness affects availability only. According to the CVSS vector, confidentiality and integrity are not impacted. Exploitation requires no authentication, no user interaction, and no prior privileges on the target.
Root Cause
The Lua bindings contain parsing or dispatch logic whose runtime complexity scales super-linearly with attacker-controlled input characteristics. Apache classifies the defect as inefficient algorithmic complexity. The fix is included in Apache Thrift 0.25.0, which replaces or constrains the affected code path so that worst-case processing cost remains bounded.
Attack Vector
Exploitation is network-based. An attacker establishes a connection to a Thrift service that uses the Lua bindings and transmits a crafted Thrift message. The server consumes excessive CPU while attempting to parse or process the payload. Repeated requests, or a single sufficiently malformed message, can render the service unresponsive.
No proof-of-concept code is published in the referenced advisories. See the Apache Mailing List Thread 1 and Apache Mailing List Thread 2 for the project's technical discussion.
Detection Methods for CVE-2026-94658
Indicators of Compromise
- Sustained CPU saturation on processes hosting Thrift Lua server or client code without a corresponding increase in legitimate request volume.
- Thrift request handlers that remain in a parsing state far longer than baseline timings for comparable message sizes.
- Connection patterns from a small set of source addresses producing large or structurally unusual Thrift payloads.
Detection Strategies
- Instrument Thrift Lua service handlers to log per-request processing duration and payload size, then alert on outliers.
- Correlate network telemetry with process-level CPU metrics to identify request flows that drive CPU exhaustion.
- Inventory running services for Apache Thrift versions below 0.25.0 using software composition analysis against build manifests and dependency files.
Monitoring Recommendations
- Track CPU utilization, request latency, and request-per-second ratios on all Thrift Lua endpoints and page on sustained anomalies.
- Ingest application and network logs into a centralized analytics platform to retain context for post-incident review of availability events.
- Monitor Apache Thrift security announcements and the referenced Apache mailing list threads for follow-up fixes.
How to Mitigate CVE-2026-94658
Immediate Actions Required
- Upgrade all Apache Thrift Lua binding deployments to version 0.25.0 or later.
- Identify every application, container image, and build pipeline that bundles Thrift Lua code and schedule remediation.
- Restrict network exposure of Thrift services to trusted clients until patching completes.
Patch Information
Apache Thrift 0.25.0 fixes CVE-2026-94658. The project advises all users of the Lua bindings to upgrade. Review the Apache Mailing List Thread 1 and Apache Mailing List Thread 2 for release details and context.
Workarounds
- Place vulnerable Thrift services behind a reverse proxy or API gateway that enforces strict message size limits and request timeouts.
- Apply network ACLs so only authenticated internal clients can reach Thrift endpoints while patching is in progress.
- Rate-limit inbound connections to Thrift services to reduce the impact of repeated malformed requests.
- Terminate Thrift request handlers that exceed a maximum processing time to prevent sustained CPU exhaustion.
# Configuration example
# Verify installed Apache Thrift version and upgrade to 0.25.0 or later
thrift -version
# Example: rebuild Lua projects against a patched Thrift source tree
# git clone https://github.com/apache/thrift.git && cd thrift && git checkout v0.25.0
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

