Skip to content
OpenAdvisories
Unscored CVE-2013-7040 EUVD-2013-6840GHSA-cjvq-9vmj-3482

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 …

Published May 19, 2014 · Updated Aug 6, 2024 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 python2.7 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS python2.7 No fix yet —

References