CVE-2026-58381

Gimp: gimp: double-free in read_layer_block()

Published Jul 2, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 August 1, 2026 at 21:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6470-1 gimp security update
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Type Values Removed Values Added
First Time appeared Redhat rhel Els
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
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:2.3:a:gimp:gimp:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 24, 2026, 8:54 PM
Reserved
Jun 30, 2026, 4:54 PM
Status
Analyzed
Published
Jul 2, 2026, 8:17 PM
Modified
Nov 24, 2026, 9:18 PM