Description
FreeImage (danoli3 fork) before 3.19.25 contains 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.
Severity (CVSS)
| Base score | 8.5 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-787 — Out-of-bounds Write
Affected products
| Vendor | Product | Versions |
|---|---|---|
| danoli3 | FreeImage | 0 to <3.19.25 [affected]; 3.19.25 [unaffected] |
| FreeImage | FreeImage | 0 to <=3.18.0 [affected] |
References
- https://github.com/danoli3/FreeImage/pull/183 (issue-tracking patch)
- https://github.com/danoli3/FreeImage/commit/96f4099f8e307484ba69b4aa14d772b7679a1bfb (patch)
- https://github.com/danoli3/FreeImage (product)
- https://github.com/danoli3/FreeImage/blob/3.19.24/Source/FreeImage/PluginGIF.cpp#L719-L772 (technical-description)
- https://github.com/danoli3/FreeImage/commit/0da5ddb4d311e5222251348cca1aa988478b1034 (patch)
- https://github.com/danoli3/FreeImage/releases/tag/3.19.25 (release-notes)
- https://www.vulncheck.com/advisories/freeimage-danoli3-fork-before-3.19.25-heap-buffer-overflow-via-gif-playback-compositing (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 29 Oct 2026 07:02 UTC.