CVE-2014-4650 in Python and 2 more products
The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which allows remote attackers to read script source code or conduct directory traversal attacks and execute unintended code via a crafted character sequence, as demonstrated by a %2f separator.
Affects 3 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Python | Python | ≥ 2.7.0, < 2.7.8 ≥ 3.2.0, < 3.2.6 ≥ 3.3.0, < 3.3.6 ≥ 3.4.0, < 3.4.2 |
| Redhat | Enterprise Linux | 5.0 6.0 7.0 |
| Redhat | Software Collections | No version listed by the source |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which allows remote attackers to read script source code or conduct directory traversal attacks and execute unintended code via a crafted character sequence, as demonstrated by a %2f separator.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2014-4650 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-160788-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2020-02-20 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-22: Path Traversal
Attacker manipulates file path inputs to access files outside the intended directory.
Related attack patterns (CAPEC)
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22
CAPEC-76 Manipulating Web Input to File System Calls via CWE-22
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22
CAPEC-79 Using Slashes in Alternate Encoding via CWE-22
CAPEC-126 Path Traversal via CWE-22
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
The CGIHTTPServer module in Python 2.7.5 and 3.3.4 is vulnerable to directory traversal and code execution due to improper handling of URL-encoded path separators.
Remote attackers can exploit this vulnerability by crafting a URL with a %2f sequence, which can lead to reading script source code or executing unintended code.
Questions
What is CVE-2014-4650?
The CGIHTTPServer module in Python 2.7.5 and 3.3.4 is vulnerable to directory traversal and code execution due to improper handling of URL-encoded path separators.
What is the CVSS score for CVE-2014-4650?
CVE-2014-4650 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 23.9%.
Is CVE-2014-4650 actively exploited?
Public exploit available for CVE-2014-4650. Exploitation risk elevated.
How do I remediate CVE-2014-4650?
Priority: IMMEDIATE. Advisory: http://bugs.python.org/issue21766
What systems are affected by CVE-2014-4650?
CVE-2014-4650 affects Python Python; Redhat Enterprise Linux, Software Collections.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Python","product":"Python","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.