CVE-2011-4940
Severity CVSS v4.0:
Pending analysis
Type:
CWE-79
Cross-Site Scripting (XSS)
Publication date:
27/06/2012
Last modified:
11/04/2025
Description
The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5.6c1, 2.6.x before 2.6.7 rc2, and 2.7.x before 2.7.2 does not place a charset parameter in the Content-Type HTTP header, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks against Internet Explorer 7 via UTF-7 encoding.
Impact
Base Score 2.0
2.60
Severity 2.0
LOW
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | 2.5.6 (including) | |
| cpe:2.3:a:python:python:0.9.0:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:0.9.1:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:1.2:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:1.3:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:1.5.2:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:1.6:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:1.6.1:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:2.0.1:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:2.1.1:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:2.1.2:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:2.1.3:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:2.2.1:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:2.2.2:*:*:*:*:*:*:* | ||
| cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- http://bugs.python.org/issue11442
- http://jvn.jp/en/jp/JVN51176027/index.html
- http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063
- http://secunia.com/advisories/50858
- http://secunia.com/advisories/51024
- http://secunia.com/advisories/51040
- http://www.securityfocus.com/bid/54083
- http://www.ubuntu.com/usn/USN-1592-1
- http://www.ubuntu.com/usn/USN-1596-1
- http://www.ubuntu.com/usn/USN-1613-1
- http://www.ubuntu.com/usn/USN-1613-2
- https://bugzilla.redhat.com/show_bug.cgi?id=803500
- http://bugs.python.org/issue11442
- http://jvn.jp/en/jp/JVN51176027/index.html
- http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063
- http://secunia.com/advisories/50858
- http://secunia.com/advisories/51024
- http://secunia.com/advisories/51040
- http://www.securityfocus.com/bid/54083
- http://www.ubuntu.com/usn/USN-1592-1
- http://www.ubuntu.com/usn/USN-1596-1
- http://www.ubuntu.com/usn/USN-1613-1
- http://www.ubuntu.com/usn/USN-1613-2
- https://bugzilla.redhat.com/show_bug.cgi?id=803500



