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.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
http://openwall.com/lists/oss-security/2014/06/26/3 | third party advisory mailing list |
http://bugs.python.org/issue21766 | exploit patch vendor advisory |
https://access.redhat.com/security/cve/cve-2014-4650 | third party advisory vendor advisory |