{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.8.0"
              }
            ],
            "source": "DESCRIPTION"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "a2d9193fed0c7f93519c0c4c28b3348e0cb5759b"
            }
          ],
          "repo": "https://github.com/dentonw/devil",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "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.",
  "id": "CVE-2017-20286",
  "modified": "2026-10-16T02:31:15.611877458Z",
  "published": "2026-10-14T15:16:59.163Z",
  "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"
    }
  ],
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ]
}