CVE-2026-41608: Thrift Apache Thrift Python Bindings Have Vulnerability

HIGH
Advisory Identifier: GHSA-6pjx-3pjc-mrj8
CVSS 7.5
CWE-409
Published
Advisory Summary

CVE-2026-41608 is a HIGH (CVSS 7.5) apache thrift python bindings have vulnerability (CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)) affecting Thrift libraries in the PyPI ecosystem. The issue involves apache thrift python bindings have an improper handling of highly compressed data (data amplification) vulnerability. Remediation is available by upgrading affected packages to version 0.24.0.

CVE-2026-41608 at a Glance

CVE Identifier CVE-2026-41608
GHSA Identifier GHSA-6pjx-3pjc-mrj8
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
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-41608

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
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-41608, 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-409: Improper Handling of Highly Compressed Data (Data Amplification), where the product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output. 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

Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in Apache Thrift Python 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-41608 Affected Thrift Versions

1 component(s)
Fixed Versions:
0.24.0
Product / Package Ecosystem Affected Versions Fixed Version
thrift
PyPI
< 0.24.0
0.24.0

References

Frequently Asked Questions

What is CVE-2026-41608?
CVE-2026-41608 is a security vulnerability in Thrift involving Apache Thrift Python bindings have an Improper Handling of Highly Compressed Data (Data Amplification) vulnerability under CWE-409: Improper Handling of Highly Compressed Data (Data Amplification).
Which Thrift versions are affected?
Affected versions include releases prior to 0.24.0 across affected packages: thrift.
What version fixes CVE-2026-41608?
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.
What is the CVSS score of CVE-2026-41608?
CVE-2026-41608 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-41608?
CVE-2026-41608 is classified under CWE-409: Improper Handling of Highly Compressed Data (Data Amplification) (The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.).
How can I check PyPI dependencies for CVE-2026-41608?
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-6pjx-3pjc-mrj8",
  "modified" : "2026-09-01T17:03:24Z",
  "published" : "2026-07-27T12:31:16Z",
  "aliases" : [ "CVE-2026-41608" ],
  "summary" : "Apache Thrift Python bindings have an Improper Handling of Highly Compressed Data (Data Amplification) vulnerability",
  "details" : "Improper Handling of Highly Compressed Data (Data Amplification) vulnerability in Apache Thrift Python bindings.\n\nThis 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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "thrift"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.24.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41608"
  }, {
    "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/vwsbcwqdpwdtp8qkjo11ol6rodbfm21f"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/07/24/32"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-409" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-01T17:03:24Z",
    "nvd_published_at" : "2026-07-27T12:16:44Z"
  }
}