Cryptographic issues in Python - CVE-2012-1150

 

Cryptographic issues in Python - CVE-2012-1150

Published: October 6, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU43428
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-1150
CWE-ID: CWE-310
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform service disruption.

Python before 2.6.8, 2.7.x before 2.7.3, 3.x before 3.1.5, and 3.2.x before 3.2.3 computes hash values without restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table.


Affected software

Python
Gentoo Linux
Amazon Linux AMI
Fedora
Ubuntu
python2.6-minimal (Ubuntu package)
python2.6 (Ubuntu package)
python2.7-minimal (Ubuntu package)
python2.7 (Ubuntu package)
python3.1 (Ubuntu package)
python3.1-minimal (Ubuntu package)
python3.2-minimal (Ubuntu package)
python3.2 (Ubuntu package)
python26
dev-lang/python

How to mitigate CVE-2012-1150

Install update from vendor's website.

python2.6-minimal (Ubuntu package) - addressed in versions 2.6.5-1ubuntu6.1, 2.6.6-6ubuntu7.1, 2.6.7-4ubuntu1.1
python2.6 (Ubuntu package) - addressed in versions 2.6.5-1ubuntu6.1, 2.6.6-6ubuntu7.1, 2.6.7-4ubuntu1.1
python2.7-minimal (Ubuntu package) - addressed in versions 2.7.1-5ubuntu2.2, 2.7.2-5ubuntu1.1
python2.7 (Ubuntu package) - addressed in versions 2.7.1-5ubuntu2.2, 2.7.2-5ubuntu1.1
python3.1 (Ubuntu package) - addressed in versions 3.1.2-0ubuntu3.2, 3.1.3-1ubuntu1.2
python3.1-minimal (Ubuntu package) - addressed in versions 3.1.2-0ubuntu3.2, 3.1.3-1ubuntu1.2
python3.2-minimal (Ubuntu package) - addressed in versions 3.2-1ubuntu1.2, 3.2.2-0ubuntu1.1, 3.2.3-0ubuntu3.2, 3.2.3-6ubuntu3.1
python3.2 (Ubuntu package) - addressed in versions 3.2-1ubuntu1.2, 3.2.2-0ubuntu1.1, 3.2.3-0ubuntu3.2, 3.2.3-6ubuntu3.1
python26 - update to 2.6.8-1.el5
dev-lang/python - update to 3.3.2-r1

External References

Related Security Bulletins