CVE-2017-20286: DevIL through 1.8.0 Heap Buffer Overflow via GIF iGetPalette

Published Oct 14, 2026
·
Updated

DevIL through 1.8.0 contains a heap-based buffer overflow in iGetPalette() in ilgif.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.

Affected Software

1 affected component
DevIL DevIL<=1.8.0

Event History

Oct 14, 2026
CVE Published
via MITRE·02:16 PM
Data Sourced
via MITRE·02:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What conditions must a GIF meet to trigger the issue?

The GIF must be crafted with two frames. Its second frame must use disposal method 1 and include a local colour table.

2

How much memory can be overwritten, and is exploitation potentially severe?

The overflow can write up to 384 attacker-controlled bytes beyond the 768-byte palette heap allocation. The issue may allow code execution and affects confidentiality, integrity, and availability.

3

How can I determine whether a deployment is affected?

Check whether the application uses DevIL version 1.8.0 or earlier and loads GIF images. The vulnerable code path is the GIF palette handling in iGetPalette() in il_gif.cpp.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203