Security mailing lists by PureSourceCode

CVE-2013-7040

MEDIUM 4.3CVSS 2.0

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.

Published
19 May 2014
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-310
Sources
NVDJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apple mac_os_x
cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*
<= 10.10.4
NVD python python
cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:*
= 2.7.1
NVD python python
cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:*
= 2.7.1
NVD python python
cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:*
= 2.7.2
NVD python python
cpe:2.3:a:python:python:2.7.3:*:*:*:*:*:*:*
= 2.7.3
NVD python python
cpe:2.3:a:python:python:2.7.4:*:*:*:*:*:*:*
= 2.7.4
NVD python python
cpe:2.3:a:python:python:2.7.5:*:*:*:*:*:*:*
= 2.7.5
NVD python python
cpe:2.3:a:python:python:2.7.6:*:*:*:*:*:*:*
= 2.7.6
NVD python python
cpe:2.3:a:python:python:2.7.7:*:*:*:*:*:*:*
= 2.7.7
NVD python python
cpe:2.3:a:python:python:2.7.1150:*:*:*:*:*:*:*
= 2.7.1150
NVD python python
cpe:2.3:a:python:python:2.7.2150:*:*:*:*:*:*:*
= 2.7.2150
NVD python python
cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:*
= 3.0
NVD python python
cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:*
= 3.0.1
NVD python python
cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:*
= 3.1
NVD python python
cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:*
= 3.1.1
NVD python python
cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:*
= 3.1.2
NVD python python
cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:*
= 3.1.3
NVD python python
cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:*
= 3.1.4
NVD python python
cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:*
= 3.1.5
NVD python python
cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:*
= 3.2
NVD python python
cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:*
= 3.2
NVD python python
cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:*
= 3.2.0
NVD python python
cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:*
= 3.2.1
NVD python python
cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:*
= 3.2.2
NVD python python
cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:*
= 3.2.3
NVD python python
cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:*
= 3.2.4
NVD python python
cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:*
= 3.2.5
NVD python python
cpe:2.3:a:python:python:3.2.2150:*:*:*:*:*:*:*
= 3.2.2150
NVD python python
cpe:2.3:a:python:python:3.3:*:*:*:*:*:*:*
= 3.3
NVD python python
cpe:2.3:a:python:python:3.3:beta2:*:*:*:*:*:*
= 3.3
NVD python python
cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:*
= 3.3.0
NVD python python
cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:*
= 3.3.1
NVD python python
cpe:2.3:a:python:python:3.3.1:rc1:*:*:*:*:*:*
= 3.3.1
NVD python python
cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:*
= 3.3.2
NVD python python
cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:*
= 3.3.3
NVD python python
cpe:2.3:a:python:python:3.3.3:rc1:*:*:*:*:*:*
= 3.3.3
NVD python python
cpe:2.3:a:python:python:3.3.3:rc2:*:*:*:*:*:*
= 3.3.3
NVD python python
cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:*
= 3.3.4
NVD python python
cpe:2.3:a:python:python:3.3.4:rc1:*:*:*:*:*:*
= 3.3.4
NVD python python
cpe:2.3:a:python:python:3.3.5:-:*:*:*:*:*:*
= 3.3.5
NVD python python
cpe:2.3:a:python:python:3.3.5:rc1:*:*:*:*:*:*
= 3.3.5
NVD python python
cpe:2.3:a:python:python:3.3.5:rc2:*:*:*:*:*:*
= 3.3.5

References

History

  • 25 Nov 2026 20:18 UTC · NVD: first stored (published 19 May 2014)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.