Path traversal in Python - CVE-2014-4650

 

Path traversal in Python - CVE-2014-4650

Published: June 27, 2022 / Updated: June 3, 2025


Vulnerability identifier: #VU110146
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2014-4650
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

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.


Affected software

Python
Fedora
python3

How to mitigate CVE-2014-4650

Install update from vendor's website.

Python - update to 2.7.6 rc1
python3 - update to 3.4.1-16.fc21

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins