CVE-2016-3977 json
Heap-based buffer overflow in util/gif2rgb.c in gif2rgb in giflib 5.1.2 allows remote attackers to cause a denial of service (application c…
published 2016-04-21 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-4986
- cvss
- 5.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
Heap-based buffer overflow in util/gif2rgb.c in gif2rgb in giflib 5.1.2 allows remote attackers to cause a denial of service (application crash) via the background color index in a GIF file.
Patch / fix
- giflib Debian 14, Debian 13, Debian 12 5.1.4-3
debian advisories DEBIAN-CVE-2016-3977
- giflib Ubuntu 18.04 LTS 5.1.4-2ubuntu0.1
ubuntu advisories UBUNTU-CVE-2016-3977
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- giflib SLE Real Time 15 SP2, SLE Module for Basesystem 15 SP3, openSUSE Leap 15.4 +8 more 5.2.1-150000.4.8.1
- giflib SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 4.1.6-21.1
- giflib SLES for SAP 12 SP1, SLES for SAP 12, SLES 12 SP1 +5 more 5.0.5-12.1
suse advisories SUSE-SU-2023:1970-2SUSE-SU-2022:1565-1SUSE-SU-2016:1139-1SUSE-SU-2016:1140-1
- giflib openSUSE Tumbleweed 5.1.4-1.12
opensuse advisories openSUSE-SU-2024:10016-1
- giflib Alpine 3.4 5.1.4-r0
alpine advisories ALPINE-CVE-2016-3977
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-3977 updated cvss 4.3
giflib: heap buffer overflow in gif2rgb
-
Red Hat Enterprise Linux 5 giflib Red Hat Enterprise Linux 6 giflib, giflib-utils Red Hat Enterprise Linux 7 giflib, giflib-utils Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) Operational Tools phantomjsaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.10% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
sourceforge.net
/p/giflib/code/ci/ea8dbc5786862a3e16a5acfa3d24e2c2f608cd88/
patch, vendor-advisory
-
sourceforge.net
/p/giflib/bugs/87/
patch
-
lists.opensuse.org
/opensuse-updates/2016-04/msg00084.html
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2016-04/msg00079.html
vendor-advisory
-
lists.opensuse.org
/opensuse-updates/2016-05/msg00019.html
vendor-advisory
-
usn.ubuntu.com
/4107-1/
vendor-advisory
-
securityfocus.com
/bid/88103
vdb-entry
- bugs.fi /fuzzing/index.html
- bugzilla.redhat.com /show_bug.cgi?id=1325771
Sources
- CVE List CVE-2016-3977
- NVD CVE-2016-3977
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.