---
id: CVE-2026-112257
title: >-
  Gimp: gimp: heap out-of-bounds read/write in psd thumbnail loader
  (load_resource_1033)
summary: >-
  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-bound…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-121
vendor: Red Hat
product: gimp
affected:
  - gimp (all versions)
  - gimp
  - gimp (all versions)
  - 'gimp:2.8/gimp (all versions)'
  - gimp (all versions)
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-20T14:47:14.486852Z'
published: '2026-10-19'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T20:09:47.104Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-112257'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2026-112257'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2555574'
    label: RHBZ#2555574
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-112257.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-112257'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-112257'
tags:
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00167
epssPercentile: 0.05919
ingestedAt: '2026-10-19T21:43:56.109Z'
---

## Overview

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.

## Affected

- `gimp (all versions)`
- `gimp`
- `gimp (all versions)`
- `gimp:2.8/gimp (all versions)`
- `gimp (all versions)`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

Avoid opening or browsing untrusted PSD files in GIMP. If GIMP is unused, remove the gimp package.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-10-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-112257.json)
