{"id":"CVE-2017-20286","details":"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.","modified":"2026-10-16T02:45:11.606452184Z","published":"2026-10-14T15:16:59.163Z","database_specific":{},"references":[{"type":"WEB","url":"https://github.com/DentonW/DevIL/blob/a2d9193fed0c7f93519c0c4c28b3348e0cb5759b/DevIL/src-IL/src/il_gif.cpp#L189-L226"},{"type":"WEB","url":"https://github.com/DentonW/DevIL/blob/a2d9193fed0c7f93519c0c4c28b3348e0cb5759b/DevIL/src-IL/src/il_gif.cpp#L314-L324"},{"type":"WEB","url":"https://hackmd.io/@haind-pwn/devil-gif-palette-reuse-heap-overflow"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/devil-through-1.8.0-heap-buffer-overflow-via-gif-igetpalette"},{"type":"REPORT","url":"https://github.com/DentonW/DevIL/issues/67"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dentonw/devil","events":[{"introduced":"0"},{"fixed":"a2d9193fed0c7f93519c0c4c28b3348e0cb5759b"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.8.0"}],"source":"DESCRIPTION"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-20286.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}