# CVE-2022-28506

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-04-25 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2022-28506, MGASA-2022-0275, UBUNTU-CVE-2022-28506, DEBIAN-CVE-2022-28506, CGA-fwfw-4cc8-c47h, CGA-w3fh-j322-jxww
- Record: https://cvemate.com/vulnerability/CVE-2022-28506 · JSON: https://cvemate.com/vulnerability/CVE-2022-28506/json

## Description

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

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 1.253%, percentile 70.455%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github, reference)

## Affected

- alpine giflib (Alpine Linux): \< 5.2.1-r2
- chainguard giflib (Chainguard): All versions (No fix recorded)
- wolfi giflib (Wolfi): All versions (No fix recorded)
- debian giflib (Debian): All versions (No fix recorded) \| \< 5.2.2-1
- ubuntu giflib (Ubuntu): \< 5.1.4-0.3~16.04.1+esm1 \| \< 5.1.4-2ubuntu0.1+esm1 \| \< 5.1.9-1ubuntu0.1 \| \< 5.1.9-2ubuntu0.1
- fedoraproject fedora: 35 \| 36
- giflib\_project giflib: 5.2.1
- mageia giflib (Mageia): \< 5.2.1-5.1.mga8
- mageia mingw-giflib (Mageia): \< 5.2.1-2.1.mga8

## References

- <https://github.com/verf1sh/Poc/blob/master/giflib_poc>
- <https://github.com/verf1sh/Poc/blob/master/asan_report_giflib.png>
- <https://sourceforge.net/p/giflib/bugs/159/>
- <https://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://security.alpinelinux.org/vuln/CVE-2022-28506>
- <https://advisories.mageia.org/MGASA-2022-0275.html>
- <https://bugs.mageia.org/show_bug.cgi?id=30671>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/B4CJSHXBD2RS5OJNWSHQZVMTQCCTIPYS/>
- <https://ubuntu.com/security/CVE-2022-28506>
- <https://www.cve.org/CVERecord?id=CVE-2022-28506>
- <https://ubuntu.com/security/notices/USN-6824-1>
- <https://security-tracker.debian.org/tracker/CVE-2022-28506>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-28506>

---

Data as of 2026-12-05T04:51:16.453Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
