CVE-2026-118753

FreeImage through 3.18.0 and danoli3 fork before 3.19.25 Heap Buffer Overflow via GIF_PLAYBACK Compositing

Published Oct 28, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

FreeImage through version 3.18.0 and the danoli3 fork before 3.19.25 contain a heap buffer overflow in PluginGIF.cpp that allows an attacker to write past the canvas allocation using unclipped GIF frame rectangles. When a GIF file is loaded with GIF_PLAYBACK, an attacker can craft a frame whose left offset plus width exceeds the logical screen width, causing GifPlaybackCompositeFrame() and GifPlaybackFillRect() to corrupt heap memory. This out-of-bounds write can lead to program state corruption or arbitrary code execution (CWE-787).

Affected Systems

The flaw affects the FreeImage library maintained by the FreeImage Project and the danoli3 fork. All releases prior to 3.19.25 are impacted; an attacker must be able to supply a crafted GIF to an application that uses FreeImage's GIF_PLAYBACK mode.

Risk and Exploitability

The CVSS base score of 8.5 indicates a high severity flaw that could allow an attacker to execute arbitrary code by corrupting heap memory. The EPSS score of less than 1% suggests that exploitation of this vulnerability is currently uncommon. The vulnerability is not listed in the CISA KEV catalog. To exploit it, an attacker would need to supply a specially crafted GIF file to an application that processes images via the GIF_PLAYBACK mode. Such a file might be introduced locally through user‑provided data or, potentially, delivered remotely if the application accepts images from untrusted network sources. The remote nature of the attack vector is inferred from the need to present a GIF file, but no explicit statement confirms remote delivery, so the exact vector remains uncertain.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to FreeImage 3.19.25 or later to eliminate the buffer overflow.
  • Reject or sanitize GIF files whose frame bounds exceed the logical screen dimensions before passing them to GIF_PLAYBACK mode.
  • If an upgrade cannot be performed immediately, run image‑processing code that uses FreeImage in a sandboxed or least‑privileged process to contain possible memory corruption.

Generated by OpenCVE AI on November 2, 2026 at 23:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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. 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.
Title FreeImage (danoli3 fork) before 3.19.25 Heap Buffer Overflow via GIF_PLAYBACK Compositing FreeImage through 3.18.0 and danoli3 fork before 3.19.25 Heap Buffer Overflow via GIF_PLAYBACK Compositing
References
Type Values Removed Values Added
First Time appeared Danoli3
Danoli3 freeimage
Vendors & Products Danoli3
Danoli3 freeimage
Type Values Removed Values Added
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.
Title FreeImage (danoli3 fork) before 3.19.25 Heap Buffer Overflow via GIF_PLAYBACK Compositing
First Time appeared Freeimage Project
Freeimage Project freeimage
Weaknesses CWE-787
CPEs cpe:2.3:a:freeimage_project:freeimage:*:*:*:*:*:*:*:*
Vendors & Products Freeimage Project
Freeimage Project freeimage
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 12:01 AM
Reserved
Oct 28, 2026, 7:13 PM
Status
Deferred
Published
Oct 28, 2026, 10:17 PM
Modified
Nov 3, 2026, 12:17 AM
Severity
Important
Public date
Oct 28, 2026, 9:11 PM