PT-2014-1704 · Python+5 · Python+5
Published
2014-06-25
·
Updated
2025-11-07
·
CVE-2014-4650
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Python versions 2.7.5 and 3.3.4
Description
The issue arises from the CGIHTTPServer module's improper handling of URL-encoded path separators in URLs. This allows remote attackers to read script source code, conduct directory traversal attacks, or execute unintended code via a crafted character sequence, such as a
%2f separator. Attackers may exploit this to disclose a CGI script's source code or execute arbitrary CGI scripts in the server's document root.Recommendations
For Python version 2.7.5, update to a version that properly handles URL-encoded path separators.
For Python version 3.3.4, update to a version that properly handles URL-encoded path separators.
As a temporary workaround, consider restricting access to the CGIHTTPServer module until a patch is available.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Centos
Python
Red Hat
Suse
Ubuntu