Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-20286
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 03:38 UTC · Revision 1
Source evidence
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.
osv:CVE-2017-20286
Complete source record
{
"id": "593397341fc8981702234f50f6b41181ad69470e407b8cee034f4296ff9d56cd",
"url": "https://osv.dev/vulnerability/CVE-2017-20286",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-20286",
"summary": "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.",
"evidence": "osv:CVE-2017-20286",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2017-20286",
"aliases": [
"CVE-2017-20286"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/dentonw/devil",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "a2d9193fed0c7f93519c0c4c28b3348e0cb5759b"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.8.0"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v1.8.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-20286.json"
}
}
],
"modified": "2026-10-24T02:30:41.010243003Z",
"provider": "osv",
"references": [
"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://hackmd.io/@haind-pwn/devil-gif-palette-reuse-heap-overflow",
"https://www.vulncheck.com/advisories/devil-through-1.8.0-heap-buffer-overflow-via-gif-igetpalette",
"https://github.com/DentonW/DevIL/issues/67"
],
"provider_metadata": {
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"last_affected": "384"
}
],
"source": "DESCRIPTION"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2017-20286",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 428154,
"published_at": "2026-10-14T15:16:59.163+00:00"
}