Vulnerability Name:

CVE-2011-4940 (CCN-76525)

Assigned:2011-03-08
Published:2011-03-08
Updated:2023-02-13
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.
CVSS v3 Severity:5.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): Low
Availibility (A): None
CVSS v2 Severity:2.6 Low (CVSS v2 Vector: AV:N/AC:H/Au:N/C:N/I:P/A:N)
2.2 Low (Temporal CVSS v2 Vector: AV:N/AC:H/Au:N/C:N/I:P/A:N/E:H/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
4.3 Medium (CCN CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N)
3.7 Low (CCN Temporal CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N/E:H/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
2.6 Low (REDHAT CVSS v2 Vector: AV:N/AC:H/Au:N/C:N/I:P/A:N)
2.2 Low (REDHAT Temporal CVSS v2 Vector: AV:N/AC:H/Au:N/C:N/I:P/A:N/E:H/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): High
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): None
Vulnerability Type:CWE-79
Vulnerability Consequences:Gain Access
References:Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: MITRE
Type: CNA
CVE-2011-4940

Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: CCN
Type: RHSA-2012-0744
Moderate: python security update

Source: CCN
Type: RHSA-2012-0745
Moderate: python security update

Source: CCN
Type: SA51263
VMware ESXi vSphere API Denial of Service Vulnerability

Source: CCN
Type: SA51317
VMware ESX Server Multiple Vulnerabilities

Source: CCN
Type: OSVDB ID: 83057
Python SimpleHTTPServer Module Crafted Filename Upload Directory Listing XSS

Source: CCN
Type: BID-54083
Python SimpleHTTPServer 'list_directory()' Function Cross Site Scripting Vulnerability

Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: CCN
Type: VMSA-2012-0016
VMware security updates for vSphere API and ESX Service Console

Source: CCN
Type: Red Hat Bugzilla Bug 803500
CVE-2011-4940 python: potential XSS in SimpleHTTPServer's list_directory()

Source: secalert@redhat.com
Type: UNKNOWN
secalert@redhat.com

Source: XF
Type: UNKNOWN
python-simplehttpserver-xss(76525)

Source: CCN
Type: IBM Security Bulletin 1170316 (Cloud Pak System)
Python 2.6.4 vulnerabilities in AIX OS images for IBM Cloud Pak System

Vulnerable Configuration:Configuration RedHat 1:
  • cpe:/o:redhat:enterprise_linux:6:*:*:*:*:*:*:*
  • Configuration RedHat 2:
  • cpe:/o:redhat:enterprise_linux:6::client:*:*:*:*:*
  • Configuration RedHat 3:
  • cpe:/o:redhat:enterprise_linux:6::computenode:*:*:*:*:*
  • Configuration RedHat 4:
  • cpe:/o:redhat:enterprise_linux:6::server:*:*:*:*:*
  • Configuration RedHat 5:
  • cpe:/o:redhat:enterprise_linux:6::workstation:*:*:*:*:*
  • Configuration RedHat 6:
  • cpe:/o:redhat:enterprise_linux:5:*:*:*:*:*:*:*
  • Configuration RedHat 7:
  • cpe:/o:redhat:enterprise_linux:5::client:*:*:*:*:*
  • Configuration RedHat 8:
  • cpe:/o:redhat:enterprise_linux:5::client_workstation:*:*:*:*:*
  • Configuration RedHat 9:
  • cpe:/o:redhat:enterprise_linux:5::server:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:python:python:2.6.0:*:*:*:*:*:*:*
  • AND
  • cpe:/o:redhat:enterprise_linux:5:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:5:*:client_workstation:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:5:*:client:*:*:*:*:*
  • OR cpe:/a:vmware:esx_server:4.0:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:6:*:server:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:6:*:workstation:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux_desktop:6:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux_hpc_node:6:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:cloud_pak_system:2.3:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:cloud_pak_system:2.3.0.1:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.mitre.oval:def:18043
    P
    USN-1596-1 -- python2.6 vulnerabilities
    2014-07-07
    oval:org.mitre.oval:def:17976
    P
    USN-1592-1 -- python2.7 vulnerabilities
    2014-06-30
    oval:org.mitre.oval:def:18020
    P
    USN-1613-2 -- python2.4 vulnerabilities
    2014-06-30
    oval:org.mitre.oval:def:17830
    P
    USN-1613-1 -- python2.5 vulnerabilities
    2014-06-30
    oval:org.mitre.oval:def:23753
    P
    ELSA-2012:0744: python security update (Moderate)
    2014-05-26
    oval:org.mitre.oval:def:23066
    P
    ELSA-2012:0745: python security update (Moderate)
    2014-05-26
    oval:org.mitre.oval:def:21287
    P
    RHSA-2012:0745: python security update (Moderate)
    2014-02-24
    oval:org.mitre.oval:def:21389
    P
    RHSA-2012:0744: python security update (Moderate)
    2014-02-24
    oval:org.mitre.oval:def:20623
    V
    VMware security updates for vSphere API and ESX Service Console
    2014-01-20
    oval:com.ubuntu.precise:def:20114940000
    V
    CVE-2011-4940 on Ubuntu 12.04 LTS (precise) - medium.
    2012-06-27
    oval:com.redhat.rhsa:def:20120744
    P
    RHSA-2012:0744: python security update (Moderate)
    2012-06-18
    oval:com.redhat.rhsa:def:20120745
    P
    RHSA-2012:0745: python security update (Moderate)
    2012-06-18
    BACK
    python python 2.6
    redhat enterprise linux 5
    redhat enterprise linux 5
    redhat enterprise linux 5
    vmware esx server 4.0
    redhat enterprise linux 6
    redhat enterprise linux 6
    redhat enterprise linux desktop 6
    redhat enterprise linux hpc node 6
    ibm cloud pak system 2.3
    ibm cloud pak system 2.3.0.1