Vulnerabilities in pkg:golang/github.com/apache/thrift
PACKAGECVE-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.
pkg:golang/github.com/apache/thrift
Vulnerability advisories affecting package pkg:golang/github.com/apache/thrift. 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-wf45-q9ch-q8gh | CVE-2026-41602 | HIGH | Apache Thrift TFramedTransport Go language implementation has an Integer Overflow or Wraparound vulnerability |
| GHSA-r4m4-pmvw-m6j5 | CVE-2016-5397 | HIGH | Apache Thrift Go Library Command Injection |
| GHSA-jq7p-26h5-w78r | CVE-2019-0210 | HIGH | Out-of-bounds read in Apache Thrift |
CVE-2026-43871 at a Glance
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).
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.
pip install thrift>=0.24.0
Upgrade github.com/apache/thrift to 0.24.0
Upgrade apache/thrift to 0.24.0
<dependency>
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
<version>0.24.0</version>
</dependency>
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
CVE-2026-43871 Affected Thrift Versions
4 component(s)| 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?
Which Thrift versions are affected?
What version fixes CVE-2026-43871?
Is thrift affected?
Is github.com/apache/thrift affected?
What is the CVSS score of CVE-2026-43871?
What CWE is associated with CVE-2026-43871?
How can I check PyPI dependencies for CVE-2026-43871?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}