KeygraphLabs · CVE MCP

CVE-2012-5825 · mitre

CVE-2012-5825

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 2012-11-04, last changed 2026-09-17. Weakness: CWE-20.

CVSS
7.4
high, from NVD
EPSS
0.61%
percentile 50.7%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: tweepy 2.3.1, 3.0 (PyPI) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in tweepy/tweepy by pull request #400. Functions changed by the fix: APIMethod, __init__, build_parameters, build_path, execute, parse, _run, _read_loop, firehose, retweet, sample, filter. Regression tests: tests/test_streaming.py. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2012-11-04Published
2012-11-04Package advisory PYSEC-2012-17
2022-05-17Package advisory GHSA-pwx5-xg7g-wpc5
2026-09-17Record last changed
2026-11-30EPSS when our history starts: 0.61%
2026-12-04Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-pwx5-xg7g-wpc5tweepy (PyPI)3.0
PYSEC-2012-17tweepy (PyPI)2.3.1

Also known as: GHSA-pwx5-xg7g-wpc5, PYSEC-2012-17

Related

CVEPublishedCVSSSummary
CVE-2026-1068042026-11-027.5same weakness (CWE-20) from the same CNA (mitre)
CVE-2025-713832026-10-069.8same weakness (CWE-20) from the same CNA (mitre)
CVE-2026-519972026-09-248.8same weakness (CWE-20) from the same CNA (mitre)
CVE-2026-794102026-09-158.1same weakness (CWE-20) from the same CNA (mitre)
CVE-2025-669742026-09-157.5same weakness (CWE-20) from the same CNA (mitre)
CVE-2026-390202026-09-095.5same weakness (CWE-20) from the same CNA (mitre)
CVE-2025-516192026-09-095.5same weakness (CWE-20) from the same CNA (mitre)
CVE-2026-793762026-09-088.8same weakness (CWE-20) from the same CNA (mitre)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2012-5825, or call /api/v1/vulnerabilities/CVE-2012-5825. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org