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-66331 Overview
CVE-2026-66331 is an Allocation of Resources Without Limits or Throttling vulnerability [CWE-770] affecting the Apache Thrift Delphi bindings buffered transport. The flaw allows a remote, unauthenticated attacker to trigger uncontrolled resource allocation on servers using the affected Delphi transport layer. The condition impacts availability of the targeted service without affecting confidentiality or integrity. All Apache Thrift releases before 0.25.0 are affected. The Apache Software Foundation recommends upgrading to version 0.25.0, which contains the fix.
Critical Impact
Remote attackers can exhaust server resources over the network without authentication or user interaction, degrading or interrupting Thrift-based services built on the Delphi bindings.
Affected Products
- Apache Thrift versions prior to 0.25.0
- Apache Thrift Delphi language bindings
- Services using the Delphi buffered transport
Discovery Timeline
- 2026-10-02 - CVE-2026-66331 published to the National Vulnerability Database (NVD)
- 2026-10-03 - Last updated in the NVD database
Technical Details for CVE-2026-66331
Vulnerability Analysis
The vulnerability resides in the buffered transport implementation of the Apache Thrift Delphi bindings. Buffered transports accumulate inbound data in memory before dispatching it to higher-level protocol handlers. The affected code path does not enforce an upper bound on the amount of data that can be buffered per connection or request.
A remote attacker can send crafted frames or oversized payloads to force the transport to allocate memory without limit. Repeated requests, or a small number of concurrent connections holding large buffers, can exhaust server memory and processing resources. The result is a denial-of-service condition against any service that exposes Thrift endpoints built on the Delphi buffered transport.
The weakness is classified as Allocation of Resources Without Limits or Throttling [CWE-770]. Exploitation requires only network reachability to the Thrift service.
Root Cause
The root cause is missing validation and throttling in the Delphi buffered transport. The implementation trusts length values and inbound stream sizes supplied by remote peers. Without a configurable maximum buffer size or allocation ceiling, each connection can request arbitrarily large allocations until the host runs out of memory.
Attack Vector
The attack vector is network-based and does not require credentials or user interaction. An attacker establishes a TCP session with the Thrift service and transmits requests that cause the Delphi buffered transport to allocate large buffers. Repeated or parallel sessions amplify the memory pressure. Because the condition is deterministic and does not depend on authentication state, scripted abuse is trivial.
No verified public proof-of-concept code is referenced in the advisory. Technical details are available in the Apache Mailing List Discussion and the Apache Mailing List Update.
Detection Methods for CVE-2026-66331
Indicators of Compromise
- Sustained growth in resident memory of Delphi-based Thrift server processes without a corresponding increase in legitimate request volume.
- Repeated client connections sending abnormally large length-prefixed frames to Thrift listener ports.
- Service restarts or out-of-memory kills on hosts running Apache Thrift versions prior to 0.25.0.
Detection Strategies
- Inventory applications that embed the Apache Thrift Delphi bindings and verify the library version against 0.25.0.
- Inspect network telemetry for Thrift traffic patterns that include oversized frame headers or long-lived connections with large inbound payloads.
- Correlate process memory metrics with Thrift request logs to identify allocation spikes tied to specific client IPs.
Monitoring Recommendations
- Alert on memory utilization thresholds and process restarts for services exposing Thrift endpoints.
- Log and rate-limit source IPs that generate unusually large or malformed Thrift frames.
- Forward Thrift service logs and host telemetry to a centralized analytics platform for correlation and retention.
How to Mitigate CVE-2026-66331
Immediate Actions Required
- Upgrade Apache Thrift to version 0.25.0 or later across all applications using the Delphi bindings.
- Identify internet-exposed Thrift endpoints and restrict access to trusted networks until the upgrade is complete.
- Apply connection and request rate limits at the network edge to reduce exposure during remediation.
Patch Information
Apache Thrift version 0.25.0 fixes CVE-2026-66331 by addressing the unbounded allocation behavior in the Delphi buffered transport. Users of any earlier release should upgrade. Refer to the Apache Mailing List Discussion and Apache Mailing List Update for release coordination details.
Workarounds
- Place Thrift services behind a reverse proxy or firewall that enforces maximum request size and connection limits.
- Restrict Thrift listeners to internal network segments and require network-layer authentication such as mutual TLS.
- Monitor and automatically terminate connections that exceed expected payload sizes for the deployed Thrift schema.
# Example: restrict Thrift listener exposure with iptables
# Allow only an internal management subnet to reach the Thrift port
iptables -A INPUT -p tcp --dport 9090 -s 10.10.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 9090 -j 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

