# CVE-2026-66837: Apache Thrift stack-based buffer overflow in PHP bindings

Source: https://junglewise.ai/threats/cve-2026-66837-stack-based-buffer-overflow-integer-overflow-or-wraparound  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-02. Updated: 2026-10-05  
License: CC BY 4.0 with a link back

CVE-2026-66837 · Severity: info · Published 2026-10-02

Apache Thrift is a framework for building distributed services across multiple programming languages. A stack-based buffer overflow vulnerability in the PHP language bindings could allow an attacker to execute arbitrary code or crash the application. Applications using Thrift's PHP bindings to handle untrusted data are at risk of code execution or denial of service.

Technologies: [Apache Thrift](https://junglewise.ai/threats/technologies/thrift). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache).

## Quick answers

**Is CVE-2026-66837 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-66837 being exploited in the wild.

**How severe is CVE-2026-66837?** Informational severity, published 2 October 2026.

**Which products and versions are affected?** Apache Thrift before 0.25.0.

**Is there a fix for CVE-2026-66837?** Yes: fixed in 0.25.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-66837 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-66837?** Check whether you run Apache Thrift at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 0.25.0

## Technical details

A stack-based buffer overflow combined with integer overflow or wraparound exists in Apache Thrift's PHP bindings, likely triggered through malformed or oversized input to serialization/deserialization functions. The vulnerability affects versions before 0.25.0; the attack vector appears to be network-based via malicious Thrift protocol messages, and no authentication is required. An attacker could achieve arbitrary code execution or denial of service.

## Affected products

- Apache Thrift before 0.25.0

## Timeline

- 2026-10-02: disclosed

## References

- [https://packagist.org/](https://packagist.org/)
- [https://lists.apache.org/thread/33otcgbqd27wf6qq810q56znzbomnhg1](https://lists.apache.org/thread/33otcgbqd27wf6qq810q56znzbomnhg1)

## Related threats

- [Apache Thrift uncontrolled recursion in Java bindings](https://junglewise.ai/threats/cve-2026-120135-uncontrolled-recursion-vulnerability-in-apache-thrift-java)
- [Apache Thrift uncontrolled recursion in PHP bindings](https://junglewise.ai/threats/cve-2026-96289-uncontrolled-recursion-vulnerability-in-apache-thrift-php)
- [Apache Thrift Perl bindings inefficient algorithmic complexity](https://junglewise.ai/threats/cve-2026-96287-inefficient-algorithmic-complexity-vulnerability-in-apache-thrift)
- [Apache Thrift uncaught exception in Perl bindings](https://junglewise.ai/threats/cve-2026-96286-uncaught-exception-vulnerability-in-apache-thrift-perl-bindings)
- [Apache Thrift Ruby bindings exception handling vulnerability](https://junglewise.ai/threats/cve-2026-96277-uncaught-exception-improper-handling-of-exceptional-conditions)
