CVE-2012-5825
HIGH 7.4CVSS 3.1Tweepy does not verify SSL Certificate
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.
- Published
- 4 Nov 2012
- Last modified
- 17 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-20
- Also known as
- GHSA-pwx5-xg7g-wpc5PYSEC-2012-17
- Sources
- NVDJSONOSV GHSA-pwx5-xg7g-wpc5JSONOSV PYSEC-2012-17JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tweepy | tweepycpe:2.3:a:tweepy:tweepy:*:*:*:*:*:*:*:* |
< 3.0.0 | 3.0.0 |
| OSV | PyPI | tweepy | < 3.0 | 3.0 |
| OSV | PyPI | tweepy | < 2.3.1 | 2.3.1 |
References
- http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf · Exploit, WEB
- https://exchange.xforce.ibmcloud.com/vulnerabilities/79831 · Permissions Required, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2012-5825 · ADVISORY
- https://github.com/tweepy/tweepy/issues/279 · WEB
- https://github.com/tweepy/tweepy/pull/400 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tweepy/PYSEC-2012-17.yaml · WEB
- https://github.com/tweepy/tweepy · PACKAGE
- https://github.com/advisories/GHSA-pwx5-xg7g-wpc5 · ADVISORY
History
- 25 Nov 2026 20:17 UTC · NVD: first stored (published 4 Nov 2012)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 Nov 2012)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 May 2022)