Description
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.
Published: 2026-07-02
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A double‑free condition exists in GIMP’s read_layer_block() function, which can be triggered by parsing a specially crafted PSP file. When the same memory buffer is freed twice, heap corruption occurs. This can lead the GIMP application to crash, causing a denial of service, or in some scenarios allow the attacker to redirect execution flow within the GIMP process, potentially enabling local arbitrary code execution.

Affected Systems

Red Hat Enterprise Linux 6, 7, 8, and 9 systems that install the GIMP package from the Red Hat repositories are affected. The vulnerability exists in all GIMP releases distributed by Red Hat that have not applied the latest security fix for the PSP parser, regardless of the specific GIMP version number.

Risk and Exploitability

The CVSS score of 6.1 indicates a moderate severity level. The EPSS score of less than 1 % suggests a low likelihood of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, the likely attack vector is a local user‑initiated action where an attacker persuades a user to open a malicious PSP file. Successful exploitation could either crash the GIMP application, resulting in a denial of service, or enable code execution confined to the GIMP process.

Generated by OpenCVE AI on July 24, 2026 at 11:19 UTC.

Remediation

Vendor Workaround

None — requires opening a crafted PSP file.


OpenCVE Recommended Actions

  • Apply the latest GIMP package update from Red Hat to eliminate the double‑free issue.
  • Restrict opening PSP files to trusted sources or run GIMP in a sandboxed environment to limit the impact of any remaining heap corruption.
  • If GIMP is not required for daily work, uninstall or disable the package entirely to remove the attack surface.

Generated by OpenCVE AI on July 24, 2026 at 11:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 07 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 02 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Gimp: gimp: double-free in read_layer_block()
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-415
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:H'}


Subscriptions

Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-07T17:02:18.749Z

Reserved: 2026-06-30T16:54:04.312Z

Link: CVE-2026-58381

cve-icon Vulnrichment

Updated: 2026-07-06T18:05:05.656Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-24T11:30:05Z

Weaknesses