python: potential XSS in SimpleHTTPServer's list_directory()
Published Jun 27, 2012
2.6
LOWCVSS 2.0
EPSS 3.21%
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.
Affected products
No data.
Configuration 1
- ≤ 2.5.6
- 0.9.0
- 0.9.1
- 1.2
- 1.3
- 1.5.2
- 1.6
- 1.6.1
- 2.0.1
- 2.1.1
- 2.1.2
- 2.1.3
- 2.2.1
- 2.2.2
- 2.2.3
- 2.3.1
- 2.3.2
- 2.3.3
- 2.3.4
- 2.3.5
- 2.3.7
- 2.4.1
- 2.4.2
- 2.4.3
- 2.4.4
- 2.4.6
- 2.5.1
- 2.5.2
- 2.5.3
- 2.5.4
Configuration 2
No data.
Red Hat Enterprise Linux 5
python-0:2.4.3-46.el5_8.2
Fixed · RHSA-2012:0745
Red Hat Enterprise Linux 6
python-0:2.6.6-29.el6_2.2
Fixed · RHSA-2012:0744
Red Hat Enterprise Linux 4
python
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | python-0:2.4.3-46.el5_8.2 | Fixed | RHSA-2012:0745 |
| Red Hat Enterprise Linux 6 | python-0:2.6.6-29.el6_2.2 | Fixed | RHSA-2012:0744 |
| Red Hat Enterprise Linux 4 | python | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:H/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.21% (0.03213) | 87.75th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.21% (0.03213) | 86.50th | v5 (v2026.06.15) |
| Mar 17, 2025 | 1.09% (0.01091) | 76.39th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.42% (0.00422) | 75.08th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.42% (0.00422) | 73.58th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.42% (0.00422) | 70.24th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.96% (0.01955) | 78.47th | v2 (v2022.01.01) |
| Feb 13, 2023 | 1.96% (0.01955) | 77.97th | v2 (v2022.01.01) |
| Feb 3, 2023 | 2.69% (0.02686) | 82.44th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.96% (0.01955) | 76.59th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.96% (0.01955) | 55.71th | v2 (v2022.01.01) |
References (15)
- http://bugs.python.org/issue11442 x_refsource_CONFIRM
- http://jvn.jp/en/jp/JVN51176027/index.html third-party-advisoryx_refsource_JVN
- http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063 third-party-advisoryx_refsource_JVNDB
- http://secunia.com/advisories/50858 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/51024 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/51040 third-party-advisoryx_refsource_SECUNIA
- http://www.securityfocus.com/bid/54083 vdb-entryx_refsource_BID
- http://www.ubuntu.com/usn/USN-1592-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1596-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1613-1 vendor-advisoryx_refsource_UBUNTU
- http://www.ubuntu.com/usn/USN-1613-2 vendor-advisoryx_refsource_UBUNTU
- https://access.redhat.com/security/cve/CVE-2011-4940 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=803500 x_refsource_CONFIRMIssue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2011-4940
- https://www.cve.org/CVERecord?id=CVE-2011-4940
Change history (0)
No recorded changes yet.