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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118753.json"
}{
"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"
},
{
"original_tag": "3.19.25",
"range": [
{
"fixed": "363311f106e3fa50e9c39fcc80afe832cb26eabb"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118753.json"
[
{
"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",
"source": "https://github.com/danoli3/freeimage/commit/0da5ddb4d311e5222251348cca1aa988478b1034",
"target": {
"file": "Source/FreeImage/PluginGIF.cpp"
}
},
{
"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",
"target": {
"file": "Source/FreeImage/PluginGIF.cpp",
"function": "GifPlaybackCompositeFrame"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "183547964164458000599369871257881356470",
"length": 384
},
"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"
}
}
]
"2026-11-04T07:03:28Z"