CVE-2026-66858

Apache Thrift, Apache Thrift, Apache Thrift, Apache Thrift, Apache Thrift, Apache Thrift: skip() does not apply the recursion limit (Python accelerator, PHP, Perl, Lua, Smalltalk, OCaml)

Published Oct 2, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
The protocol skip routine in several Apache Thrift bindings did not apply the binding's recursion limit, so a message that nests unknown fields deeply enough can exhaust the stack. Affected: the Python C++ accelerator (the pure-Python protocols are not affected), the PHP library and its thrift_protocol extension, and the Perl, Lua, Smalltalk and OCaml libraries.



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

The protocol’s skip function in multiple Apache Thrift bindings omitted the binding’s recursion limit, allowing a message with deeply nested unknown fields to consume excessive stack space and crash the process. This results in denial of service for any service using the affected bindings. No evidence of arbitrary code execution is provided in the CVE description, so the impact remains a crash and service outage. The weakness is labeled as CWE‑674 and CWE‑770.

Affected Systems

Apache Thrift versions before 0.25.0. Affected language bindings include the Python C++ accelerator (not the pure‑Python protocols), the PHP library and its thrift_protocol extension, and the Perl, Lua, Smalltalk, and OCaml libraries.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity threat. EPSS data is unavailable and the vulnerability is not listed in CISA KEV. Attackers can craft a Thrift message that exceeds the recursion depth; the attack vector is inferred to be remote over the network interface that receives Thrift traffic. Successful exploitation leads to a stack overflow that terminates the service, causing a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Thrift to version 0.25.0 or later; for PHP, update both the library and its thrift_protocol extension to the patched version.
  • If an immediate upgrade is not feasible, isolate the affected service from untrusted networks using a firewall or network segmentation.
  • Apply rate limiting or traffic shaping to inbound Thrift connections to reduce the impact of repeated exploitation attempts.

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 Apache
Apache thrift
Vendors & Products Apache
Apache thrift
Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
Weaknesses CWE-770
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
Description The protocol skip routine in several Apache Thrift bindings did not apply the binding's recursion limit, so a message that nests unknown fields deeply enough can exhaust the stack. Affected: the Python C++ accelerator (the pure-Python protocols are not affected), the PHP library and its thrift_protocol extension, and the Perl, Lua, Smalltalk and OCaml libraries. 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, Apache Thrift, Apache Thrift, Apache Thrift, Apache Thrift, Apache Thrift: skip() does not apply the recursion limit (Python accelerator, PHP, Perl, Lua, Smalltalk, OCaml)
Weaknesses CWE-674
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
  • CWE-674

    Uncontrolled Recursion

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Oct 2, 2026, 4:54 PM
Reserved
Jul 27, 2026, 10:27 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:27 PM