CVE-2026-66837

Apache Thrift: PHP accelerator sizes a stack buffer from a wire-controlled string length

Published Oct 2, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Stack-based Buffer Overflow, Integer Overflow or Wraparound vulnerability in Apache Thrift php bindings.



This issue affects Apache Thrift: before 0.25.0.



Users are recommended to upgrade to version 0.25.0, which fixes the issue.

Analysis

AI-generated

Technical impact

A stack‑based buffer overflow exists in the Apache Thrift PHP bindings; the vulnerability arises when an attacker supplies a Thrift message containing a string length value that, when interpreted, causes an integer overflow. This overflow leads to an improperly sized stack buffer, allowing memory corruption and potentially arbitrary code execution within the PHP process.

Affected Systems

All Apache Thrift PHP bindings prior to version 0.25.0 are affected. Applications that import the Thrift PHP library must verify the installation version and determine whether the service exposes a vulnerable endpoint.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity flaw. No EPSS score is available and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker could exercise the vulnerability by sending a carefully crafted Thrift packet over the network to a service that employs the vulnerable PHP bindings, manipulating the declared string length field to trigger the integer and subsequent buffer overflow. Such a network‑based exploitation path is plausible given the nature of the weakness.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Apache Thrift PHP bindings to version 0.25.0 or later, which contains the fix for the stack buffer overflow.
  • In PHP applications that cannot immediately upgrade, add defensive checks on incoming Thrift messages: validate the declared string length against a safe maximum before allocating buffers, and reject requests that exceed this limit.
  • Restrict access to services using the Thrift PHP bindings by firewalling or placing them behind a VPN, ensuring that only trusted networks can reach the vulnerable endpoints until the software is updated.

Generated by OpenCVE AI on October 3, 2026 at 01:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
Weaknesses CWE-787
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache thrift
Vendors & Products Apache
Apache thrift
Type Values Removed Values Added
Description Stack-based Buffer Overflow, Integer Overflow or Wraparound vulnerability in Apache Thrift php bindings. This issue affects Apache Thrift: before 0.25.0. Users are recommended to upgrade to version 0.25.0, which fixes the issue.
Title Apache Thrift: PHP accelerator sizes a stack buffer from a wire-controlled string length
Weaknesses CWE-121
CWE-190
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Oct 2, 2026, 4:53 PM
Reserved
Jul 27, 2026, 10:11 PM
Status
Deferred
Published
Oct 2, 2026, 1:17 PM
Modified
Oct 2, 2026, 5:17 PM
Severity
Important
Public date
Oct 2, 2026, 12:29 PM