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-94638 Overview
CVE-2026-94638 is a resource allocation vulnerability in the Apache Thrift PHP bindings. The flaw affects all versions of Apache Thrift prior to 0.25.0. Attackers can send crafted network input that forces the PHP bindings to allocate resources without any limit or throttling control. The weakness is tracked as [CWE-770: Allocation of Resources Without Limits or Throttling]. Successful exploitation degrades service availability for applications that expose Thrift PHP endpoints over the network. The Apache Thrift project resolved the issue in version 0.25.0.
Critical Impact
Remote, unauthenticated attackers can trigger uncontrolled resource consumption in Apache Thrift PHP services, leading to denial of service conditions.
Affected Products
- Apache Thrift PHP bindings, all versions before 0.25.0
- PHP applications and services that embed the vulnerable Thrift library
- Downstream distributions packaging Apache Thrift releases earlier than 0.25.0
Discovery Timeline
- 2026-10-02 - CVE-2026-94638 published to the National Vulnerability Database
- 2026-10-05 - Last updated in NVD database
Technical Details for CVE-2026-94638
Vulnerability Analysis
The Apache Thrift PHP bindings implement serialization and transport logic for the Thrift RPC framework. The vulnerable code paths accept length or count fields from untrusted peers and use those values to drive allocation and iteration. The implementation does not enforce an upper bound on these values. An attacker who can reach a Thrift service can submit a small, crafted request that instructs the PHP process to allocate large structures or loop over an attacker-controlled number of elements. This forces PHP workers to consume CPU and memory until they exhaust configured limits.
Root Cause
The root cause is the absence of validation and throttling around resource-driving fields in the PHP deserialization path, which maps directly to [CWE-770]. The library trusts length-prefixed fields on the wire and allocates buffers or containers before verifying that the declared size is consistent with the available payload. No per-request ceiling, backpressure, or size sanity check gates the allocation.
Attack Vector
Exploitation requires only network access to a service that uses the Apache Thrift PHP bindings to parse incoming messages. The attacker sends a Thrift message where length or collection fields declare very large sizes. The PHP binding attempts to honor the declared size, which causes memory pressure, request timeouts, or worker termination. Repeated requests amplify the effect and can take an application offline. No authentication or user interaction is required. See the Apache Mailing List Thread and the Apache Mailing List Discussion for upstream details.
Detection Methods for CVE-2026-94638
Indicators of Compromise
- Sudden spikes in PHP-FPM or Apache worker memory usage correlated with Thrift traffic.
- Repeated out-of-memory terminations or allowed memory size exhausted entries in PHP error logs.
- Short, repeated inbound Thrift requests from a small set of source addresses that produce disproportionately large server-side resource usage.
Detection Strategies
- Inventory PHP applications and dependencies to identify any package pulling in apache/thrift at a version earlier than 0.25.0.
- Inspect Thrift transport layers for messages that declare very large list, set, map, or binary field sizes relative to the actual payload length.
- Correlate web server access logs with process restarts and memory allocation failures to flag probable abuse.
Monitoring Recommendations
- Alert on repeated PHP worker crashes and OOM-killer events on hosts running Thrift services.
- Track request latency percentiles on Thrift endpoints and alert on sustained increases.
- Monitor outbound results from software composition analysis scans for Apache Thrift versions below 0.25.0.
How to Mitigate CVE-2026-94638
Immediate Actions Required
- Upgrade Apache Thrift to version 0.25.0 or later across all PHP services and rebuild dependent applications.
- Audit internal and external services for exposed Thrift PHP endpoints and restrict access to trusted networks until patched.
- Review PHP runtime limits (memory_limit, max_execution_time, worker counts) and tune them to contain the blast radius of a resource exhaustion attempt.
Patch Information
The Apache Thrift project fixed CVE-2026-94638 in version 0.25.0. Users should upgrade the apache/thrift PHP library to 0.25.0 or later. Confirm the fixed version propagates through Composer lock files, container images, and vendored copies. Refer to the Apache Mailing List Thread for the project announcement.
Workarounds
- Place Thrift PHP services behind an authenticating reverse proxy and reject unauthenticated clients.
- Enforce request size limits at the ingress layer to drop oversized or malformed Thrift messages before they reach PHP workers.
- Apply rate limiting on Thrift endpoints to blunt repeated exploitation attempts while the upgrade is scheduled.
# Configuration example
# Upgrade Apache Thrift PHP bindings via Composer
composer require apache/thrift:^0.25.0
composer update apache/thrift
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

