Skip to content
OpenAdvisories
Medium · 5.3 CVE-2012-5825 EUVD-2012-0031GHSA-pwx5-xg7g-wpc5PYSEC-2012-17

Tweepy does not verify SSL Certificate

Published Nov 4, 2012 · Updated Aug 6, 2024 · Assigned by mitre

Description

Tweepy does not verify that the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via an arbitrary valid certificate, related to use of the Python httplib library.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 tweepy 3.1.0-2 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tweepy < 3.0 3.0 GHSA-pwx5-xg7g-wpc5
PyPI tweepy < 2.3.1 2.3.1 PYSEC-2012-17

References