CVE-2025-14422 GIMP PNM File Parsing Integer Overflow Remote Code Execution Vulnerability
Remote attackers can execute arbitrary code by tricking users into opening malicious PNM files in GIMP due to an integer overflow.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-14422?
CVE-2025-14422 is a high-severity vulnerability in Gimp Gimp, published on 23 Dec 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
GIMP PNM File Parsing Integer Overflow Remote Code Execution Vulnerability. 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 PNM files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before allocating a buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-28273.
Weakness: CWE-190
Which versions are affected by CVE-2025-14422?
It affects 1 product.
Linux distribution packages (40)
gimp AlmaLinux:8 | All versions | 2:2.8.22-26.module_el8.10.0+4109+804f132c.4 |
gimp-devel AlmaLinux:8 | All versions | 2:2.8.22-26.module_el8.10.0+4109+804f132c.4 |
gimp-devel-tools AlmaLinux:8 | All versions | 2:2.8.22-26.module_el8.10.0+4109+804f132c.4 |
gimp-libs AlmaLinux:8 | All versions | 2:2.8.22-26.module_el8.10.0+4109+804f132c.4 |
pygobject2 AlmaLinux:8 | All versions | 2.28.7-5.module_el8.10.0+3952+571e801c |
pygobject2-codegen AlmaLinux:8 | All versions | 2.28.7-5.module_el8.10.0+3952+571e801c |
pygobject2-devel AlmaLinux:8 | All versions | 2.28.7-5.module_el8.10.0+3952+571e801c |
pygobject2-doc AlmaLinux:8 | All versions | 2.28.7-5.module_el8.10.0+3952+571e801c |
pygtk2 AlmaLinux:8 | All versions | 2.24.0-25.module_el8.9.0+3725+d1441900 |
pygtk2-codegen AlmaLinux:8 | All versions | 2.24.0-25.module_el8.9.0+3725+d1441900 |
pygtk2-devel AlmaLinux:8 | All versions | 2.24.0-25.module_el8.9.0+3725+d1441900 |
pygtk2-doc AlmaLinux:8 | All versions | 2.24.0-25.module_el8.9.0+3725+d1441900 |
python2-cairo AlmaLinux:8 | All versions | 1.16.3-7.module_el8.10.0+3952+571e801c |
python2-cairo-devel AlmaLinux:8 | All versions | 1.16.3-7.module_el8.10.0+3952+571e801c |
gimp Red Hat:enterprise_linux:8::appstream | All versions | 2:2.8.22-26.module+el8.10.0+23914+4745738d.4 |
gimp-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 2:2.8.22-26.module+el8.10.0+23914+4745738d.4 |
gimp-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 2:2.8.22-26.module+el8.10.0+23914+4745738d.4 |
gimp-devel Red Hat:enterprise_linux:8::appstream | All versions | 2:2.8.22-26.module+el8.10.0+23914+4745738d.4 |
gimp-devel-tools Red Hat:enterprise_linux:8::appstream | All versions | 2:2.8.22-26.module+el8.10.0+23914+4745738d.4 |
gimp-devel-tools-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 2:2.8.22-26.module+el8.10.0+23914+4745738d.4 |
gimp-libs Red Hat:enterprise_linux:8::appstream | All versions | 2:2.8.22-26.module+el8.10.0+23914+4745738d.4 |
gimp-libs-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 2:2.8.22-26.module+el8.10.0+23914+4745738d.4 |
pygobject2 Red Hat:enterprise_linux:8::appstream | All versions | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
pygobject2-codegen Red Hat:enterprise_linux:8::appstream | All versions | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
pygobject2-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
pygobject2-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
pygobject2-devel Red Hat:enterprise_linux:8::appstream | All versions | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
pygobject2-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:2.28.7-5.module+el8.10.0+22676+becd68d6 |
pygtk2 Red Hat:enterprise_linux:8::appstream | All versions | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
pygtk2-codegen Red Hat:enterprise_linux:8::appstream | All versions | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
pygtk2-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
pygtk2-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
pygtk2-devel Red Hat:enterprise_linux:8::appstream | All versions | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
pygtk2-doc Red Hat:enterprise_linux:8::appstream | All versions | 0:2.24.0-25.module+el8.9.0+21228+8e80d31d |
python2-cairo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
python2-cairo-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
python2-cairo-devel Red Hat:enterprise_linux:8::appstream | All versions | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
python2-pycairo Red Hat:enterprise_linux:8::appstream | All versions | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
python2-pycairo-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:1.16.3-7.module+el8.10.0+22676+becd68d6 |
gimp Red Hat:rhel_aus:8.2::appstream | All versions | 2:2.8.22-16.module+el8.2.0+23929+1dcebf0e.6 |
Products include Gimp Gimp.
How do I fix CVE-2025-14422?
Apply the vendor's patch.
Is CVE-2025-14422 being exploited?
There is no known exploitation of CVE-2025-14422 in the wild and no public exploit code.
Other vulnerabilities in Gimp Gimp
Sources
Also known as ALSA-2026:1574, DEBIAN-CVE-2025-14422, GHSA-j55m-596h-f8pc, RHSA-2026:1574, RHSA-2026:1584, RHSA-2026:1588 and 4 more.