# CVE-2026-42170: Gimp: gimp dds plug-in heap-based buffer overflow via bpp mismatch in load\_layer() (ddsread.c)

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-08 · Modified: 2026-11-23
- Aliases: UBUNTU-CVE-2026-42170, DEBIAN-CVE-2026-42170
- Record: https://cvemate.com/vulnerability/CVE-2026-42170 · JSON: https://cvemate.com/vulnerability/CVE-2026-42170/json

## Description

```text
A heap-based buffer overflow vulnerability exists in the GIMP DDS (DirectDraw Surface) file parser. When a crafted DDS file declares a D3D9 pixel format but sets a lower bits-per-pixel (bpp) value in the header, the loader allocates an undersized heap buffer. Subsequent pixel data consumption at the real format's stride causes a write past the heap buffer boundary, leading to heap metadata corruption and potential code execution.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.163%, percentile 5.726%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian gimp (Debian): All versions (No fix recorded) \| \< 3.0.4-3+deb13u10 \| \< 3.2.4-1
- ubuntu gimp (Ubuntu): All versions (No fix recorded)
- redhat enterprise\_linux: 6.0 \| 7.0 \| 8.0 \| 9.0

## References

- <https://access.redhat.com/security/cve/CVE-2026-42170>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2461726>
- <https://ubuntu.com/security/CVE-2026-42170>
- <https://www.cve.org/CVERecord?id=CVE-2026-42170>
- <https://gitlab.gnome.org/GNOME/gimp/-/work_items/16161>
- <https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2758>
- <https://security-tracker.debian.org/tracker/CVE-2026-42170>

---

Data as of 2026-12-05T03:48:32.609Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
