CVE-2011-4940

NameCVE-2011-4940
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-25-1
Debian Bugs664135

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python2.7 (PTS)bullseye2.7.18-8+deb11u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python2.5source(unstable)(unfixed)unimportant
python2.6sourcesqueeze2.6.6-8+deb6u1DLA-25-1
python2.6source(unstable)(unfixed)unimportant664135
python2.7source(unstable)2.7.2-8unimportant

Notes

https://www.openwall.com/lists/oss-security/2012/03/14/11
This only affects IE7, which is inherently insecure anyway

Search for package or bug name: Reporting problems