CVE-2021-46829
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-46829 affects GNOME GdkPixbuf (aka GDK-PixBuf) versions before 2.42.8, involving a heap-based buffer overflow vulnerability when compositing or clearing frames in GIF files, specifically in the io-gif-animation.c composite_frame component. The vulnerability was discovered by Pedro Ribeiro and reported on June 2, 2021, with public disclosure occurring in July 2022 (GitHub PoC, OSS Security).

Technical details

The vulnerability stems from a boundary error when processing GIF images, specifically in the calculation of the offset variable in the compositeframe function. The issue manifests as a heap-based buffer overflow that can occur in two ways: when the value exceeds INT32MAX due to signed integer usage, and when calculations result in very large values. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability allows attackers to potentially execute arbitrary code or cause denial of service, particularly effective on 32-bit systems. When exploited, the buffer overflow is controllable and can be used to write to arbitrary memory addresses, though the effectiveness may be limited by heap memory constraints (GitHub PoC).

Mitigation and workarounds

The vulnerability was patched in GdkPixbuf version 2.42.8, released on March 18, 2022. Various distributions have released security updates, including Debian which fixed the issue in version 2.42.2+dfsg-1+deb11u1 for the bullseye distribution (Debian Security), and Fedora which addressed it in version 2.42.8-1.fc35 (Fedora Update).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management