{"id":"CVE-2026-77118","aliases":["CVE-2026-77118"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds write in GraphicsMagick PCD decoder","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Existe una escritura fuera de límites en el heap en el decodificador de Photo CD (PCD) de GraphicsMagick. En DecodeImage() (coders/pcd.c), el bucle de delta de Huffman avanza su puntero de salida con q++ después de cada delta decodificado y nunca lo verifica contra el final de los búferes de plano de luma/croma asignados en el heap. El puntero se reposiciona solo cuando un marcador de sincronización introduce un nuevo plano/fila; entre marcadores de sincronización, la longitud de la ejecución está limitada únicamente por la entrada.\n\nUn archivo PCD manipulado que posiciona el puntero cerca del final de un plano y luego suministra una larga secuencia de deltas sin sincronización intermedia, por lo tanto, mueve el puntero más allá del final de la asignación y escribe a través de él. Procesar un archivo PCD no confiable - por ejemplo, con gm convert o gm identify, o a través de cualquier aplicación enlazada con libGraphicsMagick - puede corromper la memoria del heap más allá de los búferes.","source":"nvd"}],"published":"2026-08-20T12:42:42.952Z","modified":"2026-10-27T10:10:00.240Z","severity":{"scorer":"seal","scheme":"CVSS:4.0","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","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"seal","scheme":"CVSS:4.0","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","score":8.4,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"semver","introduced":"1.0.0","fixed":"1.3.48","status":"affected"}],"vendor":"GraphicsMagick Group","product":"GraphicsMagick","cpe":"cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*","repo":"https://foss.heptapod.net/graphicsmagick/graphicsmagick","platforms":["Linux","Windows","macOS"],"source":"cvelist"},{"ranges":[{"type":"deb","introduced":"0","fixed":"1.4+really1.3.48-1","status":"affected"}],"vendor":"Debian","product":"graphicsmagick","package":"graphicsmagick","cpe":"cpe:2.3:o:debian:debian_linux:11:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0","fixed":"1.3.48","status":"affected"}],"vendor":"Fedora Project","product":"GraphicsMagick","package":"GraphicsMagick","cpe":"cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*","source":"cvelist"}],"references":[{"url":"https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":["Cipher - Causal Security (https://causalsecurity.com/), who discovered the defect and reported it to the GraphicsMagick maintainer on 2026-06-14","Bob Friesenhahn, GraphicsMagick, for the upstream fix"],"assigner":"seal","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-26T19:42:13.414Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-77118","url":"https://www.cve.org/CVERecord?id=CVE-2026-77118","licence":"CVE Terms of Use","modified":"2026-08-26T19:51:24.566Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-77118","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77118","licence":"Public domain","modified":"2026-10-27T10:10:00.240Z"}],"updatedAt":"2026-11-25T22:59:34.626Z","epss":{"score":0.00131,"percentile":0.02896,"date":"2026-12-01T12:00:22.000Z"}}