CVE-2025-15059 GIMP PSP File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

High 7.8 Published Updated

Remote attackers can execute arbitrary code by tricking users into opening malicious PSP files in GIMP due to a heap-based buffer overflow.

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-2025-15059?

CVE-2025-15059 is a high-severity memory corruption vulnerability in Gimp Gimp, published on 23 Jan 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

GIMP PSP 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 PSP 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-28232.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2025-15059?

It affects 1 product.

Linux distribution packages (37)
gimp AlmaLinux:9All versions2:3.0.4-1.el9_7.3
gimp-libs AlmaLinux:9All versions2:3.0.4-1.el9_7.3
gimp Red Hat:enterprise_linux:9::appstreamAll versions2:3.0.4-1.el9_7.3
gimp-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.0.4-1.el9_7.3
gimp-debugsource Red Hat:enterprise_linux:9::appstreamAll versions2:3.0.4-1.el9_7.3
gimp-devel-tools-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.0.4-1.el9_7.3
gimp-libs Red Hat:enterprise_linux:9::appstreamAll versions2:3.0.4-1.el9_7.3
gimp-libs-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions2:3.0.4-1.el9_7.3
gimp Red Hat:rhel_e4s:9.0::appstreamAll versions2:2.99.8-3.el9_0.4
gimp-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions2:2.99.8-3.el9_0.4
gimp-debugsource Red Hat:rhel_e4s:9.0::appstreamAll versions2:2.99.8-3.el9_0.4
gimp-devel-tools-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions2:2.99.8-3.el9_0.4
gimp-libs Red Hat:rhel_e4s:9.0::appstreamAll versions2:2.99.8-3.el9_0.4
gimp-libs-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions2:2.99.8-3.el9_0.4
gimp Red Hat:rhel_e4s:9.2::appstreamAll versions2:2.99.8-4.el9_2.4
gimp-debuginfo Red Hat:rhel_e4s:9.2::appstreamAll versions2:2.99.8-4.el9_2.4
gimp-debugsource Red Hat:rhel_e4s:9.2::appstreamAll versions2:2.99.8-4.el9_2.4
gimp-devel-tools-debuginfo Red Hat:rhel_e4s:9.2::appstreamAll versions2:2.99.8-4.el9_2.4
gimp-libs Red Hat:rhel_e4s:9.2::appstreamAll versions2:2.99.8-4.el9_2.4
gimp-libs-debuginfo Red Hat:rhel_e4s:9.2::appstreamAll versions2:2.99.8-4.el9_2.4
gimp Red Hat:rhel_eus:9.4::appstreamAll versions2:2.99.8-4.el9_4.4
gimp-debuginfo Red Hat:rhel_eus:9.4::appstreamAll versions2:2.99.8-4.el9_4.4
gimp-debugsource Red Hat:rhel_eus:9.4::appstreamAll versions2:2.99.8-4.el9_4.4
gimp-devel-tools-debuginfo Red Hat:rhel_eus:9.4::appstreamAll versions2:2.99.8-4.el9_4.4
gimp-libs Red Hat:rhel_eus:9.4::appstreamAll versions2:2.99.8-4.el9_4.4
gimp-libs-debuginfo Red Hat:rhel_eus:9.4::appstreamAll versions2:2.99.8-4.el9_4.4
gimp Red Hat:rhel_eus:9.6::appstreamAll versions2:2.99.8-4.el9_6.5
gimp-debuginfo Red Hat:rhel_eus:9.6::appstreamAll versions2:2.99.8-4.el9_6.5
gimp-debugsource Red Hat:rhel_eus:9.6::appstreamAll versions2:2.99.8-4.el9_6.5
gimp-devel-tools-debuginfo Red Hat:rhel_eus:9.6::appstreamAll versions2:2.99.8-4.el9_6.5
gimp-libs Red Hat:rhel_eus:9.6::appstreamAll versions2:2.99.8-4.el9_6.5
gimp-libs-debuginfo Red Hat:rhel_eus:9.6::appstreamAll versions2:2.99.8-4.el9_6.5
gimp Rocky Linux:9All versions2:3.0.4-1.el9_7.3
gimp SUSE:Linux Enterprise Module for Package Hub 15 SP7All versions2.10.30-150400.3.35.1
gimp SUSE:Linux Enterprise Workstation Extension 15 SP7All versions2.10.30-150400.3.35.1
gimp openSUSE:Leap 15.6All versions2.10.30-150400.3.35.1
gimp openSUSE:TumbleweedAll versions3.0.6-4.1

Products include Gimp Gimp.

How do I fix CVE-2025-15059?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-15059 being exploited?

There is no known exploitation of CVE-2025-15059 in the wild and no public exploit code.

All Gimp Gimp vulnerabilities

Sources

Also known as ALSA-2026:2707, CLSA-2026-1771956020, CLSA-2026-1771956748, DEBIAN-CVE-2025-15059, DSA-6115-1, GHSA-h948-x7vm-x59c and 14 more.

Is CVE-2025-15059 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free