CVE-2017-20286 Details
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.
A heap-based buffer overflow vulnerability has been identified in DevIL versions through 1.8.0, specifically within the GIF image loading functionality. The issue arises in the 'iGetPalette' function of 'il_gif.cpp', where the library allocates a fixed 768-byte buffer for color palettes. When processing certain GIF images, attackers can exploit this by crafting a two-frame GIF that causes the second frame to write beyond the allocated buffer, potentially leading to arbitrary code execution. This vulnerability is triggered when the second frame uses a local color table and a specific disposal method, allowing attackers to control the overflow by up to 384 bytes.
Users can update to a patched version of DevIL where this vulnerability has been addressed. The specific fix involves correcting the palette size handling to prevent out-of-bounds writes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 14, 2026CISA-ADP
Assessed Oct 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| DevIL | <= 1.8.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 14, 2026 | CVE Modified | CISA-ADP |
| Oct 14, 2026 | New CVE Received | [email protected] |
Volerion