{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-77118","id":"CVE-2026-77118","title":"Out-of-bounds write in GraphicsMagick PCD decoder","description":"A heap out-of-bounds write exists in the Photo CD (PCD) decoder of GraphicsMagick. In DecodeImage() (coders/pcd.c), the Huffman delta loop advances its output pointer with q++ after every decoded delta and never checks it against the end of the heap-allocated luma/chroma plane buffers. The pointer is repositioned only when a sync marker introduces a new plane/row; between sync markers the run leng","descriptionLong":"A heap out-of-bounds write exists in the Photo CD (PCD) decoder of GraphicsMagick. In DecodeImage() (coders/pcd.c), the Huffman delta loop advances its output pointer with q++ after every decoded delta and never checks it against the end of the heap-allocated luma/chroma plane buffers. The pointer is repositioned only when a sync marker introduces a new plane/row; between sync markers the run length is bounded solely by the input.\n\n\n\nA crafted PCD file that positions the pointer near the end of a plane and then supplies a long run of deltas with no intervening sync therefore walks the pointer past the end of the allocation and writes through it. Processing an untrusted PCD file — for example with gm convert or gm identify, or through any application linked against libGraphicsMagick — can corrupt heap memory beyond the buffers.","published":"2026-08-20T12:42:42.952Z","updated":"2026-10-27T10:10:00.240Z","reserved":"2026-08-20T12:40:51.495Z","status":"Deferred","rejected":false,"assigner":"seal","metric":{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"seal"},"metrics":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"seal"},{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"22e2d327-25fe-45d7-9f0c-dcd23b7108df"}],"rating":"high","products":["GraphicsMagick Group GraphicsMagick","Debian graphicsmagick","Fedora Project GraphicsMagick"],"affectedProducts":[{"vendor":"GraphicsMagick Group","product":"GraphicsMagick","defaultStatus":"unaffected","versions":[{"status":"affected","version":"1.0.0","lessThan":"1.3.48","versionType":"semver"}],"platforms":["Linux","Windows","macOS"]},{"vendor":"Debian","product":"graphicsmagick","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThan":"1.4+really1.3.48-1","versionType":"deb"}],"platforms":[]},{"vendor":"Fedora Project","product":"GraphicsMagick","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThan":"1.3.48","versionType":"rpm"}],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":[],"references":[{"url":"https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96","tags":["patch"]},{"url":"https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog","tags":["release-notes"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00171,"epssPercentile":0.0666,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-77118","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77118","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-77118","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-77118","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}