CVE-2026-136328Gimp: heap-based buffer overflow in the psd merged-image lab path
A flaw was found in the file-psd plugin in GIMP. When processing a specially crafted PSD (Photoshop Document) image file in LAB color mode, the plugin does not properly validate that a fourth channel is present when the transparency flag is set. This mismatch causes the merged-image path to allocate buffers for three components while performing color conversion with four-component formats, resulting in a heap-based buffer overflow. This issue can result in an application crash, leading to a denial of service, or potentially allow for arbitrary code execution.
What to do
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gimp | Fix pending | UBUNTU-CVE-2026-136328 | |
| Ubuntu 26.04 | gimp | Under investigation | UBUNTU-CVE-2026-136328 | |
| Ubuntu 24.04 | gimp | Fix pending | UBUNTU-CVE-2026-136328 | |
| Ubuntu 22.04 | gimp | Fix pending | UBUNTU-CVE-2026-136328 | |
| Ubuntu 20.04 | gimp | Fix pending | UBUNTU-CVE-2026-136328 | |
| Ubuntu 18.04 | gimp | Fix pending | UBUNTU-CVE-2026-136328 | |
| Ubuntu 16.04 | gimp | Fix pending | UBUNTU-CVE-2026-136328 | |
| Debian 14 | gimp | Fix pending | DEBIAN-CVE-2026-136328 | |
| Debian 13 | gimp | Fix pending | DEBIAN-CVE-2026-136328 | |
| Debian 12 | gimp | Fix pending | DEBIAN-CVE-2026-136328 | |
| Red Hat Enterprise Linux 10 | gimp | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | gimp-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | gimp-devel-tools | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | gimp-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | gimp | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | gimp-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | gimp | Not affected | ||
| Red Hat Enterprise Linux 8 | gimp-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | gimp-devel-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | gimp-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | pygobject2 | Not affected | ||
| Red Hat Enterprise Linux 8 | pygobject2-codegen | Not affected | ||
| Red Hat Enterprise Linux 8 | pygobject2-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | pygobject2-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | pygtk2 | Not affected | ||
| Red Hat Enterprise Linux 8 | pygtk2-codegen | Not affected | ||
| Red Hat Enterprise Linux 8 | pygtk2-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | pygtk2-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-cairo | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-cairo-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-pycairo | Not affected | ||
| Red Hat Enterprise Linux 7 | gimp | Not affected | ||
| Red Hat Enterprise Linux 7 | gimp-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | gimp-devel-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | gimp-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | gimp | Not affected | ||
| Red Hat Enterprise Linux 6 | gimp-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | gimp-devel-tools | Not affected | ||
| Red Hat Enterprise Linux 6 | gimp-help-browser | Not affected | ||
| Red Hat Enterprise Linux 6 | gimp-libs | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNOME GIMP: affected: 2.99.8 and later
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Workaround: To mitigate this vulnerability, do not open PSD (Photoshop Document) files from untrusted sources with GIMP.
References
- https://access.redhat.com/security/cve/CVE-2026-136328
- https://bugzilla.redhat.com/show_bug.cgi?id=2583381
- https://gitlab.gnome.org/GNOME/gimp/-/work_items/17002
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.