Read the docs
TI-2011-04250 Aliases CVE-2011-4940GHSA-cr6h-6cqx-mw3f

The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python…

Priority LOW 19CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
— Not recorded in CVSS 2.0
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
None · Partial · None
Fix status
Partial Red Hat: 11 fixed, 1 without a fix

Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-79.

Summary

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.

Why it matters now

EPSS 0.03177 88th percentileScored 2026-11-07
Fix Partial Red Hat: 2 advisoriesRed Hat: 11 fixed, 1 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 39

CPEVersionsRoleVendor
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*up to 2.5.6Vulnerablepython-pillow
cpe:2.3:a:python:python:0.9.0:*:*:*:*:*:*:*0.9.0Vulnerablepython-pillow
cpe:2.3:a:python:python:0.9.1:*:*:*:*:*:*:*0.9.1Vulnerablepython-pillow
cpe:2.3:a:python:python:1.2:*:*:*:*:*:*:*1.2Vulnerablepython-pillow
cpe:2.3:a:python:python:1.3:*:*:*:*:*:*:*1.3Vulnerablepython-pillow
cpe:2.3:a:python:python:1.5.2:*:*:*:*:*:*:*1.5.2Vulnerablepython-pillow
cpe:2.3:a:python:python:1.6:*:*:*:*:*:*:*1.6Vulnerablepython-pillow
cpe:2.3:a:python:python:1.6.1:*:*:*:*:*:*:*1.6.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.0.1:*:*:*:*:*:*:*2.0.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.1.1:*:*:*:*:*:*:*2.1.1Vulnerablepython-pillow
  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions up to 2.5.6 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:0.9.0:*:*:*:*:*:*:* Versions 0.9.0 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:0.9.1:*:*:*:*:*:*:* Versions 0.9.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:1.2:*:*:*:*:*:*:* Versions 1.2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:1.3:*:*:*:*:*:*:* Versions 1.3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:1.5.2:*:*:*:*:*:*:* Versions 1.5.2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:1.6:*:*:*:*:*:*:* Versions 1.6 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:1.6.1:*:*:*:*:*:*:* Versions 1.6.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.0.1:*:*:*:*:*:*:* Versions 2.0.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.1.1:*:*:*:*:*:*:* Versions 2.1.1 Vulnerable ·python-pillow
Show 29 more CPE
CPEVersionsRoleVendor
cpe:2.3:a:python:python:2.1.2:*:*:*:*:*:*:*2.1.2Vulnerablepython-pillow
cpe:2.3:a:python:python:2.1.3:*:*:*:*:*:*:*2.1.3Vulnerablepython-pillow
cpe:2.3:a:python:python:2.2.1:*:*:*:*:*:*:*2.2.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.2.2:*:*:*:*:*:*:*2.2.2Vulnerablepython-pillow
cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:*2.2.3Vulnerablepython-pillow
cpe:2.3:a:python:python:2.3.1:*:*:*:*:*:*:*2.3.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.3.2:*:*:*:*:*:*:*2.3.2Vulnerablepython-pillow
cpe:2.3:a:python:python:2.3.3:*:*:*:*:*:*:*2.3.3Vulnerablepython-pillow
cpe:2.3:a:python:python:2.3.4:*:*:*:*:*:*:*2.3.4Vulnerablepython-pillow
cpe:2.3:a:python:python:2.3.5:*:*:*:*:*:*:*2.3.5Vulnerablepython-pillow
cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:*2.3.7Vulnerablepython-pillow
cpe:2.3:a:python:python:2.4.1:*:*:*:*:*:*:*2.4.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.4.2:*:*:*:*:*:*:*2.4.2Vulnerablepython-pillow
cpe:2.3:a:python:python:2.4.3:*:*:*:*:*:*:*2.4.3Vulnerablepython-pillow
cpe:2.3:a:python:python:2.4.4:*:*:*:*:*:*:*2.4.4Vulnerablepython-pillow
cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:*2.4.6Vulnerablepython-pillow
cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:*2.5.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.5.2:*:*:*:*:*:*:*2.5.2Vulnerablepython-pillow
cpe:2.3:a:python:python:2.5.3:*:*:*:*:*:*:*2.5.3Vulnerablepython-pillow
cpe:2.3:a:python:python:2.5.4:*:*:*:*:*:*:*2.5.4Vulnerablepython-pillow
cpe:2.3:a:python:python:2.6.1:*:*:*:*:*:*:*2.6.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.6.2:*:*:*:*:*:*:*2.6.2Vulnerablepython-pillow
cpe:2.3:a:python:python:2.6.3:*:*:*:*:*:*:*2.6.3Vulnerablepython-pillow
cpe:2.3:a:python:python:2.6.4:*:*:*:*:*:*:*2.6.4Vulnerablepython-pillow
cpe:2.3:a:python:python:2.6.5:*:*:*:*:*:*:*2.6.5Vulnerablepython-pillow
cpe:2.3:a:python:python:2.6.6:*:*:*:*:*:*:*2.6.6Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:*2.7.1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:*2.7.1 rc1Vulnerablepython-pillow
cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:*2.7.2 rc1Vulnerablepython-pillow
  • cpe:2.3:a:python:python:2.1.2:*:*:*:*:*:*:* Versions 2.1.2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.1.3:*:*:*:*:*:*:* Versions 2.1.3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.2.1:*:*:*:*:*:*:* Versions 2.2.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.2.2:*:*:*:*:*:*:* Versions 2.2.2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:* Versions 2.2.3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.3.1:*:*:*:*:*:*:* Versions 2.3.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.3.2:*:*:*:*:*:*:* Versions 2.3.2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.3.3:*:*:*:*:*:*:* Versions 2.3.3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.3.4:*:*:*:*:*:*:* Versions 2.3.4 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.3.5:*:*:*:*:*:*:* Versions 2.3.5 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:* Versions 2.3.7 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.4.1:*:*:*:*:*:*:* Versions 2.4.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.4.2:*:*:*:*:*:*:* Versions 2.4.2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.4.3:*:*:*:*:*:*:* Versions 2.4.3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.4.4:*:*:*:*:*:*:* Versions 2.4.4 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:* Versions 2.4.6 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:* Versions 2.5.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.5.2:*:*:*:*:*:*:* Versions 2.5.2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.5.3:*:*:*:*:*:*:* Versions 2.5.3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.5.4:*:*:*:*:*:*:* Versions 2.5.4 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.6.1:*:*:*:*:*:*:* Versions 2.6.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.6.2:*:*:*:*:*:*:* Versions 2.6.2 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.6.3:*:*:*:*:*:*:* Versions 2.6.3 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.6.4:*:*:*:*:*:*:* Versions 2.6.4 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.6.5:*:*:*:*:*:*:* Versions 2.6.5 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.6.6:*:*:*:*:*:*:* Versions 2.6.6 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:* Versions 2.7.1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:* Versions 2.7.1 rc1 Vulnerable ·python-pillow
  • cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:* Versions 2.7.2 rc1 Vulnerable ·python-pillow

