CVE-2022-28506
published 2022-04-25CVE-2022-28506: There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
PriorityP423medium5.5CVSS 3.1
AVLACLPRNUIRSUCHINAN
EPSS
1.22%
65.0th percentile
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | giflib | < giflib 5.2.2-1 (forky) | giflib 5.2.2-1 (forky) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| 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_giflib_5.2.1-7_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:P/I:N/A:N
osv8.8HIGH
vendor_ubuntu8.8HIGH
vendor_debian5.5LOW
vendor_msrc5.5MEDIUM
vendor_redhat5.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.
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.
Red Hat
giflib: buffer overflow in function DumpScreen2RGB()
vendor_redhat·2022-04-25·CVSS 5.5
CVE-2022-28506 [MEDIUM] CWE-787 giflib: buffer overflow in function DumpScreen2RGB()
giflib: buffer overflow in function DumpScreen2RGB()
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
A flaw was found in giflib, in the command-line tool gif2rgb. Information disclosure is possible due to a buffer overflow in the DumpScreen2RGB() function.
Statement: This issue did not affect the versions of giflib as shipped with Red Hat Enterprise Linux 8 and Red Hat Enterprise Linux 9 as they did not include the gif2rgb tool.
Package: giflib (Red Hat Enterprise Linux 6) - Out of support scope
Package: giflib (Red Hat Enterprise Linux 7) - Out of support scope
Package: giflib (Red Hat Enterprise Linux 8) - Not affected
Package: giflib (Red Hat Enterprise Linux 9) - Not affected
Microsoft
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
vendor_msrc·2022-04-12·CVSS 5.5
CVE-2022-28506 [MEDIUM] CWE-787 There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
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.
Mariner: Mariner
mitre: mitre
Customer Action Required: Yes
Remediation: CBL-Mar
Debian
CVE-2022-28506: giflib - There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif...
vendor_debian·2022·CVSS 5.5
CVE-2022-28506 [MEDIUM] CVE-2022-28506: giflib - There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif...
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
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)
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-x77v-4m7v-7fgv: There is a heap-buffer-overflow in GIFLIB 5
ghsa_unreviewed·2022-04-26
CVE-2022-28506 [HIGH] CWE-787 GHSA-x77v-4m7v-7fgv: There is a heap-buffer-overflow in GIFLIB 5
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
OSV
CVE-2022-28506: There is a heap-buffer-overflow in GIFLIB 5
osv·2022-04-25·CVSS 5.5
CVE-2022-28506 [MEDIUM] CVE-2022-28506: There is a heap-buffer-overflow in GIFLIB 5
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/verf1sh/Poc/blob/master/asan_report_giflib.pnghttps://github.com/verf1sh/Poc/blob/master/giflib_pochttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4CJSHXBD2RS5OJNWSHQZVMTQCCTIPYS/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KEAFUZXOOJJVFYRQM6IIJ7LMLEKCCESG/https://sourceforge.net/p/giflib/bugs/159/https://github.com/verf1sh/Poc/blob/master/asan_report_giflib.pnghttps://github.com/verf1sh/Poc/blob/master/giflib_pochttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4CJSHXBD2RS5OJNWSHQZVMTQCCTIPYS/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KEAFUZXOOJJVFYRQM6IIJ7LMLEKCCESG/https://sourceforge.net/p/giflib/bugs/159/
2022-04-25
Published