thrift is vulnerable to Improper Certificate Validation
69
CVE Score
Medium
Improper Certificate Validation
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.
Upgrade the thrift library to the patch version.
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.
0.22.0 - 0.24.0
Fixed in 0.25.0thrift is vulnerable to Improper Certificate Validation in versions 0.22.0 - 0.24.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.