CVE-2018-11489: The DGifDecompressLine function in dgif_lib.c in GIFLIB (possibly version 3.0.x), as later shipped in cgif.c i
CVE-2018-11489 is a high-severity flaw (CVSS 8.8) affecting giflib, sam2p. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The DGifDecompressLine function in dgif_lib.c in GIFLIB (possibly version 3.0.x), as later shipped in cgif.c in sam2p 0.49.4, has a heap-based buffer overflow because a certain CrntCode array index is not checked. This will lead to a denial of service or possibly unspecified other impact.
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2018-11489?
giflib: upgrade to newer than 3.1.1; sam2p: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2018-11489 being exploited?
CVE-2018-11489 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2018-11489 affect?
CVE-2018-11489 affects giflib, sam2p. Severity is high (CVSS 8.8). The DGifDecompressLine function in dgif_lib.c in GIFLIB (possibly version 3.0.x), as later shipped in cgif.c in sam2p 0.49.4, has a heap-based buffer overflow because a certain CrntCode array index is not checked. This will lead to a denial
How urgent is CVE-2018-11489?
Priority 57/100. High severity; Public exploit reference
Related CVEs
- CVE-2023-48161 HIGH 7.1 DOWNGRADE Buffer Overflow vulnerability in GifLib Project GifLib v.5.2.1 allows a local attacker to obtain sensitive inf
- CVE-2026-26740 HIGH 8.2 DOWNGRADE Buffer Overflow vulnerability in giflib v.5.2.2 allows a remote attacker to cause a denial of service via the
- CVE-2026-23868 MEDIUM 5.1 UPGRADE Giflib contains a double-free vulnerability that is the result of a shallow copy in GifMakeSavedImage and inco
- CVE-2024-45993 MEDIUM 6.5 DOWNGRADE Giflib Project v5.2.2 is vulnerable to a heap buffer overflow via gif2rgb.
- CVE-2023-39742 MEDIUM 5.5 DOWNGRADE giflib v5.2.1 was discovered to contain a segmentation fault via the component getarg.c.