GIMP: Arbitrary Code Execution — GLSA 202601-03

A vulnerability has been discovered in GIMP, which can lead to execution of arbitrary code.

Affected packages

media-gfx/gimp on all architectures
Affected versions < 2.10.38-r3
< 3.0.6
Unaffected versions >= 2.10.38-r3
>= 3.0.6

Background

GIMP is the GNU Image Manipulation Program. XCF is the native image file format used by GIMP.

Description

A vulnerability has been discovered in GIMP. Please review the CVE identifier referenced below for details.

Impact

This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of XWD files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.

Workaround

There is no known workaround at this time.

Resolution

All GIMP users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=media-gfx/gimp-3.0.6"
 

All GIMP 2.x users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=media-gfx/gimp-2.10.38-r3 =media-gfx/gimp-2*"
 

References

Release date
January 26, 2026

Latest revision
January 26, 2026: 1

Severity
high

Exploitable
local

Bugzilla entries