CVE-2017-20286DevIL through 1.8.0 Heap Buffer Overflow via GIF iGetPalette
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | devil | Fix pending | UBUNTU-CVE-2017-20286 | |
| Ubuntu 26.04 | devil | Under investigation | UBUNTU-CVE-2017-20286 | |
| Ubuntu 24.04 | devil | Under investigation | UBUNTU-CVE-2017-20286 | |
| Ubuntu 22.04 | devil | Under investigation | UBUNTU-CVE-2017-20286 | |
| Ubuntu 20.04 | devil | Fix pending | UBUNTU-CVE-2017-20286 | |
| Ubuntu 18.04 | devil | Fix pending | UBUNTU-CVE-2017-20286 | |
| Ubuntu 16.04 | devil | Fix pending | UBUNTU-CVE-2017-20286 | |
| Debian 14 | devil | Fix pending | DEBIAN-CVE-2017-20286 | |
| Debian 13 | devil | Fix pending | DEBIAN-CVE-2017-20286 | |
| Debian 12 | devil | Fix pending | DEBIAN-CVE-2017-20286 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- DentonW DevIL: affected: up to 1.8.0
References
- https://github.com/DentonW/DevIL/issues/67
- https://hackmd.io/@haind-pwn/devil-gif-palette-reuse-heap-overflow
- 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://www.vulncheck.com/advisories/devil-through-1.8.0-heap-buffer-overflow-via-gif-igetpalette
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.