Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.8

GIMP can run malicious code if you open a bad PGM file

UBUNTU-CVE-2026-2044
Summary

If you use GIMP and open a specially crafted PGM file, a hacker could run malicious code on your computer. This requires you to intentionally open the file or visit a malicious website. Update GIMP to the latest version to fix this issue.

What to do

No fix is available yet. Check with your software vendor for updates.

Affected software
VendorProductAffected versionsFix available
canonical gimp All versions
canonical gimp All versions
canonical gimp All versions
canonical gimp All versions
canonical gimp All versions
canonical gimp All versions
Original title
GIMP PGM File Parsing Uninitialized Memory Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interact...
Original description
GIMP PGM File Parsing Uninitialized Memory 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 PGM files. The issue results from the lack of proper initialization of memory prior to accessing it. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28158.
osv CVSS3.1 7.8
Published: 20 Feb 2026 · Updated: 13 Mar 2026 · First seen: 13 Mar 2026