Heap-based buffer overflow in Gimp - CVE-2025-14425

 

Heap-based buffer overflow in Gimp - CVE-2025-14425

Published: December 18, 2025


Vulnerability identifier: #VU120195
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-14425
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the load_image() function in plug-ins/common/file-jp2.c. A remote attacker can trick the victim into opening a specially crafted JP2  file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Gimp
Debian Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Workstation Extension 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
SUSE Package Hub 15
openSUSE Leap
Ubuntu
openEuler
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
gimp (Ubuntu package)
gimp-libs
gimp-help
gimp-devel
gimp-debugsource
gimp-debuginfo
gimp
gimp-lang
gimp-devel-debuginfo
libgimp-2_0-0-debuginfo
libgimpui-2_0-0
libgimp-2_0-0
gimp-plugin-aa
libgimpui-2_0-0-debuginfo
gimp-plugin-aa-debuginfo
libgimpui-2_0-0-64bit
libgimp-2_0-0-64bit-debuginfo
libgimp-2_0-0-64bit
libgimpui-2_0-0-64bit-debuginfo
libgimpui-2_0-0-32bit
libgimp-2_0-0-32bit-debuginfo
libgimp-2_0-0-32bit
libgimpui-2_0-0-32bit-debuginfo
gimp (Debian package)
gimp (Red Hat package)
gimp-vala
gimp-plugin-python3
gimp-extension-goat-excercises

How to mitigate CVE-2025-14425

Install updates from vendor's website.

gimp (Ubuntu package) - addressed in versions 2.8.16-1ubuntu1.1+esm1, 2.8.22-1ubuntu0.1~esm1, 2.10.18-1ubuntu0.1+esm1, 2.10.30-1ubuntu0.1+esm1, 2.10.36-3ubuntu0.24.04.1+esm1
gimp-libs - addressed in versions 2.10.6-17, 3.0.2-7
gimp-help - update to 2.10.6-17
gimp-devel - addressed in versions 2.10.6-17, 3.0.2-7
gimp-debugsource - addressed in versions 2.10.6-17, 3.0.2-7
gimp-debuginfo - addressed in versions 2.10.6-17, 3.0.2-7
gimp - addressed in versions 2.10.6-17, 3.0.2-7
gimp-lang - update to 2.10.30-150400.3.38.1
gimp-devel-debuginfo - update to 2.10.30-150400.3.38.1
gimp-debuginfo - update to 2.10.30-150400.3.38.1
libgimp-2_0-0-debuginfo - update to 2.10.30-150400.3.38.1
libgimpui-2_0-0 - update to 2.10.30-150400.3.38.1
libgimp-2_0-0 - update to 2.10.30-150400.3.38.1
gimp-plugin-aa - update to 2.10.30-150400.3.38.1
libgimpui-2_0-0-debuginfo - update to 2.10.30-150400.3.38.1
gimp-plugin-aa-debuginfo - update to 2.10.30-150400.3.38.1
gimp-debugsource - update to 2.10.30-150400.3.38.1
gimp - update to 2.10.30-150400.3.38.1
libgimpui-2_0-0-64bit - update to 2.10.30-150400.3.38.1
libgimp-2_0-0-64bit-debuginfo - update to 2.10.30-150400.3.38.1
libgimp-2_0-0-64bit - update to 2.10.30-150400.3.38.1
libgimpui-2_0-0-64bit-debuginfo - update to 2.10.30-150400.3.38.1
libgimpui-2_0-0-32bit - update to 2.10.30-150400.3.38.1
libgimp-2_0-0-32bit-debuginfo - update to 2.10.30-150400.3.38.1
libgimp-2_0-0-32bit - update to 2.10.30-150400.3.38.1
libgimpui-2_0-0-32bit-debuginfo - update to 2.10.30-150400.3.38.1
gimp-devel - update to 2.10.30-150400.3.38.1
gimp (Debian package) - addressed in versions 2.10.34-1+deb12u6, 3.0.4-3+deb13u4
gimp (Red Hat package) - addressed in versions 2.99.8-3.el9_0.3, 2.99.8-4.el9_2.3, 2.99.8-4.el9_4.3, 2.99.8-4.el9_6.4, 3.0.4-1.el9_7.2
gimp-vala - update to 3.0.2-7
gimp-plugin-python3 - update to 3.0.2-7
gimp-plugin-aa - update to 3.0.2-7
gimp-extension-goat-excercises - update to 3.0.2-7

External References

Related Security Bulletins