What’s Vulnerable › Vulnerabilities
CVE-2008-4864
- Severity: high (CVSS 7.5 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 21.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2008-11-01 · updated 2026-06-16
- Weakness: CWE-190
Description
Multiple integer overflows in imageop.c in the imageop module in Python 1.5.2 through 2.5.1 allow context-dependent attackers to break out of the Python VM and execute arbitrary code via large integer values in certain arguments to the crop function, leading to a buffer overflow, a different vulnerability than CVE-2007-4965 and CVE-2008-1679.
Affected products
- Python: from 1.5.2 before 2.4.6; from 2.5.0 before 2.5.3 — fixed in 2.4.6, 2.5.3
How to fix
Upgrade to a fixed version: Python 2.4.6, 2.5.3. Check the vendor advisory for mitigations.
References
- http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html
- http://scary.beasts.org/security/CESA-2008-008.html
- http://secunia.com/advisories/33937
- http://secunia.com/advisories/37471
- http://support.apple.com/kb/HT3438
- http://svn.python.org/view/python/trunk/Modules/imageop.c?rev=66689&view=diff&r1=66689&r2=66688&p1=python/trunk/Modules/imageop.c&p2=/python/trunk/Modules/imageop.c
- http://svn.python.org/view?rev=66689&view=rev
- http://www.openwall.com/lists/oss-security/2008/10/27/2
- http://www.openwall.com/lists/oss-security/2008/10/29/3
- http://www.securityfocus.com/archive/1/507985/100/0/threaded
- http://www.securityfocus.com/bid/31932
- http://www.securityfocus.com/bid/31976
Get alerted when CVE-2008-4864 or the next vulnerability affects your stack