CVE-2026-66053: Thrift Apache Thrift Python Bindings Have Vulnerability
MODERATECVE-2026-66053 is a MODERATE (CVSS 5.9) apache thrift python bindings have vulnerability (CWE-297: Improper Validation of Certificate with Host Mismatch) affecting Thrift libraries in the PyPI ecosystem. The issue involves apache thrift python bindings have a improper validation of certificate with host mismatch vulnerabilit. Remediation is available by upgrading affected packages to version 0.24.0.
CVE-2026-66053 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-66053
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
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-66053, 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-297: Improper Validation of Certificate with Host Mismatch, where the product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host. 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-66053 Affected Thrift Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
thrift
|
PyPI |
< 0.24.0
|
0.24.0
|
References
Frequently Asked Questions
What is CVE-2026-66053?
Which Thrift versions are affected?
What version fixes CVE-2026-66053?
Is thrift affected?
What is the CVSS score of CVE-2026-66053?
What CWE is associated with CVE-2026-66053?
How can I check PyPI dependencies for CVE-2026-66053?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hwrj-9rr4-24xh",
"modified" : "2026-09-02T14:31:34Z",
"published" : "2026-07-27T12:31:17Z",
"aliases" : [ "CVE-2026-66053" ],
"summary" : "Apache Thrift Python bindings have a Improper Validation of Certificate with Host Mismatch vulnerabilit",
"details" : "Improper Validation of Certificate with Host Mismatch 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.\n\nThis replaces CVE-2026-41603",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"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-66053"
}, {
"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/w4k5dnv1x58knwlhpo9x0or5xh220y65"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-297" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-02T14:31:34Z",
"nvd_published_at" : "2026-07-27T12:16:55Z"
}
}