CVE-2022-28506
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.5
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
CVE-2022-28506- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:N - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
CVE-2022-28506- Updated
- 2026-11-02
EUVDEUVD-2022-32948 No score
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
EUVD-2022-32948- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-x77v-4m7v-7fgv
8.8
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.
- Record
GHSA-x77v-4m7v-7fgv- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-28506
5.5
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
ALPINE-CVE-2022-28506- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-03
OSVAZL-10305
5.5
CVE-2022-28506 affecting package giflib for versions less than 5.2.1-7
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
AZL-10305- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 12 moreShow less
OSVAZL-34727
5.5
CVE-2022-28506 affecting package giflib for versions less than 5.2.1-7
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
AZL-34727- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-05
OSVBELL-CVE-2022-28506
5.5
CVE-2022-28506 does not affect BellSoft software
- Record
BELL-CVE-2022-28506- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSV
5.5
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
CVE-2022-28506- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-28506
5.5
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
DEBIAN-CVE-2022-28506- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-03
OSVJLSEC-2026-817
5.5
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
JLSEC-2026-817- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:N - Updated
- 2026-11-02
OSVOESA-2022-1723
8.8
giflib security update
giflib is a library of gif images and provides utilities for processing images.
Security Fix(es):
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.(CVE-2022-28506)
- Record
OESA-2022-1723- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-28506
5.5
There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.
- Record
UBUNTU-CVE-2022-28506- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVMGASA-2022-0275 No score
Updated mingw-giflib packages fix security vulnerability
It was discovered that giflib 5.2.1 (including mingw-giflib which has giflib 5.2.1 bundled) contained a heap-buffer-overflow in function DumpScreen2RGB() (CVE-2022-28506).
- Record
MGASA-2022-0275- Updated
- 2026-11-02
OSVROOT-OS-ALPINE-315-CVE-2022-28506 No score
CVE-2022-28506 in giflib - Patched by Root
Root has patched CVE-2022-28506 in the giflib package for Root:Alpine:3.15. Multiple fixed versions available.
- Record
ROOT-OS-ALPINE-315-CVE-2022-28506- Updated
- 2026-11-02
OSVSUSE-SU-2024:0786-1 No score
Security update for giflib
This update for giflib fixes the following issues:
Update to version 5.2.2
- Fixes for CVE-2023-48161 (bsc#1217390), CVE-2022-28506 (bsc#1198880)
- #138 Documentation for obsolete utilities still installed
- #139: Typo in 'LZW image data' page ('110_2 = 4_10')
- #140: Typo in 'LZW image data' page ('LWZ')
- #141: Typo in 'Bits and bytes' page ('filed')
- Note as already fixed SF issue #143: cannot compile under mingw
- #144: giflib-5.2.1 cannot be build on windows and other platforms using c89
- #145: Remove manual pages installation for binaries that are not installed too
- #146: [PATCH] Limit installed man pages to binaries, move giflib to section 7
- #147 [PATCH] Fixes to doc/whatsinagif/ content
- #148: heap Out of Bound Read in gif2rgb.c:298 DumpScreen2RGB
- Declared no-info on SF issue #150: There is a denial of service vulnerability in GIFLIB 5.2.1
- Declared Won't-fix on SF issue 149: Out of source builds no longer possible
- #151: A heap-buffer-overflow in gif2rgb.c:294:45
- #152: Fix some typos on the html documentation and man pages
- #153: Fix segmentation faults due to non correct checking for args
- #154: Recover the giffilter manual page
- #155: Add gifsponge docs
- #157: An OutofMemory-Exception or Memory Leak in gif2rgb
- #158: There is a null pointer problem in gif2rgb
- #159 A heap-buffer-overflow in GIFLIB5.2.1 DumpScreen2RGB() in gif2rgb.c:298:45
- #163: detected memory leaks in openbsd_reallocarray giflib/openbsd-reallocarray.c
- #164: detected memory leaks in GifMakeMapObject giflib/gifalloc.c
- #166: a read zero page leads segment fault in getarg.c and memory leaks in gif2rgb.c and gifmalloc.c
- #167: Heap-Buffer Overflow during Image Saving in DumpScreen2RGB Function at Line 321 of gif2rgb.c
- Record
SUSE-SU-2024:0786-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:2607-1 No score
Security update for giflib
This update for giflib fixes the following issues:
- CVE-2022-28506: Fixed heap buffer overflow in function DumpScreen2RGB() (bsc#1198880)
- CVE-2023-39742: Fixed segmentation fault via the component getarg.c (bsc#1214678)
- Record
SUSE-SU-2024:2607-1- Updated
- 2026-11-02
OSVUSN-6824-1 No score
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)
- Record
USN-6824-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
giflibAlpine:v3.17 |
before 5.2.1-r2 | 5.2.1-r2 |
giflibAlpine:v3.18 |
before 5.2.1-r2 | 5.2.1-r2 |
giflibAlpine:v3.19 |
before 5.2.1-r2 | 5.2.1-r2 |
giflibAlpine:v3.20 |
before 5.2.1-r2 | 5.2.1-r2 |
giflibAlpine:v3.21 |
before 5.2.1-r2 | 5.2.1-r2 |
giflibAlpine:v3.22 |
before 5.2.1-r2 | 5.2.1-r2 |
giflibAlpine:v3.23 |
before 5.2.1-r2 | 5.2.1-r2 |
giflibAlpine:v3.24 |
before 5.2.1-r2 | 5.2.1-r2 |
giflibAzure Linux:2 |
before 5.2.1-7 | 5.2.1-7 |
giflibAzure Linux:3 |
before 5.2.1-7 | 5.2.1-7 |
Show 37 moreShow less
| Package | Affected | Fixed |
|---|---|---|
giflibDebian:12 |
All versions, plus listed versions 5.2.1-2.55.2.1-2.5+deb12u15.2.2-16.1.3-1 |
None known |
giflibDebian:13 |
before 5.2.2-1 | 5.2.2-1 |
giflibDebian:14 |
before 5.2.2-1 | 5.2.2-1 |
Giflib_jllJulia |
5.2.1+0 up to 5.2.2+0 | 5.2.2+0 |
mingw-giflibMageia:8 |
before 5.2.1-2.1.mga8 | 5.2.1-2.1.mga8 |
giflibMageia:8 |
before 5.2.1-5.1.mga8 | 5.2.1-5.1.mga8 |
giflibopenEuler:20.03-LTS-SP1 |
before 5.2.1-3.oe1 | 5.2.1-3.oe1 |
giflibopenEuler:20.03-LTS-SP3 |
before 5.2.1-3.oe1 | 5.2.1-3.oe1 |
giflibopenEuler:22.03-LTS |
before 5.2.1-4.oe2203 | 5.2.1-4.oe2203 |
giflibRoot:Alpine:3.15 |
before 5.2.1-r00072 | 5.2.1-r000725.2.1-r000765.2.1-r000745.2.1-r000735.2.1-r000755.2.1-r00077 |
rootio-giflibRoot:Alpine:3.15 |
before 5.2.1-r00072 | 5.2.1-r000725.2.1-r000765.2.1-r000745.2.1-r000735.2.1-r000755.2.1-r00077 |
giflibSUSE:Linux Enterprise Module for Basesystem 15 SP5 From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise Server 15 SP2-LTSS From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise Server 15 SP3-LTSS From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise Server 15 SP4-LTSS From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise Server for SAP Applications 15 SP2 From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise Server for SAP Applications 15 SP3 From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise Server for SAP Applications 15 SP4 From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Manager Proxy 4.3 From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Manager Server 4.3 From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Enterprise Storage 7.1 From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibopenSUSE:Leap 15.5 From an advisory covering 3 CVEs |
before 5.2.2-150000.4.13.1 | 5.2.2-150000.4.13.1 |
giflibSUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 2 CVEs |
before 5.0.5-13.6.1 | 5.0.5-13.6.1 |
giflibSUSE:Linux Enterprise Server 12 SP5 From an advisory covering 2 CVEs |
before 5.0.5-13.6.1 | 5.0.5-13.6.1 |
giflibSUSE:Linux Enterprise Server for SAP Applications 12 SP5 From an advisory covering 2 CVEs |
before 5.0.5-13.6.1 | 5.0.5-13.6.1 |
giflibUbuntu:Pro:16.04:LTS |
before 5.1.4-0.3~16.04.1+esm1, plus listed versions 4.1.6-115.1.1-0ubuntu15.1.1-0.15.1.1-0.25.1.2-0.15.1.2-0.25.1.4-0.3~16.045.1.4-0.3~16.04.1 |
5.1.4-0.3~16.04.1+esm1 |
giflibUbuntu:Pro:18.04:LTS |
before 5.1.4-2ubuntu0.1+esm1, plus listed versions 5.1.4-15.1.4-25.1.4-2ubuntu0.1 |
5.1.4-2ubuntu0.1+esm1 |
giflibUbuntu:20.04:LTS |
before 5.1.9-1ubuntu0.1, plus listed versions 5.1.4-3ubuntu15.1.9-1 |
5.1.9-1ubuntu0.1 |
giflibUbuntu:22.04:LTS |
before 5.1.9-2ubuntu0.1, plus listed versions 5.1.9-2build15.1.9-2build2 |
5.1.9-2ubuntu0.1 |
giflibUbuntu:Pro:16.04:LTS From an advisory covering 3 CVEs |
before 5.1.4-0.3~16.04.1+esm1, plus listed versions 4.1.6-115.1.1-0ubuntu15.1.1-0.15.1.1-0.25.1.2-0.15.1.2-0.25.1.4-0.3~16.045.1.4-0.3~16.04.1 |
5.1.4-0.3~16.04.1+esm1 |
giflibUbuntu:Pro:18.04:LTS From an advisory covering 3 CVEs |
before 5.1.4-2ubuntu0.1+esm1, plus listed versions 5.1.4-15.1.4-25.1.4-2ubuntu0.1 |
5.1.4-2ubuntu0.1+esm1 |
giflibUbuntu:20.04:LTS From an advisory covering 3 CVEs |
before 5.1.9-1ubuntu0.1, plus listed versions 5.1.4-3ubuntu15.1.9-1 |
5.1.9-1ubuntu0.1 |
giflibUbuntu:22.04:LTS From an advisory covering 3 CVEs |
before 5.1.9-2ubuntu0.1, plus listed versions 5.1.9-2build15.1.9-2build2 |
5.1.9-2ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-28506 is a medium vulnerability (CVSS 5.5) in Giflib Project Giflib, published April 25, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.25%, the 69th percentile. Fixed in giflib 5.2.1-r2.
References
github.com/verf1sh/Poc/blob/master/giflib_poc
github.com/verf1sh/Poc/blob/master/asan_report_giflib.png
sourceforge.net/p/giflib/bugs/159
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4CJSHXBD2RS5OJNWSHQZVMTQCCTIPYS
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KEAFUZXOOJJVFYRQM6IIJ7LMLEKCCESG
nvd.nist.gov/vuln/detail/CVE-2022-28506
Show 25 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/B4CJSHXBD2RS5OJNWSHQZVMTQCCTIPYS
lists.fedoraproject.org/archives/list/[email protected]/message/KEAFUZXOOJJVFYRQM6IIJ7LMLEKCCESG
github.com/advisories/GHSA-x77v-4m7v-7fgv
security.alpinelinux.org/vuln/CVE-2022-28506
docs.bell-sw.com/security/cves/CVE-2022-28506
security-tracker.debian.org/tracker/CVE-2022-28506
advisories.mageia.org/MGASA-2022-0275.html
bugs.mageia.org/show_bug.cgi?id=30671
lists.fedoraproject.org/archives/list/[email protected]/thread/B4CJSHXBD2RS5OJNWSHQZVMTQCCTIPYS
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1723
suse.com/support/update/announcement/2024/suse-su-20240786-1
bugzilla.suse.com/1198880
bugzilla.suse.com/1200551
bugzilla.suse.com/1217390
suse.com/security/cve/CVE-2021-40633
suse.com/security/cve/CVE-2022-28506
suse.com/security/cve/CVE-2023-48161
suse.com/support/update/announcement/2024/suse-su-20242607-1
bugzilla.suse.com/1214678
suse.com/security/cve/CVE-2023-39742
ubuntu.com/security/CVE-2022-28506
cve.org/CVERecord?id=CVE-2022-28506
ubuntu.com/security/notices/USN-6824-1
ubuntu.com/security/CVE-2021-40633
ubuntu.com/security/CVE-2023-39742