Description
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.
References9
- github.com/danoli3/FreeImage
- github.com/danoli3/FreeImage/blob/3.19.24/Source/FreeImage/Plug…
- github.com/danoli3/FreeImage/commit/0da5ddb4d311e5222251348cca1…
- github.com/danoli3/FreeImage/commit/96f4099f8e307484ba69b4aa14d…
- github.com/danoli3/FreeImage/pull/183
- github.com/danoli3/FreeImage/pull/244
- github.com/danoli3/FreeImage/releases/tag/3.19.25
- sourceforge.net/projects/freeimage/
- www.vulncheck.com/advisories/freeimage-danoli3-fork-before-3.19…
Metrics
- CVSS 3.1
-
7.8
HIGH
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 4.0
-
8.5
HIGH
Score source: CNA
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/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 - EPSS — exploit probability
- 0% percentile: 4 · as of 4 November 2026
- CWE
- CWE-787
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.