Vulnerability Name:

CVE-2013-7040 (CCN-89636)

Assigned:2013-12-09
Published:2013-12-09
Updated:2019-10-25
Summary:Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash values, which causes it to compute hash values without restricting the ability to trigger hash collisions predictably and makes it easier for context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table.
Note: this vulnerability exists because of an incomplete fix for CVE-2012-1150.
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:L/I:N/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): Low
Integrity (I): None
Availibility (A): None
CVSS v2 Severity:4.3 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P)
3.2 Low (Temporal CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:N/A:P/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
5.0 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N)
3.7 Low (CCN Temporal CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N/E:U/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
Vulnerability Type:CWE-310
Vulnerability Consequences:Obtain Information
References:Source: CONFIRM
Type: UNKNOWN
http://bugs.python.org/issue14621

Source: MITRE
Type: CNA
CVE-2013-7040

Source: APPLE
Type: UNKNOWN
APPLE-SA-2015-08-13-2

Source: CCN
Type: oss-sec Mailing List, Mon, 9 Dec 2013 18:41:26 -0500 (EST)
Re: CPython hash secret can be recoved remotely

Source: CCN
Type: SA55955
Python Hash Collision Denial of Service Vulnerability

Source: MLIST
Type: UNKNOWN
[oss-security] 20131209 Re: CPython hash secret can be recoved remotely

Source: MLIST
Type: UNKNOWN
[oss-security] 20131209 CPython hash secret can be recoved remotely

Source: CCN
Type: Python Web site
Python Programming Language – Official Website

Source: BID
Type: UNKNOWN
64194

Source: CCN
Type: BID-64194
Python CVE-2013-7040 Information Disclosure Weakness

Source: XF
Type: UNKNOWN
python-cve20137040-info-disc(89636)

Source: CONFIRM
Type: Vendor Advisory
https://support.apple.com/kb/HT205031

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2013-7040

Vulnerable Configuration:Configuration 1:
  • cpe:/o:apple:mac_os_x:*:*:*:*:*:*:*:* (Version <= 10.10.4)

  • Configuration 2:
  • cpe:/a:python:python:2.7.1:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.1:rc1:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.2:rc1:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.3:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.4:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.5:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.6:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.7:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.1150:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:2.7.2150:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.0:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.0.1:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.1:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.1.1:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.1.2:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.1.3:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.1.4:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.1.5:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2:alpha:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2.0:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2.1:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2.2:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2.3:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2.4:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2.5:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.2.2150:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3:beta2:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.0:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.1:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.1:rc1:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.2:*:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.3:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.3:rc1:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.3:rc2:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.4:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.4:rc1:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.5:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.5:rc1:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3.5:rc2:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:python:python:2.7.2:-:*:*:*:*:*:*
  • OR cpe:/a:python:python:3.3:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.ubuntu.precise:def:20137040000
    V
    CVE-2013-7040 on Ubuntu 12.04 LTS (precise) - low.
    2014-05-19
    oval:com.ubuntu.trusty:def:20137040000
    V
    CVE-2013-7040 on Ubuntu 14.04 LTS (trusty) - low.
    2014-05-19
    BACK
    apple mac os x *
    python python 2.7.1
    python python 2.7.1 rc1
    python python 2.7.2 rc1
    python python 2.7.3
    python python 2.7.4
    python python 2.7.5
    python python 2.7.6
    python python 2.7.7
    python python 2.7.1150
    python python 2.7.2150
    python python 3.0
    python python 3.0.1
    python python 3.1
    python python 3.1.1
    python python 3.1.2
    python python 3.1.3
    python python 3.1.4
    python python 3.1.5
    python python 3.2
    python python 3.2 alpha
    python python 3.2.0
    python python 3.2.1
    python python 3.2.2
    python python 3.2.3
    python python 3.2.4
    python python 3.2.5
    python python 3.2.2150
    python python 3.3
    python python 3.3 beta2
    python python 3.3.0
    python python 3.3.1
    python python 3.3.1 rc1
    python python 3.3.2
    python python 3.3.3
    python python 3.3.3 rc1
    python python 3.3.3 rc2
    python python 3.3.4
    python python 3.3.4 rc1
    python python 3.3.5 -
    python python 3.3.5 rc1
    python python 3.3.5 rc2
    python python 2.7.2
    python python 3.3