CVE-2026-94634
Unbounded resource allocation & insecure default init in Thrift Python
- CVSS 8.2
- CWE-770
- Resource Management
- Remote
Allocation of resources without limits or throttling, Initialization of a resource with an insecure default vulnerability in Apache Thrift Python bindings. This issue affects Apache Thrift: before 0.25.0. Users are recommended to upgrade to version 0.25.0, which fixes the issue.
- CWE
- CWE-770
- CVSS base score
- 8.2
- Published
- 2026-10-02
- OWASP
- A04 Insecure Design
- Orthogonal defect classification
- Assignment
- Code defect classification
- Missing Assignment
- Category
- Resource Management
- Subcategory
- Resource Exhaustion
- Accessibility scope
- Remote
- Impact
- Denial of Service (DoS)
- Affected component
- Apache Thrift
- Fixed by upgrading
- Yes
Solution
Upgrade Apache Thrift to version 0.25.0 (or later).
Vulnerable code sample
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
def deserialize_message(data: bytes):
# VULNERABLE: unlimited string length allows resource exhaustion
transport = TTransport.TMemoryBuffer(data)
protocol = TBinaryProtocol.TBinaryProtocolAccelerated(transport)
# Assume the message contains a single string field
return protocol.readString()Patched code sample
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
def deserialize_message(data: bytes):
# FIX: enforce a reasonable string length limit to prevent exhaustion
transport = TTransport.TMemoryBuffer(data)
protocol = TBinaryProtocol.TBinaryProtocolAccelerated(transport, string_length_limit=1024*1024)
return protocol.readString()Cite this entry
@misc{vaitp:cve202694634,
title = {{Unbounded resource allocation & insecure default init in Thrift Python}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-94634},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-94634/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
