CVE-2012-5825
Tweepy does not verify SSL Certificate
Reported by mitre · Published November 4, 2012
tweepy is fixed in 3.0 and 2.3.1 (PyPI)
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tweepy | PyPI | 3.0, 2.3.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | tweepy | 0 |
Timeline
- Nov 4, 2012 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory
- Sep 17, 2026 CVE Updated
- Oct 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2012-5825
vulnetix vdb fixes CVE-2012-5825
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2012-5825/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- tweepy-ssl-spoofing(79831) vdb-entryx_refsource_XF
- x_refsource_MISC
- https://github.com/tweepy/tweepy/issues/279 discussion
- https://github.com/tweepy/tweepy/pull/400 fix
- https://nvd.nist.gov/vuln/detail/CVE-2012-5825 advisory
- https://github.com/advisories/GHSA-pwx5-xg7g-wpc5 advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/tweepy/PYSEC-2012-17.yaml advisory
- https://github.com/tweepy/tweepy url