CVE-2021-40633
published 2022-06-14CVE-2021-40633: 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…
PriorityP338high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
1.52%
71.5th percentile
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.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | giflib | < giflib 5.2.2-1 (forky) | giflib 5.2.2-1 (forky) |
| giflib_project | giflib | — | — |
| giflib_project | giflib | >= 0 < 5.2.2-1 | 5.2.2-1 |
| giflib_project | giflib | >= 0 < 5.2.2-1 | 5.2.2-1 |
| giflib_project | giflib | >= 0 < 5.1.9-1ubuntu0.1 | 5.1.9-1ubuntu0.1 |
| giflib_project | giflib | >= 0 < 5.1.9-2ubuntu0.1 | 5.1.9-2ubuntu0.1 |
| giflib_project | giflib | >= 0 < 5.1.4-0.3~16.04.1+esm1 | 5.1.4-0.3~16.04.1+esm1 |
| giflib_project | giflib | >= 0 < 5.1.4-2ubuntu0.1+esm1 | 5.1.4-2ubuntu0.1+esm1 |
| msrc | azl3_giflib_5.2.1-10_on_azure_linux_3.0 | — | — |
| msrc | azl3_tensorflow_2.16.1-9_on_azure_linux_3.0 | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.05.1MEDIUMAV:N/AC:H/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.8LOW
vendor_msrc8.8HIGH
vendor_redhat8.8HIGH
vendor_ubuntu8.8HIGH
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.
OSV
giflib vulnerabilities
osv·2024-06-10·CVSS 8.8
CVE-2021-40633 [HIGH] 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.
(CVE-2021-40633, CVE-2022-28506, CVE-2023-39742)
GHSA
GHSA-77hm-q3fv-fq9x: A memory leak (out-of-memory) in gif2rgb in util/gif2rgb
ghsa_unreviewed·2022-06-15
CVE-2021-40633 [HIGH] CWE-401 GHSA-77hm-q3fv-fq9x: A memory leak (out-of-memory) in gif2rgb in util/gif2rgb
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.
OSV
CVE-2021-40633: A memory leak (out-of-memory) in gif2rgb in util/gif2rgb
osv·2022-06-14·CVSS 8.8
CVE-2021-40633 [HIGH] CVE-2021-40633: A memory leak (out-of-memory) in gif2rgb in util/gif2rgb
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.
Ubuntu
GIFLIB vulnerabilities
vendor_ubuntu·2024-06-10·CVSS 8.8
CVE-2023-39742 [HIGH] 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.
(CVE-2021-40633, CVE-2022-28506, CVE-2023-39742)
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
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.
vendor_msrc·2022-06-14·CVSS 8.8
CVE-2021-40633 [HIGH] CWE-401 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Red Hat
gif2rgb: gif2rgb memory leak
vendor_redhat·2022-06-14·CVSS 8.8
CVE-2021-40633 [HIGH] CWE-401 gif2rgb: gif2rgb memory leak
gif2rgb: gif2rgb memory leak
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.
Debian
CVE-2021-40633: giflib - A memory leak (out-of-memory) in gif2rgb in util/gif2rgb.c in giflib 5.1.4 allow...
vendor_debian·2021·CVSS 8.8
CVE-2021-40633 [HIGH] CVE-2021-40633: giflib - A memory leak (out-of-memory) in gif2rgb in util/gif2rgb.c in giflib 5.1.4 allow...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 5.2.2-1)
sid: resolved (fixed in 5.2.2-1)
trixie: resolved (fixed in 5.2.2-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2022-06-14
Published