# CVE-2021-40633: giflib: A memory leak (out-of-memory) in gif2rgb in util/gif2rgb.c in giflib 5.1.4 allows remote attackers trigger an out of...

CVE-2021-40633 is fixed in 3 products on 1 platform, first by giflib-tools 5.1.9-2ubuntu0.1, released June 14, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-40633
- Priority: High
- CVSS: 8.8 (high)
- EPSS: 0.0172
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 14, 2022

## Description

A memory leak (out-of-memory) in gif2rgb in util/gif2rgb.c in giflib 5.1.4 allows remote attackers trigger an out of memory exception or denial of service via a gif format file.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | giflib Debian 13.5 (trixie) | 5.2.2-1 | [DEBIAN-CVE-2021-40633](https://patchblox.com/security/data/fix/linux/debian-cve-2021-40633.md) | Jun 14, 2022 |
| Linux | giflib Debian 14 | 5.2.2-1 | [DEBIAN-CVE-2021-40633](https://patchblox.com/security/data/fix/linux/debian-cve-2021-40633.md) | Jun 14, 2022 |
| 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 | 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-08T19:12:23Z 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.
