CVE-2017-20286

DevIL through 1.8.0 Heap Buffer Overflow via GIF iGetPalette

Published Oct 14, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
DevIL through 1.8.0 contains a heap-based buffer overflow in iGetPalette() in il_gif.cpp that allows attackers to write beyond a 768-byte palette buffer when loading GIF images. Attackers can supply a crafted two-frame GIF whose second frame uses disposal method 1 with a local colour table, writing up to 384 controlled bytes past the heap allocation and possibly executing code.

Analysis

AI-generated

Technical impact

The DevIL image library (version 1.8.0 and earlier) contains a heap-based buffer overflow in the iGetPalette() routine used to process GIF files. The overflow occurs when loading GIF images that include a second frame with disposal method 1 and a local colour table. The library allocates only a 768‑byte palette buffer but can write up to 384 bytes past this allocation, enabling an attacker to place arbitrary data and potentially execute malicious code.

Affected Systems

Affected systems are any installations that use DevIL libraries prior to 1.8.1, specifically the DevIL community edition through version 1.8.0. Applications that embed DevIL for GIF loading, such as image editors, game engines, or web servers that decode user‑supplied GIFs, are within scope. No specific customer products are listed beyond the generic DevIL library.

Risk and Exploitability

The severity of the flaw is high with a CVSS score of 8.5. EPSS Score is < 1% and it is not catalogued in the CISA KEV list. Attackers can exploit it by supplying a specially crafted GIF file to any application that loads GIF images through DevIL; the overflow may lead to code execution or denial of service. Because the heap buffer is overwritten directly, exploitation does not require administrative privileges, but the attacker must have the ability to supply a malicious GIF to the target application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the DevIL library to a version newer than 1.8.0 that includes the fixed buffer overflow patch (e.g., 1.8.1 or later).
  • If an update is not immediately possible, disable GIF import in the application or refuse to process unknown GIF files.
  • Harden the application by validating the size of incoming GIF files and running the image decoder in a sandboxed or memory‑safe environment.

Generated by OpenCVE AI on October 15, 2026 at 21:19 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 DevIL through 1.8.0 contains a heap-based buffer overflow in iGetPalette() in il_gif.cpp that allows attackers to write beyond a 768-byte palette buffer when loading GIF images. Attackers can supply a crafted two-frame GIF whose second frame uses disposal method 1 with a local colour table, writing up to 384 controlled bytes past the heap allocation and possibly executing code.
Title DevIL through 1.8.0 Heap Buffer Overflow via GIF iGetPalette
Weaknesses CWE-787
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'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 14, 2026, 3:55 PM
Reserved
Oct 14, 2026, 1:07 PM
Status
Deferred
Published
Oct 14, 2026, 3:16 PM
Modified
Oct 16, 2026, 7:18 PM
Severity
Important
Public date
Oct 14, 2026, 2:16 PM