CVE-2012-5825: Tweepy does not verify SSL Certificate
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.36038%
CWE
Published
5/17/2022
Updated
11/18/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
tweepy | pip | < 3.0 | 3.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from Tweepy's use of Python's httplib without SSL certificate validation. Key evidence includes:
- The CVE description explicitly mentions httplib usage as the root cause
- The fix in PR #400 replaced httplib with Requests library which enforces proper SSL validation
- Historical code structure shows binder.py was responsible for HTTP connections
- The 'connect' function in binder.py would be the logical place where insecure HTTPSConnection was instantiated
- API class methods would propagate this vulnerability through the request stack While we can't see exact pre-3.0 code, the migration to Requests and CVE details strongly indicate these were the vulnerable entry points.