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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.25%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2022-04-25T12:53:01.000Z
- Modified: 2026-06-17T04:38:36.620Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- giflib_project giflib: 5.2.1
- fedoraproject fedora: 35; 36

## Every score

- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/verf1sh/Poc/blob/master/giflib_poc> (exploit, third-party-advisory)
- <https://github.com/verf1sh/Poc/blob/master/asan_report_giflib.png> (exploit, third-party-advisory)
- <https://sourceforge.net/p/giflib/bugs/159/> (exploit, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4CJSHXBD2RS5OJNWSHQZVMTQCCTIPYS/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KEAFUZXOOJJVFYRQM6IIJ7LMLEKCCESG/> (vendor-advisory)

## Sources

- CVE List: [CVE-2022-28506](https://www.cve.org/CVERecord?id=CVE-2022-28506), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-28506](https://nvd.nist.gov/vuln/detail/CVE-2022-28506), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-28506 · Whole record: https://cve.day/CVE-2022-28506.json · Rebuilt by cve.day 2026-11-25T22:58:11.224Z
