
CVE catalog
CVE-2016-3977
giflib: CVE-2016-3977
- Severity
- Medium · CVSS 5.5
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.10% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | giflib | sid | 6.1.3-1 | fixed |
| Debian | giflib | forky | 6.1.3-1 | fixed |
| Debian | giflib | trixie | 5.2.2-1+deb13u1 | fixed |
| Debian | giflib | bookworm | 5.2.1-2.5+deb12u1 | fixed |
| Alpine | giflib | 3.4 | 5.1.4-r0 | fixed |
| Ubuntu | giflib | 18.04 | 5.1.4-1 | vulnerable |
| Ubuntu | giflib | 18.04 | 5.1.4-2 | vulnerable |
| Ubuntu | giflib | 18.04 | 5.1.4-2ubuntu0.1 | fixed |
| Ubuntu | giflib | 16.04 | 4.1.6-11 | vulnerable |
| Ubuntu | giflib | 16.04 | 5.1.1-0ubuntu1 | vulnerable |
| Ubuntu | giflib | 16.04 | 5.1.1-0.1 | vulnerable |
| Ubuntu | giflib | 16.04 | 5.1.1-0.2 | vulnerable |
| Ubuntu | giflib | 16.04 | 5.1.2-0.1 | vulnerable |
| Ubuntu | giflib | 16.04 | 5.1.2-0.2 | vulnerable |
| Ubuntu | giflib | 16.04 | 5.1.4-0.3~16.04 | vulnerable |
| Ubuntu | giflib | 16.04 | 5.1.4-0.3~16.04.1 | fixed |
| Ubuntu | giflib | 18.04 | 5.1.4-1 | vulnerable |
| Ubuntu | giflib | 18.04 | 5.1.4-2 | vulnerable |
| Ubuntu | giflib | 18.04 | 5.1.4-2ubuntu0.1 | fixed |
| Suse | giflib | linux enterprise module for basesystem 15 sp3 | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | linux enterprise real time 15 sp2 | 5.2.1-150000.4.8.1 | fixed |
| Opensuse | giflib | leap 15.3 | 5.2.1-150000.4.8.1 | fixed |
| Opensuse | giflib | leap 15.4 | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | linux enterprise desktop 12 | 5.0.5-12.1 | fixed |
| Suse | giflib | linux enterprise desktop 12 sp1 | 5.0.5-12.1 | fixed |
| Suse | giflib | linux enterprise software development kit 12 | 5.0.5-12.1 | fixed |
| Suse | giflib | linux enterprise software development kit 12 sp1 | 5.0.5-12.1 | fixed |
| Suse | giflib | linux enterprise server 12 | 5.0.5-12.1 | fixed |
| Suse | giflib | linux enterprise server for sap applications 12 | 5.0.5-12.1 | fixed |
| Suse | giflib | linux enterprise server 12 sp1 | 5.0.5-12.1 | fixed |
| Suse | giflib | linux enterprise server for sap applications 12 sp1 | 5.0.5-12.1 | fixed |
| Suse | giflib | linux enterprise high performance computing 15 sp1-ltss | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | linux enterprise high performance computing 15 sp2-ltss | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | linux enterprise server 15 sp1-ltss | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | linux enterprise server 15 sp2-ltss | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | linux enterprise server for sap applications 15 sp1 | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | linux enterprise server for sap applications 15 sp2 | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | enterprise storage 7 | 5.2.1-150000.4.8.1 | fixed |
| Suse | giflib | linux enterprise software development kit 11 sp4 | 4.1.6-21.1 | fixed |
| Suse | giflib | linux enterprise server 11 sp4 | 4.1.6-21.1 | fixed |
| Suse | giflib | linux enterprise server for sap applications 11 sp4 | 4.1.6-21.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | giflib | source | sid | 5.1.4-3 | not yet assigned | Not reported | [820526] |
| Debian | giflib | source | forky | 5.1.4-3 | not yet assigned | Not reported | [820526] |
| Debian | giflib | source | trixie | 5.1.4-3 | not yet assigned | Not reported | [820526] |
| Debian | giflib | source | bookworm | 5.1.4-3 | not yet assigned | Not reported | [820526] |
| Alpine | giflib | apk | 3.4 | 5.1.4-r0 | Not reported | ALPINE-CVE-2016-3977 | Not reported |
| Ubuntu | giflib | deb | 18.04 | 5.1.4-2ubuntu0.1 | Not reported | UBUNTU-CVE-2016-3977 | Not reported |
| Ubuntu | giflib | deb | 16.04 | 5.1.4-0.3~16.04.1 | Not reported | USN-4107-1 | Not reported |
| Ubuntu | giflib | deb | 18.04 | 5.1.4-2ubuntu0.1 | Not reported | USN-4107-1 | Not reported |
| Suse | giflib | rpm | linux enterprise module for basesystem 15 sp3 | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2022:1565-1 | Not reported |
| Suse | giflib | rpm | linux enterprise real time 15 sp2 | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2022:1565-1 | Not reported |
| Opensuse | giflib | rpm | leap 15.3 | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2022:1565-1 | Not reported |
| Opensuse | giflib | rpm | leap 15.4 | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2022:1565-1 | Not reported |
| Suse | giflib | rpm | linux enterprise desktop 12 | 5.0.5-12.1 | Not reported | SUSE-SU-2016:1140-1 | Not reported |
| Suse | giflib | rpm | linux enterprise desktop 12 sp1 | 5.0.5-12.1 | Not reported | SUSE-SU-2016:1140-1 | Not reported |
| Suse | giflib | rpm | linux enterprise software development kit 12 | 5.0.5-12.1 | Not reported | SUSE-SU-2016:1140-1 | Not reported |
| Suse | giflib | rpm | linux enterprise software development kit 12 sp1 | 5.0.5-12.1 | Not reported | SUSE-SU-2016:1140-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server 12 | 5.0.5-12.1 | Not reported | SUSE-SU-2016:1140-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server for sap applications 12 | 5.0.5-12.1 | Not reported | SUSE-SU-2016:1140-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server 12 sp1 | 5.0.5-12.1 | Not reported | SUSE-SU-2016:1140-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server for sap applications 12 sp1 | 5.0.5-12.1 | Not reported | SUSE-SU-2016:1140-1 | Not reported |
| Suse | giflib | rpm | linux enterprise high performance computing 15 sp1-ltss | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2023:1970-2 | Not reported |
| Suse | giflib | rpm | linux enterprise high performance computing 15 sp2-ltss | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2023:1970-2 | Not reported |
| Suse | giflib | rpm | linux enterprise server 15 sp1-ltss | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2023:1970-2 | Not reported |
| Suse | giflib | rpm | linux enterprise server 15 sp2-ltss | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2023:1970-2 | Not reported |
| Suse | giflib | rpm | linux enterprise server for sap applications 15 sp1 | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2023:1970-2 | Not reported |
| Suse | giflib | rpm | linux enterprise server for sap applications 15 sp2 | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2023:1970-2 | Not reported |
| Suse | giflib | rpm | enterprise storage 7 | 5.2.1-150000.4.8.1 | Not reported | SUSE-SU-2023:1970-2 | Not reported |
| Suse | giflib | rpm | linux enterprise software development kit 11 sp4 | 4.1.6-21.1 | Not reported | SUSE-SU-2016:1139-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server 11 sp4 | 4.1.6-21.1 | Not reported | SUSE-SU-2016:1139-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server for sap applications 11 sp4 | 4.1.6-21.1 | Not reported | SUSE-SU-2016:1139-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [giflib-tools]Fixed
Source package: [giflib]
Details (2)
5.2.1-2.5+deb12u1· amd64 · bookwormFixed · Fixed:
5.1.4-3dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
5.2.1-2.5+deb12u1· arm64 · bookwormFixed · Fixed:
5.1.4-3dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
- [libgif7]Fixed
Source package: [giflib]
Details (2)
5.2.1-2.5+deb12u1· amd64 · bookwormFixed · Fixed:
5.1.4-3dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
5.2.1-2.5+deb12u1· arm64 · bookwormFixed · Fixed:
5.1.4-3dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
- [libgif-dev]Fixed
Source package: [giflib]
Details (2)
5.2.1-2.5+deb12u1· amd64 · bookwormFixed · Fixed:
5.1.4-3dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
5.2.1-2.5+deb12u1· arm64 · bookwormFixed · Fixed:
5.1.4-3dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
[Debian 13 (Trixie)]
- [giflib-tools]Fixed
Source package: [giflib]
Details (2)
5.2.2-1+deb13u1· amd64 · trixieFixed · Fixed:
5.1.4-3dsa · giflib · debian · 13
5.2.2-1+deb13u1· arm64 · trixieFixed · Fixed:
5.1.4-3dsa · giflib · debian · 13
- [libgif7]Fixed
Source package: [giflib]
Details (2)
5.2.2-1+deb13u1· amd64 · trixieFixed · Fixed:
5.1.4-3dsa · giflib · debian · 13
5.2.2-1+deb13u1· arm64 · trixieFixed · Fixed:
5.1.4-3dsa · giflib · debian · 13
- [libgif-dev]Fixed
Source package: [giflib]
Details (2)
5.2.2-1+deb13u1· amd64 · trixieFixed · Fixed:
5.1.4-3dsa · giflib · debian · 13
5.2.2-1+deb13u1· arm64 · trixieFixed · Fixed:
5.1.4-3dsa · giflib · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2016_1139-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2016-3977]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2016-3977]
- [https://osv.dev/vulnerability/SUSE-SU-2016:1139-1]
- [https://osv.dev/vulnerability/SUSE-SU-2016:1140-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:1565-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:1970-2]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2016-3977]
- [https://osv.dev/vulnerability/USN-4107-1]
- [https://security-tracker.debian.org/tracker/CVE-2016-3977]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]