{"id":"UBUNTU-CVE-2026-0797","details":"GIMP 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.","modified":"2026-03-13T06:04:40.022851Z","published":"2026-02-20T22:16:00Z","upstream":["CVE-2026-0797"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-0797"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-0797"},{"type":"REPORT","url":"https://www.zerodayinitiative.com/advisories/ZDI-26-050/"},{"type":"REPORT","url":"https://gitlab.gnome.org/GNOME/gimp/-/issues/15555"},{"type":"REPORT","url":"https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2583"},{"type":"REPORT","url":"https://gitlab.gnome.org/GNOME/gimp/-/commit/69cc6b1a6645dc9c4d7b484483dbe6a84b922b9c"}],"affected":[{"package":{"name":"gimp","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/gimp@2.8.16-1ubuntu1.1+esm3?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.14-1ubuntu2","2.8.14-1.2ubuntu1","2.8.16-1ubuntu1","2.8.16-1ubuntu1.1","2.8.16-1ubuntu1.1+esm1","2.8.16-1ubuntu1.1+esm2","2.8.16-1ubuntu1.1+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.8.16-1ubuntu1.1+esm3","binary_name":"gimp"},{"binary_version":"2.8.16-1ubuntu1.1+esm3","binary_name":"gimp-data"},{"binary_version":"2.8.16-1ubuntu1.1+esm3","binary_name":"libgimp2.0"},{"binary_version":"2.8.16-1ubuntu1.1+esm3","binary_name":"libgimp2.0-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0797.json"}},{"package":{"name":"gimp","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/gimp@2.8.22-1ubuntu0.1~esm3?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.8.20-1","2.8.20-1.1","2.8.20-2","2.8.22-1","2.8.22-1ubuntu0.1~esm1","2.8.22-1ubuntu0.1~esm2","2.8.22-1ubuntu0.1~esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.8.22-1ubuntu0.1~esm3","binary_name":"gimp"},{"binary_version":"2.8.22-1ubuntu0.1~esm3","binary_name":"gimp-data"},{"binary_version":"2.8.22-1ubuntu0.1~esm3","binary_name":"libgimp2.0"},{"binary_version":"2.8.22-1ubuntu0.1~esm3","binary_name":"libgimp2.0-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0797.json"}},{"package":{"name":"gimp","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/gimp@2.10.18-1ubuntu0.1+esm3?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.10.8-2","2.10.14-2","2.10.14-2build1","2.10.14-2ubuntu1","2.10.14-3","2.10.18-1","2.10.18-1ubuntu0.1","2.10.18-1ubuntu0.1+esm1","2.10.18-1ubuntu0.1+esm2","2.10.18-1ubuntu0.1+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.10.18-1ubuntu0.1+esm3","binary_name":"gimp"},{"binary_version":"2.10.18-1ubuntu0.1+esm3","binary_name":"gimp-data"},{"binary_version":"2.10.18-1ubuntu0.1+esm3","binary_name":"libgimp2.0"},{"binary_version":"2.10.18-1ubuntu0.1+esm3","binary_name":"libgimp2.0-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0797.json"}},{"package":{"name":"gimp","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/gimp@2.10.30-1ubuntu0.1+esm3?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.10.24-2","2.10.28-1","2.10.30-1","2.10.30-1build1","2.10.30-1ubuntu0.1","2.10.30-1ubuntu0.1+esm1","2.10.30-1ubuntu0.1+esm2","2.10.30-1ubuntu0.1+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.10.30-1ubuntu0.1+esm3","binary_name":"gimp"},{"binary_version":"2.10.30-1ubuntu0.1+esm3","binary_name":"gimp-data"},{"binary_version":"2.10.30-1ubuntu0.1+esm3","binary_name":"libgimp2.0"},{"binary_version":"2.10.30-1ubuntu0.1+esm3","binary_name":"libgimp2.0-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0797.json"}},{"package":{"name":"gimp","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/gimp@2.10.36-3ubuntu0.24.04.1+esm3?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.10.34-1","2.10.36-1","2.10.36-2","2.10.36-3build2","2.10.36-3build3","2.10.36-3ubuntu0.24.04.1","2.10.36-3ubuntu0.24.04.1+esm1","2.10.36-3ubuntu0.24.04.1+esm2","2.10.36-3ubuntu0.24.04.1+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.10.36-3ubuntu0.24.04.1+esm3","binary_name":"gimp"},{"binary_version":"2.10.36-3ubuntu0.24.04.1+esm3","binary_name":"gimp-data"},{"binary_version":"2.10.36-3ubuntu0.24.04.1+esm3","binary_name":"libgimp2.0-dev"},{"binary_version":"2.10.36-3ubuntu0.24.04.1+esm3","binary_name":"libgimp2.0t64"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0797.json"}},{"package":{"name":"gimp","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/gimp@3.0.4-6.1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.2-1","3.0.2-2","3.0.2-3","3.0.2-3.1","3.0.4-1","3.0.4-2","3.0.4-3","3.0.4-5","3.0.4-6","3.0.4-6.1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.4-6.1","binary_name":"gimp"},{"binary_version":"3.0.4-6.1","binary_name":"gimp-data"},{"binary_version":"3.0.4-6.1","binary_name":"gir1.2-gimp-3.0"},{"binary_version":"3.0.4-6.1","binary_name":"libgimp-3.0-0"},{"binary_version":"3.0.4-6.1","binary_name":"libgimp-3.0-bin"},{"binary_version":"3.0.4-6.1","binary_name":"libgimp-3.0-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-0797.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}