CVE-2012-5825Tweepy
High 7.4 No auth needed
Follow: this CVE · Tweepy · Tweepy We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 7.4
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 43
- Auth required
- No
- Published
- Nov 4, 2012
- Updated
- Sep 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Tweepy.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | tweepy |
< 3.0 |
3.0 |
pip install "tweepy>=3.0" |
| PyPI | tweepy |
< 2.3.1 |
2.3.1 |
pip install "tweepy>=2.3.1" |
Per OSV / GitHub Advisories (GHSA-pwx5-xg7g-wpc5, PYSEC-2012-17). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tweepy | tweepy | < 3.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.cs.utexas.edu Exploit
- exchange.xforce.ibmcloud.com Permissions Required