CVE-2026-85087
Improper cert validation and wrong status code in Thrift Python bindings.
- CVSS 6.9
- CWE-295
- Authentication, Authorization, and Session Management
- Remote
Improper certificate validation, Return of wrong status code 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-295
- CVSS base score
- 6.9
- Published
- 2026-10-02
- OWASP
- A02 Cryptographic Failures
- Orthogonal defect classification
- Checking
- Code defect classification
- Incorrect Check
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Insecure Authentication Mechanisms
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- Apache Thrift
- Fixed by upgrading
- Yes
Solution
Upgrade Apache Thrift to version 0.25.0 or later.
Vulnerable code sample
import sys
from thrift.transport import TSSLSocket
from thrift.protocol import TBinaryProtocol
from myservice import MyService # placeholder for generated Thrift module
def get_client(host: str, port: int):
# VULNERABLE: skips server certificate verification
socket = TSSLSocket.TSSLSocket(host, port, validate=False)
transport = TSSLSocket.TFramedTransport(socket)
protocol = TBinaryProtocol.TBinaryProtocol(transport)
client = MyService.Client(protocol)
transport.open()
return clientPatched code sample
import sys
from thrift.transport import TSSLSocket
from thrift.protocol import TBinaryProtocol
from myservice import MyService # placeholder for generated Thrift module
def get_client(host: str, port: int):
# FIX: enable proper certificate validation
socket = TSSLSocket.TSSLSocket(host, port, validate=True, ca_certs="ca.pem")
transport = TSSLSocket.TFramedTransport(socket)
protocol = TBinaryProtocol.TBinaryProtocol(transport)
client = MyService.Client(protocol)
transport.open()
return clientCite this entry
@misc{vaitp:cve202685087,
title = {{Improper cert validation and wrong status code in Thrift Python bindings.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-85087},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-85087/}}
}
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 ::
