CVE-2026-66055
Unbounded resource allocation in Apache Thrift before 0.25.0.
- CVSS 8.2
- CWE-770
- Resource Management
- Remote
Allocation of Resources Without Limits or Throttling vulnerability in Apache Thrift C++, Java, Go, netstd, Python and Delphi 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
- A05 Security Misconfiguration
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- 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.protocol import TBinaryProtocol
from thrift.transport import TSocket, TTransport
from thrift.server import TServer
class ExampleHandler:
def ping(self):
return "pong"
# VULNERABLE: unbounded thread creation for each client
def start_server():
processor = ExampleHandler()
transport = TSocket.TServerSocket(host='127.0.0.1', port=9090)
tfactory = TTransport.TBufferedTransportFactory()
pfactory = TBinaryProtocol.TBinaryProtocolFactory()
server = TServer.TSimpleServer(processor, transport, tfactory, pfactory)
server.serve()Patched code sample
from thrift.protocol import TBinaryProtocol
from thrift.transport import TSocket, TTransport
from thrift.server import TServer
class ExampleHandler:
def ping(self):
return "pong"
# FIX: limit concurrent workers to prevent resource exhaustion
def start_server():
processor = ExampleHandler()
transport = TSocket.TServerSocket(host='127.0.0.1', port=9090)
tfactory = TTransport.TBufferedTransportFactory()
pfactory = TBinaryProtocol.TBinaryProtocolFactory()
server = TServer.TThreadPoolServer(processor, transport, tfactory, pfactory, daemon=True, num_threads=10)
server.serve()Cite this entry
@misc{vaitp:cve202666055,
title = {{Unbounded resource allocation in Apache Thrift before 0.25.0.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-66055},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-66055/}}
}
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 ::
