# CVE-2022-28506: giflib-tools: There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.

CVE-2022-28506 is fixed in 8 products on 1 platform, first by DEBIAN-CVE-2022-28506, released April 25, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-28506
- Priority: Routine
- CVSS: 5.5 (Low)
- EPSS: 0.0125
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 25, 2022

## Description

There is a heap-buffer-overflow in GIFLIB 5.2.1 function DumpScreen2RGB() in gif2rgb.c:298:45.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | giflib Debian 13.5 (trixie) | 5.2.2-1 | [DEBIAN-CVE-2022-28506](https://patchblox.com/security/data/fix/linux/debian-cve-2022-28506.md) | Apr 25, 2022 |
| Linux | giflib Debian 14 | 5.2.2-1 | [DEBIAN-CVE-2022-28506](https://patchblox.com/security/data/fix/linux/debian-cve-2022-28506.md) | Apr 25, 2022 |
| Linux | giflib amzn 2023 | 5.2.1-9.amzn2023 | [ALAS2023-2023-075](https://patchblox.com/security/data/fix/linux/alas2023-2023-075.md) | Feb 17, 2023 |
| Linux | giflib-debuginfo amzn 2023 | 5.2.1-9.amzn2023 | [ALAS2023-2023-075](https://patchblox.com/security/data/fix/linux/alas2023-2023-075.md) | Feb 17, 2023 |
| Linux | giflib-debugsource amzn 2023 | 5.2.1-9.amzn2023 | [ALAS2023-2023-075](https://patchblox.com/security/data/fix/linux/alas2023-2023-075.md) | Feb 17, 2023 |
| Linux | giflib-devel amzn 2023 | 5.2.1-9.amzn2023 | [ALAS2023-2023-075](https://patchblox.com/security/data/fix/linux/alas2023-2023-075.md) | Feb 17, 2023 |
| Linux | giflib-tools Ubuntu 18.04.6 LTS (bionic) | 5.1.4-2ubuntu0.1+esm1 | [giflib-tools 5.1.4-2ubuntu0.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-giflib-tools-5.1.4-2ubuntu0.1-esm1.md) | Aug 25, 2023 |
| Linux | giflib-tools Ubuntu 20.04 LTS (focal) | 5.1.9-1ubuntu0.1 | [giflib-tools 5.1.9-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-giflib-tools-5.1.9-1ubuntu0.1.md) | Aug 25, 2023 |
| Linux | giflib-tools Ubuntu 22.04.1 LTS (jammy) | 5.1.9-2ubuntu0.1 | [giflib-tools 5.1.9-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-giflib-tools-5.1.9-2ubuntu0.1.md) | Jun 14, 2022 |
| Linux | giflib-utils amzn 2023 | 5.2.1-9.amzn2023 | [ALAS2023-2023-075](https://patchblox.com/security/data/fix/linux/alas2023-2023-075.md) | Feb 17, 2023 |
| Linux | giflib-utils-debuginfo amzn 2023 | 5.2.1-9.amzn2023 | [ALAS2023-2023-075](https://patchblox.com/security/data/fix/linux/alas2023-2023-075.md) | Feb 17, 2023 |
| Linux | libgif7 Ubuntu 18.04.6 LTS (bionic) | 5.1.4-2ubuntu0.1+esm1 | [libgif7 5.1.4-2ubuntu0.1+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libgif7-5.1.4-2ubuntu0.1-esm1.md) | Aug 25, 2023 |
| Linux | libgif7 Ubuntu 20.04 LTS (focal) | 5.1.9-1ubuntu0.1 | [libgif7 5.1.9-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgif7-5.1.9-1ubuntu0.1.md) | Aug 25, 2023 |
| Linux | libgif7 Ubuntu 22.04.1 LTS (jammy) | 5.1.9-2ubuntu0.1 | [libgif7 5.1.9-2ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libgif7-5.1.9-2ubuntu0.1.md) | Jun 14, 2022 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
