CVE-2026-0797

NameCVE-2026-0797
DescriptionGIMP ICO File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of ICO files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28599.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1128601

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gimp (PTS)bullseye2.10.22-4+deb11u2vulnerable
bullseye (security)2.10.22-4+deb11u6vulnerable
bookworm2.10.34-1+deb12u5vulnerable
bookworm (security)2.10.34-1+deb12u8vulnerable
trixie3.0.4-3+deb13u2vulnerable
trixie (security)3.0.4-3+deb13u6vulnerable
forky3.2.0~RC2-3.1vulnerable
sid3.2.0~RC2-3.3vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gimpsource(unstable)(unfixed)1128601

Notes

https://www.zerodayinitiative.com/advisories/ZDI-26-050/
https://gitlab.gnome.org/GNOME/gimp/-/issues/15555
https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2583
Fixed by: https://gitlab.gnome.org/GNOME/gimp/-/commit/c54bf22acb04b83ae38ed50add58f300e898dd81
Followup: https://gitlab.gnome.org/GNOME/gimp/-/commit/905ce4b48782c5e71c79714b7ba7f6ebe4d0329d
Fixed by: https://gitlab.gnome.org/GNOME/gimp/-/commit/ca449c745d58daa3f4b1ed4c2030d35d401a009d (GIMP_3_0_8)
Followup: https://gitlab.gnome.org/GNOME/gimp/-/commit/13849c5a9a65c2366c47f703d9d075e4bfb83525 (GIMP_3_0_8)

Search for package or bug name: Reporting problems