Description
A flaw was found in GIMP. The PSD thumbnail resource loader performs a BGR-to-RGB channel swap with a fixed 3-byte stride and does not verify that the JPEG thumbnail is RGB. A crafted grayscale PSD thumbnail can cause a heap out-of-bounds read and write in the plug-in process, leading to a crash and potentially arbitrary code execution when the victim browses or opens the file.
Published: 2026-10-19
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

Vendor Workaround

Avoid opening or browsing untrusted PSD files in GIMP. If GIMP is unused, remove the gimp package. --- CME Mitigation Guidance (2026-10-20) --- Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure. The highest-value action is to verify JPEG thumbnail component counts and validate RGB format before applying channel swapping in the GIMP PSD plug-in loader: upgrade to the fixed Gimp/Gimp:2.8/Gimp builds, which verifies that the embedded JPEG thumbnail is RGB and checks the component count before applying the fixed 3-byte stride BGR-to-RGB swap in load_resource_1033 to prevent reading and writing past the heap buffer, closing all 2 injection vectors (browsing a directory containing a crafted PSD file in GIMP file chooser, opening a crafted PSD file directly in GIMP). Until patched, this is a concern on Linux desktop and workstation systems running GIMP, so Avoid opening or browsing directories containing untrusted PSD files within GIMP file chooser dialogs, or uninstall the gimp package if image editing is not required. As a compensating measure, Enforce SELinux in enforcing mode to restrict GIMP process system capabilities and file access, Deploy EDR agents to monitor and detect post-exploitation activity, abnormal child processes, or anomalous memory patterns, Utilize Falco or eBPF runtime security monitoring to detect unexpected shell execution or outbound network connections from the GIMP process, Ensure system-wide Address Space Layout Randomization is enabled to prevent reliable prediction of code and heap payload locations, and Enable Non-Executable Memory (NX/XD bit) protection to block direct execution of shellcode injected into heap pages. These controls limit blast radius and contain exploitation, but they do not fix the underlying fixed-stride channel swap heap buffer overflow defect — apply the upstream patch to fully remediate. Highest-impact CME: CME-301 SELinux (Enforcing Mode) (medium)

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp

Tue, 20 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 20 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Mon, 19 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Description A flaw was found in GIMP. The PSD thumbnail resource loader performs a BGR-to-RGB channel swap with a fixed 3-byte stride and does not verify that the JPEG thumbnail is RGB. A crafted grayscale PSD thumbnail can cause a heap out-of-bounds read and write in the plug-in process, leading to a crash and potentially arbitrary code execution when the victim browses or opens the file.
Title Gimp: gimp: heap out-of-bounds read/write in psd thumbnail loader (load_resource_1033)
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-121
CPEs cpe:/o:redhat:enterprise_linux:10
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': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Gimp Gimp
Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-20T20:58:45.925Z

Reserved: 2026-10-19T13:14:33.431Z

Link: CVE-2026-112257

cve-icon Vulnrichment

Updated: 2026-10-20T14:47:22.067Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-19T22:17:05.420

Modified: 2026-10-20T15:17:13.717

Link: CVE-2026-112257

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-12T00:00:00Z

Links: CVE-2026-112257 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-21T16:47:16Z

Weaknesses