{"schemaVersion":4,"id":"CVE-2026-77118","aliases":["UBUNTU-CVE-2026-77118","DEBIAN-CVE-2026-77118"],"status":"published","duplicateOf":null,"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 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.","dates":{"published":"2026-08-20T12:42:42.952Z","modified":"2026-08-26T19:51:24.566Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.4,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.4,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.4,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":8.4,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.4,"severity":"high","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00131,"percentile":0.02859,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":-0.039999999999999994,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00171},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00131,"percentile":0.02859}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00131,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00131,"percentile":0.02859}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"graphicsmagick","name":"graphicsmagick","label":"graphicsmagick","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/graphicsmagick","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 1.4+really1.3.48-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.4+really1.3.48-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 1.4+really1.3.48-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"graphicsmagick","name":"graphicsmagick","label":"graphicsmagick","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/graphicsmagick","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"graphicsmagick","name":"graphicsmagick","label":"graphicsmagick","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.4+really1.3.48-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.4+really1.3.48-1","endInclusive":false}}],"versionsText":"< 1.4+really1.3.48-1","eol":null,"hubHref":"/vendor/debian/graphicsmagick"},{"vendor":"fedora project","product":"graphicsmagick","name":"GraphicsMagick","label":"graphicsmagick","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.3.48","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.3.48","endInclusive":false}}],"versionsText":"< 1.3.48","eol":null,"hubHref":"/vendor/fedora_project/graphicsmagick"},{"vendor":"graphicsmagick group","product":"graphicsmagick","name":"GraphicsMagick","label":"graphicsmagick","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.3.48","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.0.0","startInclusive":true,"end":"1.3.48","endInclusive":false}}],"versionsText":"≥ 1.0.0, < 1.3.48","eol":null,"hubHref":"/vendor/graphicsmagick_group/graphicsmagick"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96","label":"foss.heptapod.net/graphicsmagick/graphicsmagick/-/commit/937cdd9920bd96","hostname":"foss.heptapod.net","tags":["Patch"]},{"url":"https://foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog","label":"foss.heptapod.net/graphicsmagick/graphicsmagick/-/raw/GraphicsMagick-1_3_48/ChangeLog","hostname":"foss.heptapod.net","tags":["Release Notes"]},{"url":"https://ubuntu.com/security/CVE-2026-77118","label":"ubuntu.com/security/CVE-2026-77118","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-77118","label":"www.cve.org/CVERecord?id=CVE-2026-77118","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-77118","label":"security-tracker.debian.org/tracker/CVE-2026-77118","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-20T12:42:42.952Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-26T19:51:24.566Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.4, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,84],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00131,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-08-26T19:51:24.566Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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","version":"4.0","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2026-08-26T19:51:24.566Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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","version":"4.0"},{"type":"cvss","source":"osv_debian","date":"2026-08-26T19:51:24.566Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-08-26T19:51:24.566Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-08-26T19:42:13.414Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00131,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:18:47.561Z","stale":false,"partial":false}}