CVE-2013-7040
published 2014-05-19CVE-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 restricting the…
PriorityP420medium4.3CVSS 2.0
AVNACMAuNCNINAP
EPSS
3.26%
87.1th percentile
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.
Affected
35 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | mac_os_x | <= 10.10.4 | — |
| apple | os_x_yosemite_v10.10.5_and_security_update_2015-006 | — | — |
| debian | python2.7 | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
| python | python | — | — |
CVSS provenance
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv5.0MEDIUM
vendor_debian5.0LOW
vendor_redhat5.0MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
python: hash secret can be recovered remotely
vendor_redhat·2013-12-09·CVSS 5.0
CVE-2013-7040 [MEDIUM] python: hash secret can be recovered remotely
python: hash secret can be recovered remotely
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.
Statement: This issue affects the version of python as shipped with Red Hat Enterprise Linux 5 and 6. There are currently no plans to fix this issue. For more details please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1039915#c4
Package: python (Red Hat Enterprise Linux 5) - Will not fix
Packag
Debian
CVE-2013-7040: python2.7 - Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize h...
vendor_debian·2013·CVSS 5.0
CVE-2013-7040 [MEDIUM] CVE-2013-7040: python2.7 - Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize h...
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.
Scope: local
bullseye: open
Apple
CVE-2013-7040: OS X Yosemite v10.10.5 and Security Update 2015-006
vendor_apple·CVSS 4.3
CVE-2013-7040 [MEDIUM] CVE-2013-7040: OS X Yosemite v10.10.5 and Security Update 2015-006
Apple Security Update: About the security content of OS X Yosemite v10.10.5 and Security Update 2015-006
Product: OS X Yosemite v10.10.5 and Security Update 2015-006
CVE: CVE-2013-7040
Component: CVE-2013-7040
GHSA
GHSA-cjvq-9vmj-3482: Python 2
ghsa_unreviewed·2022-05-13·CVSS 5.0
CVE-2013-7040 [MEDIUM] GHSA-cjvq-9vmj-3482: Python 2
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.
OSV
CVE-2013-7040: Python 2
osv·2014-05-19·CVSS 5.0
CVE-2013-7040 [MEDIUM] CVE-2013-7040: Python 2
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2013-7040 python26: python: hash secret can be recovered remotely [epel-5]
bugzilla·2013-12-10·CVSS 4.3
CVE-2013-7040 [MEDIUM] CVE-2013-7040 python26: python: hash secret can be recovered remotely [epel-5]
CVE-2013-7040 python26: python: hash secret can be recovered remotely [epel-5]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora EPEL.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please use the bodhi submission link
noted in the next comment(s). This will include the bug IDs of this
tracking bug as well as the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
Bodhi notes field when available.
epel-5 tracking bug f
Bugzilla
CVE-2013-7040 python3: python: hash secret can be recovered remotely [fedora-all]
bugzilla·2013-12-10·CVSS 4.3
CVE-2013-7040 [MEDIUM] CVE-2013-7040 python3: python: hash secret can be recovered remotely [fedora-all]
CVE-2013-7040 python3: python: hash secret can be recovered remotely [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please use the bodhi submission link
noted in the next comment(s). This will include the bug IDs of this
tracking bug as well as the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
Bodhi notes field when available.
Please note: this issue
Bugzilla
CVE-2013-7040 python: hash secret can be recovered remotely
bugzilla·2013-12-10·CVSS 5.0
CVE-2013-7040 [MEDIUM] CVE-2013-7040 python: hash secret can be recovered remotely
CVE-2013-7040 python: hash secret can be recovered remotely
This is a followup to CVE-2012-1150 (hash table collision CPU usage DOS in CPython).
http://bugs.python.org/issue14621 points out that the hash secret in CPython can be recovered remotely, so while the original fix addressed the "blind DOS" problem (of being able to DOS any Python based service with a single prepared payload), it didn't completely eliminate the potential for remote DOS attacks based on hash collisions. (http://bugs.python.org/issue14621#msg173455 has the details)
Python 3.4+ will use SipHash by default (http://www.python.org/dev/peps/pep-0456), which should resolve the vulnerability completely.
References:
http://seclists.org/oss-sec/2013/q4/439
Discussion:
Created python tracking bugs for this issue:
Affec
Bugzilla
CVE-2013-7040 python: hash secret can be recovered remotely [fedora-all]
bugzilla·2013-12-10·CVSS 4.3
CVE-2013-7040 [MEDIUM] CVE-2013-7040 python: hash secret can be recovered remotely [fedora-all]
CVE-2013-7040 python: hash secret can be recovered remotely [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please use the bodhi submission link
noted in the next comment(s). This will include the bug IDs of this
tracking bug as well as the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
Bodhi notes field when available.
Please note: this issue affects
Bugzilla
CVE-2012-1150 python: hash table collisions CPU usage DoS (oCERT-2011-003)
bugzilla·2011-11-01·CVSS 5.0
CVE-2012-1150 [MEDIUM] CVE-2012-1150 python: hash table collisions CPU usage DoS (oCERT-2011-003)
CVE-2012-1150 python: hash table collisions CPU usage DoS (oCERT-2011-003)
Julian Wälde and Alexander Klink reported a flaw in the hash function used in the implementation of the Python dictionaries (associative arrays).
A specially-crafted set of keys could trigger hash function collisions, which degrade dictionary performance by changing hash table operations complexity from an expected/average O(1) to the worst case O(n). Reporters were able to find colliding strings efficiently using meet in the middle attack.
As various web application frameworks for Python automatically pre-fill certain dictionaries with data from the HTTP request (such as GET or POST parameters) for Python web application, a remote attacker could use this flaw to make Python interpreter use excessive amount of CP
http://bugs.python.org/issue14621http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.htmlhttp://www.openwall.com/lists/oss-security/2013/12/09/13http://www.openwall.com/lists/oss-security/2013/12/09/3http://www.securityfocus.com/bid/64194https://support.apple.com/kb/HT205031http://bugs.python.org/issue14621http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.htmlhttp://www.openwall.com/lists/oss-security/2013/12/09/13http://www.openwall.com/lists/oss-security/2013/12/09/3http://www.securityfocus.com/bid/64194https://support.apple.com/kb/HT205031
2014-05-19
Published