# CVE-2021-20240: gir1.2-gdkpixbuf-2.0: A flaw was found in gdk-pixbuf in versions before 2.42.0

CVE-2021-20240 is fixed in 4 products on 1 platform, first by gir1.2-gdkpixbuf-2.0 2.40.0+dfsg-3ubuntu0.2, released February 16, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-20240
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0235
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 16, 2021

## Description

A flaw was found in gdk-pixbuf in versions before 2.42.0. An integer wraparound leading to an out of bounds write can occur when a crafted GIF image is loaded. An attacker may cause applications to crash or could potentially execute code on the victim system. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | gir1.2-gdkpixbuf-2.0 Ubuntu 20.04 LTS (focal) | 2.40.0+dfsg-3ubuntu0.2 | [gir1.2-gdkpixbuf-2.0 2.40.0+dfsg-3ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-gir1.2-gdkpixbuf-2.0-2.40.0-dfsg-3ubuntu0.2.md) | Feb 16, 2021 |
| Linux | libgdk-pixbuf2.0-0 Ubuntu 20.04 LTS (focal) | 2.40.0+dfsg-3ubuntu0.2 | [libgdk-pixbuf2.0-0 2.40.0+dfsg-3ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgdk-pixbuf2.0-0-2.40.0-dfsg-3ubuntu0.2.md) | Feb 16, 2021 |
| Linux | libgdk-pixbuf2.0-bin Ubuntu 20.04 LTS (focal) | 2.40.0+dfsg-3ubuntu0.2 | [libgdk-pixbuf2.0-bin 2.40.0+dfsg-3ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgdk-pixbuf2.0-bin-2.40.0-dfsg-3ubuntu0.2.md) | Feb 16, 2021 |
| Linux | libgdk-pixbuf2.0-common Ubuntu 20.04 LTS (focal) | 2.40.0+dfsg-3ubuntu0.2 | [libgdk-pixbuf2.0-common 2.40.0+dfsg-3ubuntu0.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgdk-pixbuf2.0-common-2.40.0-dfsg-3ubuntu0.2.md) | Feb 16, 2021 |

---

Data as of 2026-11-09T01:18:40Z 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.
