← Back to search

CVE-2017-20286

7.8 HIGHpublic exploit available

Published 2026-10-14 · Updated 2026-10-16

AI risk analysis

Summary
DevIL through 1.8.0 has a heap-based buffer overflow in iGetPalette() when parsing GIF images: a crafted two-frame GIF with disposal method 1 and a local colour table triggers writing up to 384 bytes past a 768-byte palette buffer, potentially enabling arbitrary code execution.
Exploitability
Exploitation requires user interaction (e.g., opening a malicious GIF file) and local access, but is otherwise straightforward due to the predictable heap layout and lack of modern mitigations in older builds.
Blast radius
Successful exploitation could lead to full system compromise on affected systems via code execution in the context of the vulnerable application.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to DevIL 1.8.1 or later, which contains a patch for this heap overflow.
heap-overflowgif-parserrcelocal-exploit

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

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

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-787

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.