{"id":"CVE-2011-4940","url":"https://www.cyber-defence.io/tools/cve/CVE-2011-4940","generatedAt":"2026-10-27T22:04:23.688Z","title":"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…","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.","published":"2012-06-27T10:18:36.000Z","lastModified":"2026-06-16T23:35:40.000Z","status":"Modified","sourceIdentifier":"secalert@redhat.com","cvss":{"version":"2.0","score":2.6,"severity":"LOW","vector":"AV:N/AC:H/Au:N/C:N/I:P/A:N"},"cwe":["CWE-79"],"affected":["python/python"],"epss":{"score":0.03213,"percentile":0.88105,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"low","text":"Lower severity and a low EPSS score (3.21%). Track it; it rarely justifies an emergency change on its own."},"changes":[],"references":[{"url":"http://bugs.python.org/issue11442","source":"secalert@redhat.com"},{"url":"http://jvn.jp/en/jp/JVN51176027/index.html","source":"secalert@redhat.com"},{"url":"http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063","source":"secalert@redhat.com"},{"url":"http://secunia.com/advisories/50858","source":"secalert@redhat.com"},{"url":"http://secunia.com/advisories/51024","source":"secalert@redhat.com"},{"url":"http://secunia.com/advisories/51040","source":"secalert@redhat.com"},{"url":"http://www.securityfocus.com/bid/54083","source":"secalert@redhat.com"},{"url":"http://www.ubuntu.com/usn/USN-1592-1","source":"secalert@redhat.com"},{"url":"http://www.ubuntu.com/usn/USN-1596-1","source":"secalert@redhat.com"},{"url":"http://www.ubuntu.com/usn/USN-1613-1","source":"secalert@redhat.com"},{"url":"http://www.ubuntu.com/usn/USN-1613-2","source":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=803500","source":"secalert@redhat.com"},{"url":"http://bugs.python.org/issue11442","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://jvn.jp/en/jp/JVN51176027/index.html","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/50858","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/51024","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://secunia.com/advisories/51040","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.securityfocus.com/bid/54083","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.ubuntu.com/usn/USN-1592-1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.ubuntu.com/usn/USN-1596-1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.ubuntu.com/usn/USN-1613-1","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.ubuntu.com/usn/USN-1613-2","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=803500","source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2011-4940","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}