GNOME GIMP
Gimp: integer overflow when generating a thumbnail preview for a psd file
A flaw was found in the file-psd plugin in GIMP. When generating a thumbnail preview for a specially crafted PSD (Photoshop Document) image file, an integer overflow occurs during the multiplication of values from an embedded JPEG header. This leads to an undersized heap allocation, resulting in a heap-based buffer overflow when the image data is decoded. This buffer overflow corrupts adjacent heap objects, allowing for a controlled memory write that can result in an application crash or arbitrary code execution.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 8100020261015094823.4c9c024f
Fixed in 2:3.0.4-4.el9_8.14
Fixed in 2:3.0.4-8.el9_9.4
Fixed in 2:2.99.8-4.el9_2.7
Mitigation
Upgrade Red Hat Enterprise Linux 8 to 8100020261015094823.4c9c024f or later.
Upgrade Red Hat Enterprise Linux 9 to 2:3.0.4-4.el9_8.14 or later.
Upgrade Red Hat Enterprise Linux 9 to 2:3.0.4-8.el9_9.4 or later.
Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 2:2.99.8-4.el9_2.7 or later.
Workaround
To mitigate this vulnerability, do not navigate to directories containing PSD files from untrusted sources using the GIMP file chooser. Additionally, users can disable thumbnail generation in the preferences to prevent the vulnerable code path from being reached.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:75575
- Vendor advisory access.redhat.com/errata/RHSA-2026:84744
- Vendor advisory access.redhat.com/errata/RHSA-2026:93589
1 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:98462
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.