CVE-2011-4940

python: potential XSS in SimpleHTTPServer's list_directory()

Published Jun 27, 2012 CVSS 2.0 · 2.6 Low EPSS 3.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-25-1 python2.6 security update
EUVD EUVD EUVD-2011-4850 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.
Ubuntu USN Ubuntu USN USN-1592-1 Python 2.7 vulnerabilities
Ubuntu USN Ubuntu USN USN-1596-1 Python 2.6 vulnerabilities
Ubuntu USN Ubuntu USN USN-1613-1 Python 2.5 vulnerabilities
Ubuntu USN Ubuntu USN USN-1613-2 Python 2.4 vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.01091}

epss

{'score': 0.00556}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 7, 2024, 12:23 AM
Reserved
Dec 23, 2011, 12:00 AM
Status
Modified
Published
Jun 27, 2012, 10:18 AM
Modified
Jun 16, 2026, 11:35 PM
Severity
Low
Public date
Mar 8, 2011, 12:00 AM