# CVE-2026-112257: GIMP heap out-of-bounds access in PSD thumbnail loader

Source: https://junglewise.ai/threats/cve-2026-112257-a-flaw-was-found-in-gimp-the-psd-thumbnail-resource-loader  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-19. Updated: 2026-10-19  
License: CC BY 4.0 with a link back

CVE-2026-112257 · Severity: high · CVSS 7.8 · Published 2026-10-19

GIMP is an image editing application used for creating and manipulating graphics. A flaw in its PSD file thumbnail handling can be exploited when a user opens or browses a malicious PSD file, potentially leading to application crashes or arbitrary code execution on the attacker's behalf.

Technologies: [GIMP](https://junglewise.ai/threats/technologies/x-gimp).

## Quick answers

**Is CVE-2026-112257 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-112257 being exploited in the wild.

**How severe is CVE-2026-112257?** High severity, with a CVSS score of 7.8, published 19 October 2026.

**Which products and versions are affected?** GIMP.

**Is there a fix for CVE-2026-112257?** No fixed version is recorded yet. Avoid opening or browsing untrusted PSD files in GIMP. If GIMP is not in use, remove the package entirely from your system.</anigation>
<parameter name="timeline">[{"kind": "disclosed", "at": "2026-10-19"}] If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-112257 attacked?** It is attacked with local access.

**Am I affected by CVE-2026-112257?** Check whether you run GIMP. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix


Avoid opening or browsing untrusted PSD files in GIMP. If GIMP is not in use, remove the package entirely from your system.</anigation>
<parameter name="timeline">[{"kind": "disclosed", "at": "2026-10-19"}]

## Technical details

The PSD thumbnail resource loader in GIMP performs a BGR-to-RGB channel swap with a fixed 3-byte stride without validating that the embedded JPEG thumbnail is actually in RGB format. A crafted grayscale PSD thumbnail triggers a heap out-of-bounds read and write in the plug-in process. Exploitation requires user interaction (opening or browsing the file in GIMP), and successfully accessing memory allows potential arbitrary code execution.

## Affected products

- GIMP

## References

- [https://access.redhat.com/downloads/content/package-browser/](https://access.redhat.com/downloads/content/package-browser/)
- [https://access.redhat.com/security/cve/CVE-2026-112257](https://access.redhat.com/security/cve/CVE-2026-112257)

## Related threats

- [GIMP NULL pointer dereference in SBZ palette import](https://junglewise.ai/threats/cve-2026-112259-a-flaw-was-found-in-gimp-importing-a-crafted-sbz-palette-without)
- [GIMP NULL pointer dereference in XCF loader](https://junglewise.ai/threats/cve-2026-108093-a-flaw-was-found-in-gimp-the-xcf-loader-processes-image)
- [GIMP heap buffer overflow in Hot color filter](https://junglewise.ai/threats/cve-2026-106067-a-heap-based-buffer-overflow-was-found-in-gimp-s-hot-color)
- [GIMP heap buffer overflow in PCX export](https://junglewise.ai/threats/cve-2026-106065-a-heap-based-buffer-overflow-was-found-in-gimp-s-pcx-export-plug)
- [GIMP heap buffer over-read in XMC thumbnail loader](https://junglewise.ai/threats/cve-2026-106061-a-flaw-was-found-in-gimp-s-x-cursor-xmc-thumbnail-loader-when)
