CVE-2016-3977
published 2016-04-21CVE-2016-3977: 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…
PriorityP422medium5.5CVSS 3.0
AVLACLPRNUIRSUCNINAH
EPSS
2.11%
79.5th percentile
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.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | giflib | < giflib 5.1.4-3 (bookworm) | giflib 5.1.4-3 (bookworm) |
| giflib_project | giflib | <= 5.1.2 | — |
| giflib_project | giflib | >= 0 < 5.1.4-3 | 5.1.4-3 |
| giflib_project | giflib | >= 0 < 5.1.4-3 | 5.1.4-3 |
| giflib_project | giflib | >= 0 < 5.1.4-3 | 5.1.4-3 |
| giflib_project | giflib | >= 0 < 5.1.4-3 | 5.1.4-3 |
| giflib_project | giflib | >= 0 < 5.1.4-0.3~16.04.1 | 5.1.4-0.3~16.04.1 |
| giflib_project | giflib | >= 0 < 5.1.4-2ubuntu0.1 | 5.1.4-2ubuntu0.1 |
| opensuse | opensuse | — | — |
CVSS provenance
nvdv3.05.5MEDIUMCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
vendor_ubuntu5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-f9f6-3pmf-963r: Heap-based buffer overflow in util/gif2rgb
ghsa_unreviewed·2022-05-14
CVE-2016-3977 [MEDIUM] CWE-119 GHSA-f9f6-3pmf-963r: Heap-based buffer overflow in util/gif2rgb
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.
OSV
giflib vulnerabilities
osv·2019-08-20·CVSS 5.5
CVE-2016-3977 [MEDIUM] giflib vulnerabilities
giflib vulnerabilities
It was discovered that GIFLIB incorrectly handled certain GIF files.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 18.04 LTS. (CVE-2016-3977)
It was discovered that GIFLIB incorrectly handled certain GIF files.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2018-11490, CVE-2019-15133)
OSV
CVE-2016-3977: Heap-based buffer overflow in util/gif2rgb
osv·2016-04-21·CVSS 5.5
CVE-2016-3977 [MEDIUM] CVE-2016-3977: Heap-based buffer overflow in util/gif2rgb
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.
Ubuntu
GIFLIB vulnerabilities
vendor_ubuntu·2019-08-20·CVSS 5.5
CVE-2016-3977 [MEDIUM] GIFLIB vulnerabilities
Title: GIFLIB vulnerabilities
Summary: Several security issues were fixed in GIFLIB.
It was discovered that GIFLIB incorrectly handled certain GIF files.
An attacker could possibly use this issue to cause a denial of service.
This issue only affected Ubuntu 18.04 LTS. (CVE-2016-3977)
It was discovered that GIFLIB incorrectly handled certain GIF files.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2018-11490, CVE-2019-15133)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
giflib: heap buffer overflow in gif2rgb
vendor_redhat·2016-04-04·CVSS 5.5
CVE-2016-3977 [MEDIUM] CWE-122 giflib: heap buffer overflow in gif2rgb
giflib: heap buffer overflow in gif2rgb
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.
Statement: Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Package: giflib (Red Hat Enterprise Linux 5) - Will not fix
Package: giflib (Red Hat Enterprise Linux 6) - Will not fix
Package: giflib (Red Hat Enterprise Linux 7) - Will not fix
Package: phantomjs (Red Hat Enterprise Linux OpenStack Platform 7 (Kilo) Operational Tools)
Debian
CVE-2016-3977: giflib - Heap-based buffer overflow in util/gif2rgb.c in gif2rgb in giflib 5.1.2 allows r...
vendor_debian·2016·CVSS 5.5
CVE-2016-3977 [MEDIUM] CVE-2016-3977: giflib - Heap-based buffer overflow in util/gif2rgb.c in gif2rgb in giflib 5.1.2 allows r...
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.
Scope: local
bookworm: resolved (fixed in 5.1.4-3)
bullseye: resolved (fixed in 5.1.4-3)
forky: resolved (fixed in 5.1.4-3)
sid: resolved (fixed in 5.1.4-3)
trixie: resolved (fixed in 5.1.4-3)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-3977 giflib: heap buffer overflow in gif2rgb
bugzilla·2016-04-11·CVSS 5.5
CVE-2016-3977 [MEDIUM] CVE-2016-3977 giflib: heap buffer overflow in gif2rgb
CVE-2016-3977 giflib: heap buffer overflow in gif2rgb
A heap buffer overflow vulnerability was found in giflib. A maliciously crafted gif file could cause the application to crash.
External references:
https://sourceforge.net/p/giflib/bugs/87/
Upstream fix:
https://sourceforge.net/p/giflib/code/ci/ea8dbc5786862a3e16a5acfa3d24e2c2f608cd88/
References:
http://bugs.fi/2016-03-gif2rgb.txt
http://bugs.fi/media/afl/giflib/1.gif
Discussion:
Created giflib tracking bugs for this issue:
Affects: fedora-all [bug 1325772]
---
The palette of the image has only 2 colors, but the background color is set to an index value of 255, which, in this case, is outside the range of valid values.
The main() function sets the background image value when filling up the screen buffer:
(line numbers for
Bugzilla
CVE-2016-3977 giflib: heap buffer overflow in gif2rgb [fedora-all]
bugzilla·2016-04-11·CVSS 5.5
CVE-2016-3977 [MEDIUM] CVE-2016-3977 giflib: heap buffer overflow in gif2rgb [fedora-all]
CVE-2016-3977 giflib: heap buffer overflow in gif2rgb [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora. Whi
http://bugs.fi/fuzzing/index.htmlhttp://lists.opensuse.org/opensuse-updates/2016-04/msg00079.htmlhttp://lists.opensuse.org/opensuse-updates/2016-04/msg00084.htmlhttp://lists.opensuse.org/opensuse-updates/2016-05/msg00019.htmlhttp://www.securityfocus.com/bid/88103https://bugzilla.redhat.com/show_bug.cgi?id=1325771https://sourceforge.net/p/giflib/bugs/87/https://sourceforge.net/p/giflib/code/ci/ea8dbc5786862a3e16a5acfa3d24e2c2f608cd88/https://usn.ubuntu.com/4107-1/http://bugs.fi/fuzzing/index.htmlhttp://lists.opensuse.org/opensuse-updates/2016-04/msg00079.htmlhttp://lists.opensuse.org/opensuse-updates/2016-04/msg00084.htmlhttp://lists.opensuse.org/opensuse-updates/2016-05/msg00019.htmlhttp://www.securityfocus.com/bid/88103https://bugzilla.redhat.com/show_bug.cgi?id=1325771https://sourceforge.net/p/giflib/bugs/87/https://sourceforge.net/p/giflib/code/ci/ea8dbc5786862a3e16a5acfa3d24e2c2f608cd88/https://usn.ubuntu.com/4107-1/
2016-04-21
Published