Vulnerabilities in pkg:maven/org.apache.thrift/libthrift

PACKAGE
Advisory Identifier: GHSA-8wv5-x4w7-5gww
Advisory Summary

CVE-2026-43871 is a HIGH (CVSS 7.5) apache thrift python, go, php vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Thrift libraries in the PyPI ecosystem. The issue involves apache thrift python, go, php and java bindings have an infinite loop. Remediation is available by upgrading affected packages to version 0.24.0.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.thrift/libthrift

6 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.thrift/libthrift. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-8wv5-x4w7-5gww CVE-2026-43871 HIGH Apache Thrift Python, Go, PHP and Java bindings have an Infinite Loop
GHSA-7pwc-h2j2-rjgj CVE-2026-43869 HIGH Apache Thrift has an Improper Validation of Certificate with Host Mismatch Vulnerability
GHSA-wjxj-f8rg-99wx CVE-2018-1320 HIGH Improper Input Validation in Apache Thrift
GHSA-vx85-mj8c-4qm6 CVE-2018-11798 MODERATE Apache Thrift Node.js static web server sandbox escape
GHSA-rj7p-rfgp-852x CVE-2019-0205 HIGH Loop with Unreachable Exit Condition in Apache Thrift
GHSA-g2fg-mr77-6vrm CVE-2020-13949 HIGH Uncontrolled Resource Consumption in Apache Thrift

CVE-2026-43871 at a Glance

CVE Identifier CVE-2026-43871
GHSA Identifier GHSA-8wv5-x4w7-5gww
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Affected Product Thrift
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-43871

To remediate this vulnerability, upgrade all affected Thrift dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

thrift fixed: 0.24.0
pip install thrift>=0.24.0
github.com/apache/thrift fixed: 0.24.0
Upgrade github.com/apache/thrift to 0.24.0
apache/thrift fixed: 0.24.0
Upgrade apache/thrift to 0.24.0
org.apache.thrift:libthrift fixed: 0.24.0
<dependency>
    <groupId>org.apache.thrift</groupId>
    <artifactId>libthrift</artifactId>
    <version>0.24.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show thrift

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-43871, inspect your installed packages using pip:

pip show thrift

Analyze the terminal output to locate any version of Thrift in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.24.0), your application is affected.

Note: The pip show thrift command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. In Thrift, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-43871 Affected Thrift Versions

4 component(s)
Fixed Versions:
0.24.0
Product / Package Ecosystem Affected Versions Fixed Version
thrift
PyPI
< 0.24.0
0.24.0
github.com/apache/thrift
Go
< 0.24.0
0.24.0
apache/thrift
Packagist
< 0.24.0
0.24.0
org.apache.thrift:libthrift
Maven
< 0.24.0
0.24.0

References

Frequently Asked Questions

What is CVE-2026-43871?
CVE-2026-43871 is a security vulnerability in Thrift involving Apache Thrift Python, Go, PHP and Java bindings have an Infinite Loop under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop').
Which Thrift versions are affected?
Affected versions include releases prior to 0.24.0 across affected packages: thrift, github.com/apache/thrift, apache/thrift, org.apache.thrift:libthrift.
What version fixes CVE-2026-43871?
Upgrading to 0.24.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is thrift affected?
Yes, thrift is affected in releases prior to 0.24.0. Upgrade your dependency to 0.24.0 or later.
Is github.com/apache/thrift affected?
Yes, github.com/apache/thrift is affected in releases prior to 0.24.0. Upgrade your dependency to 0.24.0 or later.
What is the CVSS score of CVE-2026-43871?
CVE-2026-43871 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-43871?
CVE-2026-43871 is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') (The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.).
How can I check PyPI dependencies for CVE-2026-43871?
Run the dependency tree command: 'pip show thrift'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8wv5-x4w7-5gww",
  "modified" : "2026-09-02T14:31:01Z",
  "published" : "2026-07-27T12:31:16Z",
  "aliases" : [ "CVE-2026-43871" ],
  "summary" : "Apache Thrift Python, Go, PHP and Java bindings have an Infinite Loop",
  "details" : "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.\n\nUsers are recommended to upgrade to version 0.24.0, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.24.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/apache/thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.24.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "apache/thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.24.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.thrift:libthrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.24.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-43871"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/thrift"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/7v3jhgwfbmhx42424phydlnzb109g8b9"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/l4dwf14zbyqsmkc28c99ojj3t3gg9qby"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/07/24/33"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-835" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-02T14:31:01Z",
    "nvd_published_at" : "2026-07-27T12:16:44Z"
  }
}