Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2018-11489: The DGifDecompressLine function in dgif_lib.c in GIFLIB (possibly version 3.0.x), as later shipped in cgif.c i

57
This month
HIGH 8.8UPGRADEDOWNGRADE

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.

Risk facts

CVSS score8.8 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance2.5% (top 16%)
CISA exploited listNo
WeaknessCWE-129, CWE-787
Published2018-05-26
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: giflib project · sam2p project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

giflib project giflib UPGRADE
Affected: >= 3.0 and <= 3.1.1
Fixed in: newer than 3.1.1
Safe to downgrade to: a release before 3.0
1. Check installed version
apt-cache policy giflib || rpm -q giflib || giflib --version
2. UPGRADE to newer than 3.1.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade giflib
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade giflib
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 3.0 (Debian / Ubuntu)
apt-cache madison giflib sudo apt install giflib=<VERSION_BEFORE_3.0> sudo apt-mark hold giflib
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list giflib sudo dnf downgrade giflib-<VERSION_BEFORE_3.0> sudo dnf versionlock add giflib
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
sam2p project sam2p DOWNGRADE
Affected: 0.49.4
Fixed in: no fixed release known
Safe to downgrade to: a release before 0.49.4
1. Check installed version
apt-cache policy sam2p || rpm -q sam2p || sam2p --version
2. No fixed release: DOWNGRADE to a release before 0.49.4 (Debian / Ubuntu)
apt-cache madison sam2p sudo apt install sam2p=<VERSION_BEFORE_0.49.4> sudo apt-mark hold sam2p
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list sam2p sudo dnf downgrade sam2p-<VERSION_BEFORE_0.49.4> sudo dnf versionlock add sam2p
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
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

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.