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-96289 Overview
CVE-2026-96289 is an uncontrolled recursion vulnerability [CWE-674] in the PHP bindings of Apache Thrift. Apache Thrift is a cross-language framework for building scalable services, widely used for remote procedure calls (RPC) between heterogeneous systems. The flaw affects all Apache Thrift releases prior to version 0.25.0. A remote, unauthenticated attacker can send crafted input over the network to trigger uncontrolled recursion in the PHP binding, exhausting resources and causing a denial of service (DoS) on the processing host.
Critical Impact
Unauthenticated attackers can crash services that process untrusted Thrift payloads through the PHP bindings, resulting in high-availability impact without any user interaction.
Affected Products
- Apache Thrift PHP bindings, all versions before 0.25.0
- PHP applications and services using Apache Thrift to deserialize client input
- Upstream integrations that embed vulnerable Thrift PHP libraries
Discovery Timeline
- 2026-10-02 - CVE-2026-96289 published to the National Vulnerability Database (NVD)
- 2026-10-02 - Last updated in the NVD database
Technical Details for CVE-2026-96289
Vulnerability Analysis
The vulnerability resides in the PHP implementation of Apache Thrift's deserialization logic. Thrift messages can contain nested structures such as lists, sets, maps, and structs. The PHP binding processes these nested elements recursively without enforcing a bounded recursion depth. An attacker who submits a deeply nested payload forces the PHP interpreter into deep call stacks, consuming CPU and memory until the process exhausts the stack or configured limits.
Because Thrift is often used as a server-side RPC framework, the vulnerable code typically runs behind network-exposed endpoints. The attack requires no credentials and no user interaction. The result is a denial-of-service condition that terminates the handling worker and can degrade or stop the service.
Root Cause
The root cause is missing recursion depth validation [CWE-674] in the Thrift PHP deserializer. The parser trusts the structure of incoming messages and continues to descend into nested containers without a termination guard. Any attacker-controlled input that encodes extreme nesting translates directly into uncontrolled recursive calls within the PHP runtime.
Attack Vector
Exploitation occurs over the network. An attacker sends a crafted Thrift message containing deeply nested containers to any endpoint that deserializes Thrift data with the PHP binding. The vulnerable code recurses until it exhausts stack space or configured PHP memory limits, terminating the PHP process. Repeated requests can keep the service continuously unavailable. The vulnerability does not expose confidentiality or integrity, but availability impact is high.
No verified public proof-of-concept code is available at the time of publication. See the Apache Security Mailing List Thread 1 and Apache Security Mailing List Thread 2 for upstream technical discussion.
Detection Methods for CVE-2026-96289
Indicators of Compromise
- PHP worker processes terminating with stack overflow, segmentation fault, or Allowed memory size exhausted fatal errors while handling Thrift traffic.
- Spikes in CPU and memory utilization on hosts running Thrift PHP services immediately following inbound RPC requests.
- Repeated inbound Thrift messages from the same source containing unusually large or deeply nested container structures.
Detection Strategies
- Inspect application logs for abnormal PHP termination events correlated with Thrift request handlers.
- Deploy network inspection to flag Thrift payloads whose encoded nesting depth or size exceeds expected business thresholds.
- Track service restart frequency and worker crash counts as a leading indicator of recursion-based abuse.
Monitoring Recommendations
- Alert on repeated PHP-FPM or CLI worker crashes tied to the Thrift processing library.
- Monitor request latency distributions on Thrift endpoints for sudden tails indicating recursive processing.
- Collect and retain full request payloads from suspect sources for forensic review and signature development.
How to Mitigate CVE-2026-96289
Immediate Actions Required
- Upgrade Apache Thrift PHP bindings to version 0.25.0 or later across all affected services.
- Inventory all PHP applications that import Thrift libraries, including transitive dependencies pulled through Composer.
- Restrict network exposure of Thrift RPC endpoints to trusted clients until patching is complete.
Patch Information
The Apache Thrift project fixed this issue in release 0.25.0. Users are recommended to upgrade to version 0.25.0, which addresses the uncontrolled recursion in the PHP bindings. Refer to the Apache Security Mailing List Thread 1 and Apache Security Mailing List Thread 2 for the vendor's advisory and remediation guidance.
Workarounds
- Enforce request size limits at the reverse proxy or API gateway in front of Thrift PHP services to drop oversized messages.
- Lower the PHP memory_limit and configure process supervisors to recycle workers quickly after fatal errors to limit sustained outages.
- Place authentication and network allow-lists in front of Thrift endpoints to reduce exposure to unauthenticated attackers until the upgrade is deployed.
# Configuration example: upgrade Apache Thrift PHP bindings via Composer
composer require apache/thrift:^0.25.0
composer update apache/thrift
php -r "echo \Thrift\Base\TBase::class;" # sanity check load path
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

