A flaw was found in the file-pcx plugin in GIMP, affecting 32-bit builds only. When processing a PCX image file, the plugin calculates memory allocation sizes based on the image dimensions and the number of color planes. If a crafted file sets the number of planes to 4 alongside sufficiently large dimensions, the calculation exceeds the 32-bit integer limit and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when the plugin subsequently writes image data into the undersized buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.
Fix
Patch, vendor advisory and mitigation references on NVD 4
- https://access.redhat.com/security/cve/CVE-2026-78465 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2522057 Issue Tracking, Vendor Advisory
- https://gitlab.gnome.org/GNOME/gimp/-/work_items/16578 Issue Tracking, Vendor Advisory, Exploit, Mitigation
- https://gitlab.gnome.org/GNOME/gimp/-/work_items/16578 Issue Tracking, Vendor Advisory, Exploit, Mitigation
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.0 · gimpNVD modified 2026-10-14 13:10
Affected (CPE criteria) 2
cpe:2.3:a:gimp:gimp:*:*:*:*:*:*:*:*cpe:2.3:a:gimp:gimp:3.3.1:*:*:*:*:*:*:*
References 4
- https://access.redhat.com/security/cve/CVE-2026-78465 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2522057 Issue Tracking, Vendor Advisory
- https://gitlab.gnome.org/GNOME/gimp/-/work_items/16578 Issue Tracking, Vendor Advisory, Exploit, Mitigation
- https://gitlab.gnome.org/GNOME/gimp/-/work_items/16578 Issue Tracking, Vendor Advisory, Exploit, Mitigation