{"id":"CVE-2026-118753","summary":"FreeImage through 3.18.0 and danoli3 fork before 3.19.25 Heap Buffer Overflow via GIF_PLAYBACK Compositing","details":"FreeImage through 3.18.0 and the danoli3 FreeImage fork before 3.19.25 contain a heap buffer overflow vulnerability in PluginGIF.cpp that allows attackers to write past the canvas allocation via unclipped GIF frame rectangles. Attackers can craft a GIF whose frame left plus width exceeds the logical screen width, causing GifPlaybackCompositeFrame() and GifPlaybackFillRect() to corrupt heap memory when loaded with GIF_PLAYBACK.","modified":"2026-11-04T07:03:28.287518979Z","published":"2026-10-28T21:11:22.192Z","database_specific":{"cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118753.json","cna_assigner":"VulnCheck"},"references":[{"type":"WEB","url":"https://github.com"},{"type":"WEB","url":"https://sourceforge.net/projects/freeimage/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118753.json"},{"type":"ADVISORY","url":"https://github.com/danoli3/FreeImage/pull/244"},{"type":"ADVISORY","url":"https://github.com/danoli3/FreeImage/releases/tag/3.19.25"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118753"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/freeimage-danoli3-fork-before-3.19.25-heap-buffer-overflow-via-gif-playback-compositing"},{"type":"FIX","url":"https://github.com/danoli3/FreeImage/commit/0da5ddb4d311e5222251348cca1aa988478b1034"},{"type":"FIX","url":"https://github.com/danoli3/FreeImage/commit/96f4099f8e307484ba69b4aa14d772b7679a1bfb"},{"type":"FIX","url":"https://github.com/danoli3/FreeImage/pull/183"},{"type":"PACKAGE","url":"https://github.com/danoli3/FreeImage"},{"type":"ARTICLE","url":"https://github.com/danoli3/FreeImage/blob/3.19.24/Source/FreeImage/PluginGIF.cpp#L719-L772"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/danoli3/freeimage","events":[{"introduced":"0"},{"fixed":"363311f106e3fa50e9c39fcc80afe832cb26eabb"},{"fixed":"96f4099f8e307484ba69b4aa14d772b7679a1bfb"},{"fixed":"0da5ddb4d311e5222251348cca1aa988478b1034"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"3.19.25"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"introduced":"0"},{"last_affected":"3.18.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"96f4099f8e307484ba69b4aa14d772b7679a1bfb"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"0da5ddb4d311e5222251348cca1aa988478b1034"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"363311f106e3fa50e9c39fcc80afe832cb26eabb"}],"source":"REFERENCES_TAG","original_tag":"3.19.25"}]}}],"versions":["3.19.24","3.19.23","3.19.22","3.19.21","3.19.20","3.19.19","3.19.18","3.19.17","3.19.16","3.19.15","3.19.14","3.19.13","3.19.12","3.19.11","3.19.10","3.19.9","3.19.8","3.19.7","3.19.6","3.19.5","3.19.4","3.19.3","3.19.2","3.18.10","3.18.9","3.18.8","3.18.7","3.18.6","3.18.5","3.18.4","3.18.3","3.18.2","3.18.1","3.18.0","3.16.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118753.json","vanir_signatures":[{"source":"https://github.com/danoli3/freeimage/commit/0da5ddb4d311e5222251348cca1aa988478b1034","target":{"file":"Source/FreeImage/PluginGIF.cpp"},"deprecated":false,"digest":{"line_hashes":["146333501335421912475260845716574136717","186333562281695244734638973011091489532","151661717891929185089563229613709857903","187725385074329225773461273224014085596","191505331311651519844330723530023798958","123536758257128047975965464010158402011","212224543797814663275570326733041206361","315387729469493638641093491051848187058","204780269776684533662565692781429762121","5575175624569679423637139656121989282","155036868518376280670992180008620186154","209434245028965768721684243093086196749","5281914285718185822325474086649649642","165181407323344453395066399972593707711","325703416437997220910907994269327320189","3011943822290812929380561553496972223","159781748880996003483561499795937949003","185873495496665356941065257403806705996","212224543797814663275570326733041206361","315387729469493638641093491051848187058","204780269776684533662565692781429762121","304611225178061961755345649526733502815","280315375458353162648575971118983446652","145246933925574805257742864750530420231","66721788897926403438420187918049483093"],"threshold":0.9},"id":"CVE-2026-118753-1f7f4bf9","signature_type":"Line","signature_version":"v1"},{"target":{"file":"Source/FreeImage/PluginGIF.cpp","function":"GifPlaybackCompositeFrame"},"deprecated":false,"digest":{"function_hash":"33004813953665685836625483515955569008","length":971},"id":"CVE-2026-118753-38c94b98","signature_type":"Function","signature_version":"v1","source":"https://github.com/danoli3/freeimage/commit/0da5ddb4d311e5222251348cca1aa988478b1034"},{"digest":{"length":384,"function_hash":"183547964164458000599369871257881356470"},"id":"CVE-2026-118753-97936999","signature_type":"Function","signature_version":"v1","source":"https://github.com/danoli3/freeimage/commit/0da5ddb4d311e5222251348cca1aa988478b1034","target":{"file":"Source/FreeImage/PluginGIF.cpp","function":"GifPlaybackFillRect"},"deprecated":false}],"vanir_signatures_modified":"2026-11-04T07:03:28Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}