Summary
A flaw (CWE-125, out-of-bounds read) exists in the add_merged_image function of GIMP's file-psd plugin. Bounds checks performed while loading PSD alpha channel metadata are incorrect. As a result, a crafted PSD file can crash the application and may allow arbitrary code execution.
The CVSS 3.1 score is 7.8 (High). The attack vector is local: the malicious file must be delivered to the victim, e.g. via email or download. The attacker needs no privileges on the system. However, the attack requires user interaction, since the user must open the file in GIMP. A successful attack can fully compromise confidentiality, integrity and availability in the context of the user running GIMP.
The vulnerability is not listed in the CISA KEV catalog, and no EPSS data is available.
Who is affected
Organizations and users running GIMP on Red Hat Enterprise Linux 6, 7, 8, 9 and 10, or on other distributions shipping the vulnerable file-psd plugin.
What to do
- Fixed package versions are not listed in the record. Check the official Red Hat advisory (https://access.redhat.com/security/cve/CVE-2026-138781) and apply available gimp package updates.
- Vendor workaround: do not open PSD files from untrusted sources with GIMP.
- Identify exposure by inventorying systems with the gimp package installed (e.g. rpm -q gimp).
- Where GIMP is not needed, consider removing the package from servers and workstations.
- For technical details of the fix, track the upstream fix in GNOME GitLab (commit 7a5814cf, work item 17021).
Vendor workaround
Do not open PSD files from untrusted sources with GIMP.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-125 Out-of-bounds Read
References
- access.redhat.com/security/cve/CVE-2026-138781
- bugzilla.redhat.com/show_bug.cgi?id=2586075
- gitlab.gnome.org/GNOME/gimp/-/commit/7a5814cf73a6cde176d1ed9c104504fa18b9c5a3
- gitlab.gnome.org/GNOME/gimp/-/work_items/17021
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.