Cryptographic issues in Python - CVE-2012-1150
Published: October 6, 2012 / Updated: August 11, 2020
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
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
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
- http://bugs.python.org/issue13703
- http://lists.apple.com/archives/security-announce/2013/Oct/msg00004.html
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
- http://mail.python.org/pipermail/python-dev/2011-December/115116.html
- http://mail.python.org/pipermail/python-dev/2012-January/115892.html
- http://python.org/download/releases/2.6.8/
- http://python.org/download/releases/2.7.3/
- http://python.org/download/releases/3.1.5/
- http://python.org/download/releases/3.2.3/
- http://secunia.com/advisories/50858
- http://secunia.com/advisories/51087
- http://secunia.com/advisories/51089
- http://www.openwall.com/lists/oss-security/2012/03/10/3
- http://www.ubuntu.com/usn/USN-1592-1
- http://www.ubuntu.com/usn/USN-1596-1
- http://www.ubuntu.com/usn/USN-1615-1
- http://www.ubuntu.com/usn/USN-1616-1
- https://bugzilla.redhat.com/show_bug.cgi?id=750555