CVE-2013-7040

Summary

CVECVE-2013-7040
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2014-05-19 14:55:09 UTC
Updated2026-05-06 22:30:45 UTC
DescriptionPython 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.

Risk And Classification

Primary CVSS: v2.0 4.3 from [email protected]

AV:N/AC:M/Au:N/C:N/I:N/A:P

Problem Types: CWE-310 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
None
Integrity
None
Availability
Partial

AV:N/AC:M/Au:N/C:N/I:N/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Apple Mac Os X All All All All
Application Python Python 2.7.1 All All All
Application Python Python 2.7.1 rc1 All All
Application Python Python 2.7.1150 All All All
Application Python Python 2.7.2 rc1 All All
Application Python Python 2.7.2150 All All All
Application Python Python 2.7.3 All All All
Application Python Python 2.7.4 All All All
Application Python Python 2.7.5 All All All
Application Python Python 2.7.6 All All All
Application Python Python 2.7.7 All All All
Application Python Python 3.0 All All All
Application Python Python 3.0.1 All All All
Application Python Python 3.1 All All All
Application Python Python 3.1.1 All All All
Application Python Python 3.1.2 All All All
Application Python Python 3.1.3 All All All
Application Python Python 3.1.4 All All All
Application Python Python 3.1.5 All All All
Application Python Python 3.2 All All All
Application Python Python 3.2 alpha All All
Application Python Python 3.2.0 All All All
Application Python Python 3.2.1 All All All
Application Python Python 3.2.2 All All All
Application Python Python 3.2.2150 All All All
Application Python Python 3.2.3 All All All
Application Python Python 3.2.4 All All All
Application Python Python 3.2.5 All All All
Application Python Python 3.3 All All All
Application Python Python 3.3 beta2 All All
Application Python Python 3.3.0 All All All
Application Python Python 3.3.1 All All All
Application Python Python 3.3.1 rc1 All All
Application Python Python 3.3.2 All All All
Application Python Python 3.3.3 All All All
Application Python Python 3.3.3 rc1 All All
Application Python Python 3.3.3 rc2 All All
Application Python Python 3.3.4 All All All
Application Python Python 3.3.4 rc1 All All
Application Python Python 3.3.5 - All All
Application Python Python 3.3.5 rc1 All All
Application Python Python 3.3.5 rc2 All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
oss-security - CPython hash secret can be recoved remotely af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
APPLE-SA-2015-08-13-2 OS X Yosemite v10.10.5 and Security Update 2015-006 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com
About the security content of OS X Yosemite v10.10.5 and Security Update 2015-006 - Apple Support af854a3a-2127-422b-91ae-364da2661108 support.apple.com Vendor Advisory
oss-security - Re: CPython hash secret can be recoved remotely af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
Python CVE-2013-7040 Information Disclosure Weakness af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
Issue 14621: Hash function is not randomized properly - Python tracker af854a3a-2127-422b-91ae-364da2661108 bugs.python.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report