Every CVE Search/ Get API key

CVE-2011-4940

The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5...

2.6 LowFix available

CVE-2011-4940 is a low vulnerability (CVSS 2.6) in Python, published June 27, 2012. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.18%, the 88th percentile. Fixed in python2.7 2.7.2-8.

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.

Exploit likelihood

3.18%Up 1.2 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 2.6

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.

Record
CVE-2011-4940
CVSS 2.0
2.6 LowAV:N/AC:H/Au:N/C:N/I:P/A:N
Weakness
CWE-79
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2011-4940
Updated
2026-11-02
EUVDEUVD-2011-4850 No score

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.

Record
EUVD-2011-4850
Updated
2026-11-03
GitHub AdvisoriesGHSA-cr6h-6cqx-mw3f No score

The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5...

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.

Record
GHSA-cr6h-6cqx-mw3f
Weakness
CWE-79
Updated
2026-11-02
OSVAZL-109590 No score

CVE-2011-4940 affecting package python-py 1.11.0-1

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.

Record
AZL-109590
Updated
2026-11-02
OSV No score

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.

Record
CVE-2011-4940
Updated
2026-11-02
OSVDEBIAN-CVE-2011-4940 No score

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.

Record
DEBIAN-CVE-2011-4940
Updated
2026-11-02
OSVPSF-2012-1 No score

SimpleHTTPServer UTF-7

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.

Record
PSF-2012-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
python-py
Azure Linux:3
through 1.11.0-1 None known
python2.7
Debian:11
before 2.7.2-8
2.7.2-8
python2.6
Debian:6.0
before 2.6.6-8+deb6u1, plus listed versions
2.6.6-8
2.6.6-8+deb6u1
python
Red Hat:enterprise_linux:6::client
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-debuginfo
Red Hat:enterprise_linux:6::client
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-libs
Red Hat:enterprise_linux:6::client
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
tkinter
Red Hat:enterprise_linux:6::client
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-devel
Red Hat:enterprise_linux:6::client
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-test
Red Hat:enterprise_linux:6::client
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-tools
Red Hat:enterprise_linux:6::client
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
Show 35 moreShow less
Affected packages
PackageAffectedFixed
python
Red Hat:enterprise_linux:6::computenode
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-debuginfo
Red Hat:enterprise_linux:6::computenode
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-libs
Red Hat:enterprise_linux:6::computenode
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-devel
Red Hat:enterprise_linux:6::computenode
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-test
Red Hat:enterprise_linux:6::computenode
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-tools
Red Hat:enterprise_linux:6::computenode
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
tkinter
Red Hat:enterprise_linux:6::computenode
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python
Red Hat:enterprise_linux:6::server
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-debuginfo
Red Hat:enterprise_linux:6::server
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-devel
Red Hat:enterprise_linux:6::server
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-libs
Red Hat:enterprise_linux:6::server
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
tkinter
Red Hat:enterprise_linux:6::server
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-test
Red Hat:enterprise_linux:6::server
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-tools
Red Hat:enterprise_linux:6::server
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python
Red Hat:enterprise_linux:6::workstation
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-debuginfo
Red Hat:enterprise_linux:6::workstation
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-devel
Red Hat:enterprise_linux:6::workstation
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-libs
Red Hat:enterprise_linux:6::workstation
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
tkinter
Red Hat:enterprise_linux:6::workstation
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-test
Red Hat:enterprise_linux:6::workstation
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python-tools
Red Hat:enterprise_linux:6::workstation
before 0:2.6.6-29.el6_2.2
0:2.6.6-29.el6_2.2
python
Red Hat:enterprise_linux:5::client
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-debuginfo
Red Hat:enterprise_linux:5::client
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-libs
Red Hat:enterprise_linux:5::client
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-tools
Red Hat:enterprise_linux:5::client
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
tkinter
Red Hat:enterprise_linux:5::client
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python
Red Hat:enterprise_linux:5::client_workstation
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-debuginfo
Red Hat:enterprise_linux:5::client_workstation
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-devel
Red Hat:enterprise_linux:5::client_workstation
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python
Red Hat:enterprise_linux:5::server
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-debuginfo
Red Hat:enterprise_linux:5::server
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-devel
Red Hat:enterprise_linux:5::server
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-libs
Red Hat:enterprise_linux:5::server
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
python-tools
Red Hat:enterprise_linux:5::server
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2
tkinter
Red Hat:enterprise_linux:5::server
before 0:2.4.3-46.el5_8.2
0:2.4.3-46.el5_8.2

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 30 moreShow less
MoveEnter Open