
CVE catalog
CVE-2021-40633
giflib: CVE-2021-40633
- Severity
- Low · CVSS 3.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.72% · Oct 25, 2026
A memory leak (out-of-memory) in gif2rgb in util/gif2rgb.c in giflib 5.1.4 allows remote attackers trigger an out of memory exception or denial of service via a gif format 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 | vulnerable |
| Alpine | giflib | 3.17 | 5.2.2-r0 | fixed |
| Alpine | giflib | 3.18 | 5.2.2-r0 | fixed |
| Alpine | giflib | 3.19 | 5.2.2-r0 | fixed |
| Alpine | giflib | 3.20 | 5.2.2-r0 | fixed |
| Alpine | giflib | 3.21 | 5.2.2-r0 | fixed |
| Alpine | giflib | 3.22 | 5.2.2-r0 | fixed |
| Alpine | giflib | 3.23 | 5.2.2-r0 | fixed |
| Alpine | giflib | 3.24 | 5.2.2-r0 | fixed |
| Ubuntu | giflib | pro | 5.1.4-1 | vulnerable |
| Ubuntu | giflib | pro | 5.1.4-2 | vulnerable |
| Ubuntu | giflib | pro | 5.1.4-2ubuntu0.1 | vulnerable |
| Ubuntu | giflib | pro | 5.1.4-2ubuntu0.1+esm1 | fixed |
| Ubuntu | giflib | 20.04 | 5.1.4-3ubuntu1 | vulnerable |
| Ubuntu | giflib | 20.04 | 5.1.9-1 | vulnerable |
| Ubuntu | giflib | 20.04 | 5.1.9-1ubuntu0.1 | fixed |
| Ubuntu | giflib | 22.04 | 5.1.9-2build1 | vulnerable |
| Ubuntu | giflib | 22.04 | 5.1.9-2build2 | vulnerable |
| Ubuntu | giflib | 22.04 | 5.1.9-2ubuntu0.1 | fixed |
| Ubuntu | giflib | pro | 5.1.4-1 | vulnerable |
| Ubuntu | giflib | pro | 5.1.4-2 | vulnerable |
| Ubuntu | giflib | pro | 5.1.4-2ubuntu0.1 | vulnerable |
| Ubuntu | giflib | pro | 5.1.4-2ubuntu0.1+esm1 | fixed |
| Ubuntu | giflib | 20.04 | 5.1.4-3ubuntu1 | vulnerable |
| Ubuntu | giflib | 20.04 | 5.1.9-1 | vulnerable |
| Ubuntu | giflib | 20.04 | 5.1.9-1ubuntu0.1 | fixed |
| Ubuntu | giflib | 22.04 | 5.1.9-2build1 | vulnerable |
| Ubuntu | giflib | 22.04 | 5.1.9-2build2 | vulnerable |
| Ubuntu | giflib | 22.04 | 5.1.9-2ubuntu0.1 | fixed |
| Suse | giflib | linux enterprise module for basesystem 15 sp5 | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise high performance computing 15 sp2-ltss | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise high performance computing 15 sp3-ltss | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise high performance computing 15 sp4-espos | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise high performance computing 15 sp4-ltss | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise server 15 sp2-ltss | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise server 15 sp3-ltss | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise server 15 sp4-ltss | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise server for sap applications 15 sp2 | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise server for sap applications 15 sp3 | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | linux enterprise server for sap applications 15 sp4 | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | manager proxy 4.3 | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | manager server 4.3 | 5.2.2-150000.4.13.1 | fixed |
| Suse | giflib | enterprise storage 7.1 | 5.2.2-150000.4.13.1 | fixed |
| Opensuse | giflib | leap 15.5 | 5.2.2-150000.4.13.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | giflib | source | sid | 5.2.2-1 | unimportant | Not reported | [1014586] |
| Debian | giflib | source | forky | 5.2.2-1 | unimportant | Not reported | [1014586] |
| Debian | giflib | source | trixie | 5.2.2-1 | unimportant | Not reported | [1014586] |
| Debian | giflib | source | bookworm | (unfixed) | unimportant | Not reported | [1014586] |
| Alpine | giflib | apk | 3.17 | 5.2.2-r0 | Not reported | ALPINE-CVE-2021-40633 | Not reported |
| Alpine | giflib | apk | 3.18 | 5.2.2-r0 | Not reported | ALPINE-CVE-2021-40633 | Not reported |
| Alpine | giflib | apk | 3.19 | 5.2.2-r0 | Not reported | ALPINE-CVE-2021-40633 | Not reported |
| Alpine | giflib | apk | 3.20 | 5.2.2-r0 | Not reported | ALPINE-CVE-2021-40633 | Not reported |
| Alpine | giflib | apk | 3.21 | 5.2.2-r0 | Not reported | ALPINE-CVE-2021-40633 | Not reported |
| Alpine | giflib | apk | 3.22 | 5.2.2-r0 | Not reported | ALPINE-CVE-2021-40633 | Not reported |
| Alpine | giflib | apk | 3.23 | 5.2.2-r0 | Not reported | ALPINE-CVE-2021-40633 | Not reported |
| Alpine | giflib | apk | 3.24 | 5.2.2-r0 | Not reported | ALPINE-CVE-2021-40633 | Not reported |
| Ubuntu | giflib | deb | pro | 5.1.4-2ubuntu0.1+esm1 | Not reported | USN-6824-1 | Not reported |
| Ubuntu | giflib | deb | 20.04 | 5.1.9-1ubuntu0.1 | Not reported | USN-6824-1 | Not reported |
| Ubuntu | giflib | deb | 22.04 | 5.1.9-2ubuntu0.1 | Not reported | USN-6824-1 | Not reported |
| Ubuntu | giflib | deb | pro | 5.1.4-2ubuntu0.1+esm1 | Not reported | UBUNTU-CVE-2021-40633 | Not reported |
| Ubuntu | giflib | deb | 20.04 | 5.1.9-1ubuntu0.1 | Not reported | UBUNTU-CVE-2021-40633 | Not reported |
| Ubuntu | giflib | deb | 22.04 | 5.1.9-2ubuntu0.1 | Not reported | UBUNTU-CVE-2021-40633 | Not reported |
| Suse | giflib | rpm | linux enterprise module for basesystem 15 sp5 | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise high performance computing 15 sp2-ltss | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise high performance computing 15 sp3-ltss | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise high performance computing 15 sp4-espos | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise high performance computing 15 sp4-ltss | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server 15 sp2-ltss | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server 15 sp3-ltss | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server 15 sp4-ltss | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server for sap applications 15 sp2 | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server for sap applications 15 sp3 | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | linux enterprise server for sap applications 15 sp4 | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | manager proxy 4.3 | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | manager server 4.3 | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Suse | giflib | rpm | enterprise storage 7.1 | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
| Opensuse | giflib | rpm | leap 15.5 | 5.2.2-150000.4.13.1 | Not reported | SUSE-SU-2024:0786-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [giflib-tools]Affected
Source package: [giflib]
Details (2)
5.2.1-2.5+deb12u1· amd64 · bookwormAffected
dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
5.2.1-2.5+deb12u1· arm64 · bookwormAffected
dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
- [libgif7]Affected
Source package: [giflib]
Details (2)
5.2.1-2.5+deb12u1· amd64 · bookwormAffected
dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
5.2.1-2.5+deb12u1· arm64 · bookwormAffected
dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
- [libgif-dev]Affected
Source package: [giflib]
Details (2)
5.2.1-2.5+deb12u1· amd64 · bookwormAffected
dsa · giflib · debian · bookworm; dsa · giflib · debian · 12
5.2.1-2.5+deb12u1· arm64 · bookwormAffected
dsa · 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.2.2-1dsa · giflib · debian · 13
5.2.2-1+deb13u1· arm64 · trixieFixed · Fixed:
5.2.2-1dsa · giflib · debian · 13
- [libgif7]Fixed
Source package: [giflib]
Details (2)
5.2.2-1+deb13u1· amd64 · trixieFixed · Fixed:
5.2.2-1dsa · giflib · debian · 13
5.2.2-1+deb13u1· arm64 · trixieFixed · Fixed:
5.2.2-1dsa · giflib · debian · 13
- [libgif-dev]Fixed
Source package: [giflib]
Details (2)
5.2.2-1+deb13u1· amd64 · trixieFixed · Fixed:
5.2.2-1dsa · giflib · debian · 13
5.2.2-1+deb13u1· arm64 · trixieFixed · Fixed:
5.2.2-1dsa · giflib · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_0786-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-40633]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-40633]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0786-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-40633]
- [https://osv.dev/vulnerability/USN-6824-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-40633]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-40633.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]