CVE-2025-15059
NixOS vulnerability analysis and mitigation

Overview

CVE-2025-15059 is a heap-based buffer overflow vulnerability in GIMP's PSP (Paint Shop Pro) file parser, enabling remote attackers to execute arbitrary code on affected systems. The vulnerability was reported to the vendor on November 11, 2025, and publicly disclosed on December 29, 2025, via a coordinated Zero Day Initiative advisory (ZDI-25-1196). It affects GIMP version 3.0.6 and carries a CVSS v3.0 base score of 7.8 (High), assigned by Zero Day Initiative (ZDI Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-122 (Heap-based Buffer Overflow) and CWE-787 (Out-of-bounds Write). The flaw exists in GIMP's PSP file parsing logic, where user-supplied data length is not properly validated before being copied into a heap-allocated buffer, allowing an attacker to overflow the buffer with attacker-controlled content. Exploitation requires local access in the sense that the victim must open a maliciously crafted PSP file (e.g., delivered via a malicious webpage or email attachment), after which code executes in the context of the GIMP process. The upstream fix is documented in the GNOME GitLab commit 03575ac8cbb0ef3103b0a15d6598475088dcc15e (ZDI Advisory, GNOME GitLab Patch).

Impact

Successful exploitation allows an attacker to execute arbitrary code with the privileges of the user running GIMP, resulting in high impact to confidentiality, integrity, and availability. An attacker could read sensitive files accessible to the GIMP process, modify data, or cause application crashes. While the attack vector is local (requiring the user to open a file), the vulnerability can be triggered remotely by tricking a user into opening a malicious PSP file, making it a realistic threat in phishing or drive-by download scenarios (ZDI Advisory, Red Hat Bugzilla).

Exploitability

A proof-of-concept exploit reference is available via the Zero Day Initiative advisory (ZDI-25-1196), published December 29, 2025, though no evidence of active in-the-wild exploitation has been reported. The vulnerability was discovered by an anonymous researcher and disclosed through ZDI's coordinated disclosure process. The EPSS score is approximately 0.058%, indicating a low but non-zero probability of exploitation in the near term. The vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog (ZDI Advisory, Feedly).

Exploitation steps

  1. Craft a malicious PSP file: Create a specially crafted Paint Shop Pro (.psp) file with a manipulated data length field in a parsed block, designed to overflow the heap buffer in GIMP's PSP parser.
  2. Deliver the payload: Host the malicious PSP file on a web server or distribute it via email/phishing, enticing the target user to download and open it with GIMP.
  3. Trigger the vulnerability: When the victim opens the malicious PSP file in GIMP, the parser reads the attacker-controlled length value and copies data into a heap buffer without bounds checking, causing a heap overflow.
  4. Achieve code execution: By carefully controlling the overflow data (e.g., overwriting heap metadata or function pointers), the attacker redirects execution flow to attacker-supplied shellcode or a ROP chain, executing arbitrary code in the context of the GIMP process (ZDI Advisory, GNOME GitLab Patch).

Indicators of compromise

  • File System: Presence of unexpected or suspicious .psp files in download directories, temporary folders, or email attachment staging areas; new or modified files in GIMP's working directory created around the time of exploitation.
  • Process: Unusual child processes spawned by the GIMP process (e.g., bash, sh, cmd.exe, powershell, curl, wget); GIMP process crashing or terminating unexpectedly after opening a PSP file.
  • Network: Outbound network connections initiated by the GIMP process to unexpected external IP addresses or domains, particularly following the opening of a PSP file.
  • Logs: Application crash logs or core dumps referencing GIMP's PSP file parsing code; system logs showing GIMP process spawning unexpected subprocesses.

Mitigation and workarounds

GIMP has issued a patch addressing this vulnerability; the upstream fix is available in the GNOME GitLab repository (commit 03575ac8cbb0ef3103b0a15d6598475088dcc15e). Red Hat has released errata for Red Hat Enterprise Linux 9 and related Extended Update Support versions: RHSA-2026:2707, RHSA-2026:2930, RHSA-2026:2950, RHSA-2026:2953, and RHSA-2026:2969. Debian (DSA-6115-1, DLA-4483-1) and Ubuntu (USN-8057-1) have also issued security updates. Users should update GIMP to the patched version available for their distribution immediately. As a temporary workaround, avoid opening PSP files from untrusted sources and consider restricting GIMP's ability to open PSP file types until patching is complete (Red Hat Bugzilla, GNOME GitLab Patch).

Community reactions

The vulnerability received coverage from security news outlets including The Hacker Wire and was discussed on Mastodon's infosec.exchange community. Linux distribution security teams (Red Hat, Debian, Ubuntu, openSUSE, AlmaLinux, Rocky Linux, Oracle Linux) responded promptly with security advisories and patches within weeks of the CVE's public disclosure. Pro-Linux.de published security alerts in German covering the buffer overflow. No major threat actor attribution or widespread community controversy has been noted (ZDI Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

gimp: 2.10.34-1+deb12u7

Fixed

sid

gimp: 3.2.0~RC2-3.1

Fixed

trixie

gimp: 3.0.4-3+deb13u5

Fixed

Ubuntu

Fixed

bionic (esm-apps)

gimp

Not Affected

devel

gimp

Unknown

focal (esm-apps)

gimp

Not Affected

jammy

gimp

Affected

jammy (esm-apps)

gimp: 2.10.30-1ubuntu0.1+esm1

Fixed

noble

gimp

Affected

noble (esm-apps)

gimp: 2.10.36-3ubuntu0.24.04.1+esm1

Fixed

resolute

gimp

Unknown

RHEL / CentOS

Fixed

RHEL 8

Not Affected

RHEL 9

:appstream:gimp-2:2.99.8-3.el9_0.4.src

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-91782LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91780LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91779LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-90831LOW1.9
  • NixOS logoNixOS
  • gcc-toolset-15-binutils-devel
NoYesSep 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management