Back
CVE-2013-7040
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…
Medium4.3EPSS 3.1%
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
- EPSS (exploitation in 30 days)
- 3.1% · top 12% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.3.
Weakness
Affected products
n/a
- affected n/a
References (6)
- 64194 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- [oss-security] 20131209 Re: CPython hash secret can be recoved remotely (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20131209 CPython hash secret can be recoved remotely (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- APPLE-SA-2015-08-13-2 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- http://bugs.python.org/issue14621 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://support.apple.com/kb/HT205031 (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2013-7040)Record last updated .