Skip to content
OpenAdvisories
Unscored CVE-2011-4940 EUVD-2011-4850GHSA-cr6h-6cqx-mw3f

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 befo…

Published Jun 27, 2012 · Updated Aug 7, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 python2.7 2.7.2-8 —
Debian 6.0 python2.6 2.6.6-8+deb6u1 DLA-25-1
ReleasePackageFixed inAdvisory
RHEL 6 python +5 2.6.6-29.el6_2.2 RHSA-2012:0744
RHEL 5 python +4 2.4.3-46.el5_8.2 RHSA-2012:0745

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-py No fix yet —

Advisories 3

References