Remediation

Red Hat 2 advisories

  • RHSA-2012:0745 Released 2012-06-18 · Red Hat rating Moderate
    python security update
    • RHEL Desktop Workstation (v. 5 client) python-2.4.3-46.el5_8.2, python-devel-2.4.3-46.el5_8.2, python-devel-2.4.3-46.el5_8.2.i386
    • Red Hat Enterprise Linux (v. 5 server) python-2.4.3-46.el5_8.2, python-2.4.3-46.el5_8.2.i386, python-2.4.3-46.el5_8.2.ia64 +17
    • Red Hat Enterprise Linux Desktop (v. 5 client) python-2.4.3-46.el5_8.2, python-2.4.3-46.el5_8.2.i386, python-libs-2.4.3-46.el5_8.2 +5
  • RHSA-2012:0744 Released 2012-06-18 · Red Hat rating Moderate
    python security update
    • Red Hat Enterprise Linux Desktop (v. 6) python-2.6.6-29.el6_2.2, python-libs-2.6.6-29.el6_2.2, tkinter-2.6.6-29.el6_2.2
    • Red Hat Enterprise Linux Desktop Optional (v. 6) python-2.6.6-29.el6_2.2, python-devel-2.6.6-29.el6_2.2, python-test-2.6.6-29.el6_2.2 +1
    • Red Hat Enterprise Linux HPC Node (v. 6) python-2.6.6-29.el6_2.2, python-libs-2.6.6-29.el6_2.2
    • Red Hat Enterprise Linux HPC Node Optional (v. 6) python-2.6.6-29.el6_2.2, python-devel-2.6.6-29.el6_2.2, python-test-2.6.6-29.el6_2.2 +2
    • Red Hat Enterprise Linux Server (v. 6) python-2.6.6-29.el6_2.2, python-devel-2.6.6-29.el6_2.2, python-libs-2.6.6-29.el6_2.2 +1
    • Red Hat Enterprise Linux Server Optional (v. 6) python-2.6.6-29.el6_2.2, python-test-2.6.6-29.el6_2.2, python-tools-2.6.6-29.el6_2.2 +1
    • Red Hat Enterprise Linux Workstation (v. 6) python-2.6.6-29.el6_2.2, python-devel-2.6.6-29.el6_2.2, python-libs-2.6.6-29.el6_2.2 +1
    • Red Hat Enterprise Linux Workstation Optional (v. 6) python-2.6.6-29.el6_2.2, python-test-2.6.6-29.el6_2.2, python-tools-2.6.6-29.el6_2.2

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 4AffectedNo fix planned: Will not fix
RHEL Desktop Workstation (v. 5 client)Fixed RHSA-2012:0745
Red Hat Enterprise Linux (v. 5 server)Fixed RHSA-2012:0745
Red Hat Enterprise Linux Desktop (v. 5 client)Fixed RHSA-2012:0745
Red Hat Enterprise Linux Desktop (v. 6)Fixed RHSA-2012:0744
Red Hat Enterprise Linux Desktop Optional (v. 6)Fixed RHSA-2012:0744
Red Hat Enterprise Linux HPC Node (v. 6)Fixed RHSA-2012:0744
Red Hat Enterprise Linux HPC Node Optional (v. 6)Fixed RHSA-2012:0744
Red Hat Enterprise Linux Server (v. 6)Fixed RHSA-2012:0744
Red Hat Enterprise Linux Server Optional (v. 6)Fixed RHSA-2012:0744
Red Hat Enterprise Linux Workstation (v. 6)Fixed RHSA-2012:0744
Red Hat Enterprise Linux Workstation Optional (v. 6)Fixed RHSA-2012:0744

Timeline

  1. 2026-10-02 Threatist record created from CVE-2011-4940
  2. 2026-10-03 Alias added: GHSA-cr6h-6cqx-mw3f

References

  • TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
  • TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
  • TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
  • TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
  • TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
  • TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
See all 139 →

Sources