Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious PSP file
-
DeliveryDeliver to victim via email or download
-
ExploitVictim opens file in GIMP
-
ExecutionDouble-free triggered in read_layer_block()
-
ImpactHeap corruption yields crash or code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
|
| Exploitation Conditions | Exploitation requires a local victim to open a specially crafted Paint Shop Pro (.psp) format file in GIMP, invoking the PSP import parser and reaching read_layer_block(). It is not remotely triggerable without user action: the CVSS vector is AV:L with UI:R (required user interaction), so the attack depends on social engineering the target into opening the malicious image. No special GIMP configuration or elevated privileges are needed beyond the ability to run GIMP and open a file, which limits realistic impact to client-side, per-user compromise rather than server or unattended exploitation. |
| Impact | This is a genuine but low-urgency memory-corruption flaw. The Red Hat-provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, 7.3) is dominated by local, user-interaction-gated preconditions: the attacker cannot reach read_layer_block() over a network - a local user must open a specially crafted PSP (Paint Shop Pro) file in GIMP. All exploitation signals point away from active/widespread abuse: EPSS is 0.12% (2nd percentile), CISA SSVC records Exploitation=none, Automatable=no, and Technical Impact=partial, there is no KEV listing, and no public exploit was provided. The C:H/I:H/A:H rating reflects the theoretical worst case (arbitrary code execution from a double-free), but the description itself hedges ('potentially leading to... arbitrary code execution'), and SSVC's 'partial' technical impact suggests reliable code execution is not demonstrated - realistic outcome is a crash/DoS. One notable inconsistency to verify: the vendor assigns PR:L, yet a file-parsing bug typically needs no attacker privileges (the victim's action is already captured by UI:R), so PR:N/UI:R is the more defensible modeling and would slightly raise the base score. Net: real, patchable, but a routine-priority desktop client-side issue, not an emergency. |
| Exploit ScenarioDerived | An attacker distributes a malicious .psp image (via email, download, or a shared file store) and social-engineers a victim into opening it in GIMP. When GIMP's PSP parser reaches read_layer_block(), the crafted layer data triggers a double-free (CWE-415), corrupting heap metadata and most likely crashing GIMP, with a possibility of code execution in the user's context. No public proof-of-concept exploit was provided, and exploitation requires local user interaction rather than any remote/network path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 22, 2026
Memory corruption in GIMP's Paint Shop Pro (.psp) import parser lets an attacker crash the application or possibly execute code by persuading a victim to open a crafted PSP image file. The root cause is a double-free (CWE-415) in the read_layer_block() routine; exploitation requires local user interaction to open the file and results in per-user, client-side compromise rather than server-side or unattended exploitation. There is no public exploit identified at time of analysis, the SSVC decision framework rates exploitation as 'none' and automatable as 'no', and EPSS is low at 0.12% (2nd percentile), yet Red Hat tracks the defect across RHEL 6 through 9 and a vendor patch plus an upstream commit are available.
Earlier versions of this analysis (1)
Double-free memory corruption in GIMP's PSP file format parser exposes local users to denial of service and potential arbitrary code execution when opening a specially crafted Paint Shop Pro image file. The flaw in read_layer_block() allows heap memory corruption that reliably crashes GIMP and, in a more sophisticated exploitation scenario, could enable arbitrary code execution with the privileges of the victim user. No public exploit has been identified and this vulnerability does not appear in the CISA KEV catalog, though upstream tagging of the issue as RCE-capable warrants patching in environments where GIMP users may open untrusted image files.
RemediationAI
Update GIMP to a build that includes the upstream fix for the PSP parser; the authoritative patch reference is the GNOME GitLab commit b22e147b (issue 16207), and Red Hat has published a vendor patch/advisory path via https://access.redhat.com/security/cve/CVE-2026-58381 and https://bugzilla.redhat.com/show_bug.cgi?id=2496166 - install the updated gimp package for your RHEL 6/7/8/9 release and any downstream rebuilds, noting that an exact patched GIMP version number is not disclosed in the available data and should be confirmed with the vendor advisory. If immediate patching is not possible, the most effective compensating control is to prevent untrusted .psp files from reaching the parser: remove or rename the file-psp plug-in from the GIMP plug-ins directory (or block the associated MIME type in mail gateways, browsers, and file handlers), accepting the trade-off that legitimate Paint Shop Pro images can no longer be opened by that installation. Running GIMP under a sandbox or mandatory access-control confinement (Flatpak/Snap sandboxing, SELinux or AppArmor profile restricted to the user's home directory) limits the blast radius of heap corruption but can break plug-in access to files outside the sandbox. Training users not to open PSP files from untrusted sources addresses the required UI:R interaction, and because exploitation is not automatable (SSVC Automation: no) and no public exploit code exists, these measures are proportionate to a low-urgency, client-side defect rather than an emergency response.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GIMP ships a set of file-format plug-ins, one of which (file-psp) parses Paint Shop Pro image files. During parsing, read_layer_block() handles the per-layer data structures in a PSP file and, on a crafted input, releases the same heap allocation twice. This is a classic double-free (CWE-415), a memory-safety defect class that corrupts heap metadata and can be steered toward arbitrary write, denial of service via crash, or, in favorable allocator layouts, code execution in the context of the GIMP process. Unlike a buffer overflow, the corruption arises from freeing an already-freed pointer and reusing or freeing it again. The CPE data in the intelligence feed maps the issue to Red Hat Enterprise Linux 6, 7, 8, and 9 packages rather than to an upstream GIMP CPE, indicating the flaw is tracked as a distribution-level backport target; the upstream fix is recorded in the GNOME GitLab commit b22e147b and issue 16207. The assessed CVSS vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) places this as a local, user-interaction-driven attack with high confidentiality, integrity, and availability impact on the single affected user session.
Know when Gimp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Local file-parse bug needing no attacker privileges (PR:N) but victim must open the crafted PSP (UI:R); worst-case double-free code execution justifies C/I/A:H.
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
Primary rating from Vendor (redhat).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
A flaw was found in GIMP's PSP file format parser. A double-free condition occurs in the read_layer_block() function when processing a specially crafted PSP file. This could allow an attacker to cause memory corruption, potentially leading to denial of service or arbitrary code execution.
Executive ViewAI
GIMP’s Paint Shop Pro image import parser contains a high-severity memory-corruption flaw (CVE-2026-58381) that can crash the application or potentially allow code execution when a user opens a crafted .psp file. This is a client-side, per-user risk that primarily affects workstation users who work with PSP files-such as creative, design, or engineering staff-and is not remotely exploitable without user interaction. Leadership should care because successful exploitation could disrupt productivity, expose local user data, or provide a foothold on endpoints, though no public exploit has been identified and vendor patches are available.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)NVD
Buffer overflow in the readstr_upto function in plug-ins/script-fu/tinyscheme/scheme.c in GIMP 2.6.12 and earlier, and p
Multiple stack-based buffer overflows in file-xwd.c in the X Window Dump (XWD) plug-in in GIMP 2.8.2 allow remote attack
In GIMP 2.8.22, there is a heap-based buffer overflow in read_channel_data in plug-ins/common/file-psp.c. Rated high sev
fits-io.c in GIMP before 2.8.1 allows remote attackers to cause a denial of service (NULL pointer dereference and applic
An issue in gimp_layer_invalidate_boundary of GNOME GIMP 2.10.30 allows attackers to trigger an unhandled exception via
GIMP 2.10.30 and 2.99.10 are vulnerable to Buffer Overflow. Rated medium severity (CVSS 5.5), this vulnerability is no a
GIMP through 2.10.2 makes g_get_tmp_dir calls to establish temporary filenames, which may result in a filename that alre
Critical remote code execution vulnerability in GIMP's ICO file parser caused by an integer overflow (CWE-190) that lack
Remote code execution in GIMP 3.0.6 allows attackers to run arbitrary code by tricking a user into opening a malicious P
Remote code execution in GIMP 3.2.0-rc1 lets attackers run arbitrary code by tricking a user into opening a malicious IC
Use-after-free vulnerability in the xcf_load_image function in app/xcf/xcf-load.c in GIMP allows remote attackers to cau
Heap-based buffer overflow in GIMP's TIF file parser enables remote code execution when a user opens a crafted TIFF imag
Same weakness CWE-415 – Double Free
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| openSUSE Leap 16.0 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP4 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP5 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP6 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-41434
GHSA-pfjw-r4vx-pmfw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB