Intel

AIKIDO-2026-998719

thrift is vulnerable to Improper Certificate Validation

CVE-2026-85087Published Oct 26, 2026
October 26, 2026

69

CVE Score

Medium

Improper Certificate Validation

Are you affected? Scan for Free

TL;DR

TSSLSocket.open() checks the peer certificate hostname through _validate_callback, which is sslcompat._match_hostname. On Python 3.12 ssl.match_hostname is gone, so that callback returns true. A context built from an explicit ssl_version does not set SSLContext.check_hostname, so a certificate for a different host is accepted. The fix sets check_hostname on the client context so OpenSSL enforces the name during the handshake.

How do I fix this?

Upgrade the thrift library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use TSSLSocket on Python 3.12 or later with an explicit ssl_version, so the context is built with check_hostname off.

Package

Versions

0.22.0 - 0.24.0

Fixed in 0.25.0

Background info

thrift is vulnerable to Improper Certificate Validation in versions 0.22.0 - 0.24.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea