CVE-2026-43871

Apache Thrift, Apache Thrift, Apache Thrift, Apache Thrift: TCompactProtocol varint byte-count limit

Published Jul 27, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Apache Thrift Python, Go, PHP and Java bindings.This issue affects Apache Thrift: before 0.24.0.

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

Analysis

AI-generated

Technical impact

An infinite loop condition exists in the TCompactProtocol implementation of Apache Thrift, triggered by malformed varint byte-count values. This flaw can cause the server to consume excessive CPU and memory, leading to service disruption or crash without compromising confidentiality or integrity.

Affected Systems

All Apache Thrift distributions prior to version 0.24.0 across Python, Go, PHP, and Java bindings are vulnerable. The issue affects any system that processes client input using the TCompactProtocol for serialization and deserialization.

Risk and Exploitability

The vulnerability carries a CVSS score of 8.7, indicating a high severity. The EPSS score of 1% suggests a low yet non‑zero probability of exploitation, and the flaw is not listed in CISA KEV. Attackers can potentially exploit it by sending specifically crafted TCompactProtocol messages to a service that accepts such input, resulting in an unrecoverable infinite loop.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Thrift to version 0.24.0 or later on all affected services.
  • Recompile or redeploy any custom applications or services that depend on Thrift bindings to ensure the updated libraries are used.
  • Configure and enable application‑level rate limiting to prevent excessive processing of malformed requests.

Generated by OpenCVE AI on August 4, 2026 at 14:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8wv5-x4w7-5gww Apache Thrift Python, Go, PHP and Java bindings have an Infinite Loop
History
Type Values Removed Values Added
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
First Time appeared Apache
Apache thrift
Vendors & Products Apache
Apache thrift
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 Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Apache Thrift Python, Go, PHP and Java bindings.This issue affects Apache Thrift: before 0.24.0. Users are recommended to upgrade to version 0.24.0, which fixes the issue.
Title Apache Thrift, Apache Thrift, Apache Thrift, Apache Thrift: TCompactProtocol varint byte-count limit
Weaknesses CWE-835
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-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Jul 27, 2026, 1:01 PM
Reserved
May 4, 2026, 2:27 PM
Status
Analyzed
Published
Jul 27, 2026, 12:16 PM
Modified
Oct 24, 2026, 1:10 PM
Severity
Important
Public date
Jul 27, 2026, 10:56 AM