CVE-2017-20286
7.8 HIGHpublic exploit availablePublished 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
- https://github.com/DentonW/DevIL/blob/a2d9193fed0c7f93519c0c4c28b3348e0cb5759b/DevIL/src-IL/src/il_gif.cpp#L189-L226
- https://github.com/DentonW/DevIL/blob/a2d9193fed0c7f93519c0c4c28b3348e0cb5759b/DevIL/src-IL/src/il_gif.cpp#L314-L324
- https://github.com/DentonW/DevIL/issues/67
- https://hackmd.io/@haind-pwn/devil-gif-palette-reuse-heap-overflow
- https://www.vulncheck.com/advisories/devil-through-1.8.0-heap-buffer-overflow-via-gif-igetpalette
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.