CVE-2020-23922
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based...
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
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
- High
Exploit likelihood
What each source reports
NVD Score used
7.1
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
- Record
CVE-2020-23922- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - CVSS 2.0
- 5.8 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
- Record
CVE-2020-23922- Updated
- 2026-11-02
EUVDEUVD-2020-16659 No score
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
- Record
EUVD-2020-16659- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6xhw-5p38-q4xw
7.1
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based...
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
- Record
GHSA-6xhw-5p38-q4xw- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
7.1
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
- Record
CVE-2020-23922- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2020-23922
7.1
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
- Record
DEBIAN-CVE-2020-23922- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVJLSEC-2026-815
7.1
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
- Record
JLSEC-2026-815- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - CVSS 2.0
- 5.8 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:P - Updated
- 2026-11-02
OSVOESA-2024-1757
7.1
giflib security update
giflib is a library of gif images and provides utilities for processing images.
Security Fix(es):
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.(CVE-2020-23922)
Buffer Overflow vulnerability in GifLib Project GifLib v.5.2.1 allows a local attacker to obtain sensitive information via the DumpSCreen2RGB function in gif2rgb.c(CVE-2023-48161)
- Record
OESA-2024-1757- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVCLSA-2026-1781348390 No score
giflib: Fix of 2 CVEs
- CVE-2020-23922: fix heap out-of-bounds read in DumpScreen2RGB
- Record
CLSA-2026-1781348390- Updated
- 2026-11-02
OSVCLSA-2026-1787646995 No score
Fix CVE(s): CVE-2020-23922, CVE-2021-40633, CVE-2026-23868
- SECURITY UPDATE: heap buffer over-read in gif2rgb
- debian/patches/CVE-2020-23922.patch: bound each pixel index against the active color table before indexing ColorMap->Colors in DumpScreen2RGB in util/gif2rgb.c.
- CVE-2020-23922
- SECURITY UPDATE: memory leak leading to denial of service
- debian/patches/CVE-2021-40633.patch: free every ScreenBuffer row, not just the row-pointer array, at the end of GIF2RGB in util/gif2rgb.c.
- CVE-2021-40633
- SECURITY UPDATE: double free in GifMakeSavedImage
- debian/patches/CVE-2026-23868.patch: null out the heap pointers aliased by the shallow copy of CopyFrom, test the source record when deciding what to deep-copy, and restore ExtensionBlockCount after the extension blocks are copied, in lib/gifalloc.c.
- CVE-2026-23868
- Record
CLSA-2026-1787646995- Updated
- 2026-11-02
OSVROOT-OS-DEBIAN-12-CVE-2020-23922 No score
CVE-2020-23922 in giflib - Patched by Root
Root has patched CVE-2020-23922 in the giflib package for Root:Debian:12. Multiple fixed versions available.
- Record
ROOT-OS-DEBIAN-12-CVE-2020-23922- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
giflibTuxCare:AlmaLinux:9.2 |
before 5.2.1-9.el9.tuxcare.els5 | 5.2.1-9.el9.tuxcare.els5 |
giflib-develTuxCare:AlmaLinux:9.2 |
before 5.2.1-9.el9.tuxcare.els5 | 5.2.1-9.el9.tuxcare.els5 |
giflib-utilsTuxCare:AlmaLinux:9.2 |
before 5.2.1-9.el9.tuxcare.els5 | 5.2.1-9.el9.tuxcare.els5 |
giflib-toolsTuxCare:Ubuntu:18.04 From an advisory covering 3 CVEs |
before 5.1.4-2ubuntu0.1+tuxcare.els1 | 5.1.4-2ubuntu0.1+tuxcare.els1 |
libgif-devTuxCare:Ubuntu:18.04 From an advisory covering 3 CVEs |
before 5.1.4-2ubuntu0.1+tuxcare.els1 | 5.1.4-2ubuntu0.1+tuxcare.els1 |
libgif7TuxCare:Ubuntu:18.04 From an advisory covering 3 CVEs |
before 5.1.4-2ubuntu0.1+tuxcare.els1 | 5.1.4-2ubuntu0.1+tuxcare.els1 |
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 |
before 5.2.1+0 | 5.2.1+0 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
giflibopenEuler:20.03-LTS-SP4 From an advisory covering 2 CVEs |
before 5.2.2-1.oe2003sp4 | 5.2.2-1.oe2003sp4 |
giflibopenEuler:22.03-LTS-SP1 From an advisory covering 2 CVEs |
before 5.2.2-1.oe2203sp1 | 5.2.2-1.oe2203sp1 |
giflibopenEuler:22.03-LTS-SP3 From an advisory covering 2 CVEs |
before 5.2.2-1.oe2203sp3 | 5.2.2-1.oe2203sp3 |
giflibopenEuler:24.03-LTS From an advisory covering 2 CVEs |
before 5.2.2-1.oe2403 | 5.2.2-1.oe2403 |
giflibRoot:Debian:12 |
before 5.2.1-2.5+deb12u1.aikido.8 | 5.2.1-2.5+deb12u1.aikido.8 |
rootio-giflibRoot:Debian:12 |
before 5.2.1-2.5+deb12u1.aikido.8 | 5.2.1-2.5+deb12u1.aikido.8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| 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-2020-23922 is a high vulnerability (CVSS 7.1) in Giflib Project Giflib, published April 21, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.24%, the 82nd percentile. Fixed in giflib 5.2.1-9.el9.tuxcare.els5.
References
sourceforge.net/p/giflib/bugs/151
lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
cwe.mitre.org/data/definitions/126.html
nvd.nist.gov/vuln/detail/CVE-2020-23922
lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E
Show 10 moreShow less
lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E
github.com/advisories/GHSA-6xhw-5p38-q4xw
errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1781348390.html
nvd.nist.gov/vuln/detail/CVE-2022-28506
errata.tuxcare.com/els_os/ubuntu18.04els/CLSA-2026-1787646995.html
nvd.nist.gov/vuln/detail/CVE-2021-40633
nvd.nist.gov/vuln/detail/CVE-2026-23868
security-tracker.debian.org/tracker/CVE-2020-23922
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1757
nvd.nist.gov/vuln/detail/CVE-2023-48161