# CVE-2026-66053: Apache Thrift certificate validation bypass in Python bindings

Source: https://junglewise.ai/threats/cve-2026-66053-apache-thrift-certificate-validation-bypass-in-python-bindings  
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-66053 · Severity: medium · CVSS 5.9 · Published 2026-07-27

Apache Thrift is a cross-platform RPC framework that enables secure communication between services. The Python bindings fail to properly validate that a server's SSL/TLS certificate matches the hostname being connected to, allowing an attacker with network access to intercept and impersonate legitimate servers. This bypasses encryption security, potentially exposing sensitive data exchanged between applications.

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), [Apache Software Foundation](https://junglewise.ai/threats/vendors/apache-software-foundation), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

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

**How severe is CVE-2026-66053?** Medium severity, with a CVSS score of 5.9, published 27 July 2026.

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

**Is there a fix for CVE-2026-66053?** 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-66053 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-66053?** Check whether you run Apache Thrift, Apache Software Foundation Thrift Python Bindings 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 a certificate host validation bypass (CWE-297) in the Apache Thrift Python bindings' SSL/TLS implementation. The vulnerable component fails to verify that the server's presented certificate hostname matches the intended connection target, allowing a network-based attacker to conduct man-in-the-middle attacks. The attack requires network access to intercept traffic but does not require authentication, user interaction, or elevated privileges. An attacker can eavesdrop on encrypted communications and potentially modify data in transit. The vulnerability affects Apache Thrift versions prior to 0.24.0, which includes the fix. Users should upgrade to version 0.24.0 or later.

## Affected products

- Apache Thrift < 0.24.0

## Identifiers

- CVE-2026-66053
- GHSA-hwrj-9rr4-24xh
- PYSEC-2026-3927

## Timeline

- 2026-07-27: disclosed: Vulnerability disclosed and published to GitHub Advisory Database
- 2026-07-27: patched: Fix released in Apache Thrift version 0.24.0

## 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)
