CVE-2017-20286 DevIL through 1.8.0 Heap Buffer Overflow via GIF iGetPalette
Attackers can execute arbitrary code by supplying a crafted GIF image to applications using the DevIL library, due to a heap buffer overflow.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2017-20286?
CVE-2017-20286 is a high-severity memory corruption vulnerability in DentonW DevIL, published on 14 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2017-20286?
How do I fix CVE-2017-20286?
No fix has been published for CVE-2017-20286 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2017-20286 being exploited?
There is no known exploitation of CVE-2017-20286 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2017-20286, GHSA-5rw7-933r-f38v, UBUNTU-CVE-2017-20286.