CVE-2011-4940: python
Vulnerability summary
CVE-2011-4940 is a low (CVSS 2.6) vulnerability in python. EPSS estimates a 3.18% chance of exploitation in the next 30 days, higher than 88% of scored vulnerabilities.
Not severe (CVSS 2.6, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Duplicates 1Timeline
- 27-06-2012PublishedVulnerability first disclosed.
- 07-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
3.18%
Chance of exploitation in the next 30 days
Percentile
88%
Versus all other CVEs
30-day change
Decrease -0.04 pp
From 3.21% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- python2.7< 2.7.2-8
Python1 product
- pythonEOL≤ 2.5.6 | 0.9.0 | 0.9.1 | 1.2 | 1.3 | 1.5.2 | 1.6 | 1.6.1 | 2.0.1 | 2.1.1 | 2.1.2 | 2.1.3 | 2.2.1 | 2.2.2 | 2.2.3 | 2.3.1 | 2.3.2 | 2.3.3 | 2.3.4 | 2.3.5 | 2.3.7 | 2.4.1 | 2.4.2 | 2.4.3 | 2.4.4 | 2.4.6 | 2.5.1 | 2.5.2 | 2.5.3 | 2.5.4 | 2.6.1 | 2.6.2 | 2.6.3 | 2.6.4 | 2.6.5 | 2.6.6 | 2.7.1 | 2.7.1:rc1 | 2.7.2:rc1
2 vendors · 2 products
References
13 links- bugs.python.org/issue11442X Refsource CONFIRM
- bugzilla.redhat.com/show_bug.cgi?id=803500X Refsource CONFIRM