CVE-2026-90949: Gimp: gimp: heap-based buffer overflow in psp loader due to selection-channel geometry mismatch

Published Sep 14, 2026
·
Updated

A flaw was found in GIMP's PSP (Paint Shop Pro) file loader. When processing a compressed selection channel, a heap-based buffer overflow can occur due to a mismatch between the allocated buffer size and the amount of data decompressed. A remote attacker could exploit this vulnerability by crafting a malicious PSP file. Opening this file in GIMP could lead to a crash or arbitrary code execution.

Other sources

A heap-based buffer overflow flaw was found in GIMP's PSP (Paint Shop Pro) file loader. When processing a compressed selection channel, readselectionblock() allocates a buffer sized to the selection rectangle's dimensions, while readchanneldata() derives the amount of data to decompress from the full image dimensions instead. A specially crafted PSP file can exploit this mismatch to decompress data far exceeding the allocated buffer, causing a heap-based buffer overflow. An attacker could exploit this by crafting a malicious PSP file that, when opened in GIMP, leads to a crash or arbitrary code execution in the context of the user running GIMP.

Red Hat

Affected Software

1 affected component
GIMP GIMP

Event History

Sep 14, 2026
Data Sourced
via Red Hat·12:35 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·01:20 PM
Data Sourced
via MITRE·01:20 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What must an attacker do to exploit this issue?

An attacker must craft a malicious Paint Shop Pro (PSP) file containing a compressed selection channel whose selection geometry differs from the full image geometry. The victim must open that file in GIMP.

2

Is exploitation possible without an existing GIMP account or privileges?

Yes. The vulnerability has no privilege requirement, but it requires user interaction because the malicious PSP file must be opened in GIMP. Code execution or a crash would occur in the context of the user running GIMP.

3

What impact should be expected if a malicious file is opened?

The malformed file can cause a heap-based buffer overflow, potentially resulting in a GIMP crash or arbitrary code execution with the affected user's privileges.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203