CVE-2011-4940

low
Published 2012-06-27 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
2.6

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

debian Debian Fixed 1 release
VersionStatusFixed in
bullseye Fixed 2.7.2-8

Application impact

VendorProductVersionsFixed
python pythonpython{"endIncluding":"2.5.6"}
python pythonpython0.9.0
python pythonpython0.9.1
python pythonpython1.2
python pythonpython1.3
python pythonpython1.5.2
python pythonpython1.6
python pythonpython1.6.1
python pythonpython2.0.1
python pythonpython2.1.1
python pythonpython2.1.2
python pythonpython2.1.3
python pythonpython2.2.1
python pythonpython2.2.2
python pythonpython2.2.3
python pythonpython2.3.1
python pythonpython2.3.2
python pythonpython2.3.3
python pythonpython2.3.4
python pythonpython2.3.5
python pythonpython2.3.7
python pythonpython2.4.1
python pythonpython2.4.2
python pythonpython2.4.3
python pythonpython2.4.4
python pythonpython2.4.6
python pythonpython2.5.1
python pythonpython2.5.2
python pythonpython2.5.3
python pythonpython2.5.4
python pythonpython2.6.1
python pythonpython2.6.2
python pythonpython2.6.3
python pythonpython2.6.4
python pythonpython2.6.5
python pythonpython2.6.6
python pythonpython2.7.1
python pythonpython2.7.2

References

CWEs

CWE-79

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.