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.
Published: 2012-06-27
Score: 2.6 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

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

Sat, 12 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.01091}

epss

{'score': 0.00556}


Subscriptions

Python Python
Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2024-08-07T00:23:39.213Z

Reserved: 2011-12-23T00:00:00.000Z

Link: CVE-2011-4940

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2012-06-27T10:18:36.433

Modified: 2026-04-29T01:13:23.040

Link: CVE-2011-4940

cve-icon Redhat

Severity : Low

Publid Date: 2011-03-08T00:00:00Z

Links: CVE-2011-4940 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses