CVE-2026-78465 Gimp: integer overflow in pcx loader (planes=4) leads to heap overflow on 32-bit
A crafted PCX file triggers an integer overflow in GIMP's 32-bit plugin, causing a heap overflow that allows arbitrary code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-78465?
CVE-2026-78465 is a high-severity vulnerability in Gimp Gimp, published on 24 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
A flaw was found in the file-pcx plugin in GIMP, affecting 32-bit builds only. When processing a PCX image file, the plugin calculates memory allocation sizes based on the image dimensions and the number of color planes. If a crafted file sets the number of planes to 4 alongside sufficiently large dimensions, the calculation exceeds the 32-bit integer limit and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when the plugin subsequently writes image data into the undersized buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.
Weakness: CWE-190
Which versions are affected by CVE-2026-78465?
It affects 1 product.
Products include Gimp Gimp.
How do I fix CVE-2026-78465?
Apply the vendor's patch.
Is CVE-2026-78465 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-78465 exists.
Other vulnerabilities in Gimp Gimp
Sources
Also known as DEBIAN-CVE-2026-78465, GHSA-944m-78f8-q7cr, UBUNTU-CVE-2026-78465.