Description
An issue was discovered in giflib through 5.1.4. DumpScreen2RGB in gif2rgb.c has a heap-based buffer over-read.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | giflib | 5.2.2-1 | — |
| Debian 13 | giflib | 5.2.2-1 | — |
| Debian 12 | giflib | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | giflib +2 | 5.2.1-9.amzn2023 | ALAS2023-2023-075 |
Advisories 1
- ALAS2023-2023-075 Moderate: giflib security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Sep 23, 2025
References
- https://sourceforge.net/p/giflib/bugs/151/
- [bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 mailing-list
- [bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 mailing-list
- https://cwe.mitre.org/data/definitions/126.html