Integer overflow in Python - CVE-2008-4864

 

Integer overflow in Python - CVE-2008-4864

Published: July 5, 2022 / Updated: June 4, 2025


Vulnerability identifier: #VU110158
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2008-4864
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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 software

Python

How to mitigate CVE-2008-4864

Install update from vendor's website.


Links to Public Exploits and PoC-codes

External References

Related Security Bulletins