CVE-2018-11575
Description
ngiflib.c in MiniUPnP ngiflib 0.4 has a stack-based buffer overflow in DecodeGifImg.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
ngiflib 0.4 stack buffer overflow in DecodeGifImg allows denial of service or potential code execution via crafted GIF.
Vulnerability
A stack-based buffer overflow exists in DecodeGifImg() in ngiflib.c in ngiflib 0.4 (commit 93d864a). The vulnerability occurs at line 543 when a specially crafted GIF image is processed, causing a write of size 1 beyond the bounds of the ab_stack local array. This results in a stack-buffer-overflow condition [1][2].
Exploitation
An attacker can trigger the overflow by providing a malicious GIF file to any application that uses the affected ngiflib version for decoding. No special authentication or network position is required; the attack vector is file-based. The overflow manifests during the normal GIF decoding pipeline when DecodeGifImg is called from LoadGif at line 789 [1][2].
Impact
Successful exploitation causes a stack buffer overflow, which may lead to a denial of service (crash) or, under controlled conditions, arbitrary code execution with the privileges of the process using ngiflib. The address sanitizer report confirms a write of size 1 at a controlled offset [1][2].
Mitigation
As of the available references, no fixed version has been released. Users should monitor the official ngiflib repository for patches. No known workarounds are documented; restricting processing of untrusted GIF files may reduce risk [1][2].
AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
20.1, 0.2, 0.4+ 1 more
- (no CPE)range: 0.1, 0.2, 0.4
- (no CPE)range: <= 0.4
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- github.com/Edward-L/fuzzing-pocs/tree/master/ngiflibmitrex_refsource_MISC
- github.com/miniupnp/ngiflib/issues/4mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.