# CVE-2026-41608: Apache Thrift data amplification in Python THeaderTransport

Source: https://junglewise.ai/threats/cve-2026-41608-apache-thrift-data-amplification-in-python-theadertransport  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-27. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-41608 · Severity: high · CVSS 7.5 · Published 2026-07-27

Apache Thrift is a widely-used framework for building distributed services and APIs. The Python implementation contains a vulnerability in how it handles highly compressed data, allowing an attacker to send a small compressed payload that expands to an extremely large size, consuming server memory and causing a denial of service. An unauthenticated attacker can trigger this by sending a specially crafted network request, making this a serious availability risk for services using Thrift.

Technologies: [Apache Thrift](https://junglewise.ai/threats/technologies/thrift), [thrift (PyPI)](https://junglewise.ai/threats/technologies/pypi-thrift). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-41608 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-41608 being exploited in the wild.

**How severe is CVE-2026-41608?** High severity, with a CVSS score of 7.5, published 27 July 2026.

**Which products and versions are affected?** Apache Thrift before 0.24.0; thrift (PyPI) ECOSYSTEM:introduced=0,fixed=0.24.0.

**Is there a fix for CVE-2026-41608?** Yes. thrift (PyPI): upgrade to 0.24.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-41608 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-41608?** Check whether you run Apache Thrift or thrift (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- thrift (PyPI): upgrade to 0.24.0 or later

  ```sh
  pip install "thrift>=0.24.0"
  ```


## Technical details

The vulnerability is an improper handling of highly compressed data (CWE-409, data amplification attack). The Apache Thrift Python bindings fail to properly validate or limit the decompression of compressed payloads, allowing an attacker to craft a small network packet containing highly compressed data that decompresses to a very large size when processed by the server. This causes excessive memory consumption and can lead to denial of service. The attack is network-accessible, requires no authentication or user interaction, and can be exploited remotely. The vulnerability affects all versions of Apache Thrift before 0.24.0, which contains the fix. A patch is available by upgrading to version 0.24.0 or later.

## Affected products

- Apache Thrift before 0.24.0

## Identifiers

- CVE-2026-41608
- GHSA-6pjx-3pjc-mrj8
- PYSEC-2026-3925

## Timeline

- 2026-07-27: disclosed
- 2026-07-27: patched: Version 0.24.0 released with fix

## References

- [https://api.github.com/users/carlosfunk](https://api.github.com/users/carlosfunk)
- [https://github.com/carlosfunk](https://github.com/carlosfunk)
- [https://api.github.com/users/carlosfunk/gists%7B/gist_id%7D](https://api.github.com/users/carlosfunk/gists%7B/gist_id%7D)
- [https://api.github.com/users/carlosfunk/repos](https://api.github.com/users/carlosfunk/repos)
- [https://avatars.githubusercontent.com/u/907689?v=4](https://avatars.githubusercontent.com/u/907689?v=4)
- [https://api.github.com/users/carlosfunk/events%7B/privacy%7D](https://api.github.com/users/carlosfunk/events%7B/privacy%7D)

## Related threats

- [Apache Thrift uncontrolled recursion in Java bindings](https://junglewise.ai/threats/cve-2026-120135-uncontrolled-recursion-vulnerability-in-apache-thrift-java)
- [Apache Thrift uncontrolled recursion in PHP bindings](https://junglewise.ai/threats/cve-2026-96289-uncontrolled-recursion-vulnerability-in-apache-thrift-php)
- [Apache Thrift Perl bindings inefficient algorithmic complexity](https://junglewise.ai/threats/cve-2026-96287-inefficient-algorithmic-complexity-vulnerability-in-apache-thrift)
- [Apache Thrift uncaught exception in Perl bindings](https://junglewise.ai/threats/cve-2026-96286-uncaught-exception-vulnerability-in-apache-thrift-perl-bindings)
- [Apache Thrift Ruby bindings exception handling vulnerability](https://junglewise.ai/threats/cve-2026-96277-uncaught-exception-improper-handling-of-exceptional-conditions)
