CVE-2026-90948: Gimp: gimp: heap-based buffer overflow in ico loader via integer overflow in embedded png dimensions

Published Sep 14, 2026
·
Updated

A flaw was found in GIMP's ICO file loader. When processing an ICO file containing an embedded PNG image, an integer overflow can occur during the calculation of the required buffer size. This leads to an undersized buffer being allocated, causing a heap-based buffer overflow when the decoded pixel data is written. A remote attacker could exploit this by crafting a malicious ICO file, which, when opened, could lead to arbitrary code execution or a crash.

Other sources

A heap-based buffer overflow flaw was found in GIMP's ICO file loader. When processing an ICO file containing an embedded PNG image, ico-load.c calculates the required buffer size using an unchecked 32-bit signed multiplication of the image's width and height. Specially crafted dimensions can overflow this calculation, causing an undersized buffer to be allocated, while libpng continues decoding the image using the original, unvalidated dimensions. This results in a heap-based buffer overflow when the decoded pixel data is written past the end of the allocated buffer. An attacker could exploit this by crafting a malicious ICO 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:04 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 trigger this issue?

An attacker must provide a crafted ICO file containing an embedded PNG with specially chosen dimensions, and the target must open that file in GIMP. The vulnerable calculation occurs while GIMP's ICO loader processes the embedded PNG image.

2

Is authentication or elevated privilege required for exploitation?

No authentication or privileges are required by the attacker. Exploitation requires user interaction because the malicious ICO file must be opened in GIMP.

3

What is the potential impact if exploitation succeeds?

The flaw can cause a heap-based buffer overflow in the context of the user running GIMP. The stated outcomes are a crash or arbitrary code execution with that 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