# CVE-2026-42170: gimp: A heap-based buffer overflow vulnerability exists in the GIMP DDS (DirectDraw Surface) file parser

CVE-2026-42170 is fixed in gimp on 1 platform, first by DEBIAN-CVE-2026-42170, released August 5, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-42170
- Priority: High
- CVSS: 7.8 (high)
- EPSS: 0.0019
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 8, 2026

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | gimp Debian 13.5 (trixie) | 3.0.4-3+deb13u10 | [DEBIAN-CVE-2026-42170](https://patchblox.com/security/data/fix/linux/debian-cve-2026-42170.md) | Aug 5, 2026 |
| Linux | gimp Debian 14 | 3.2.4-1 | [DEBIAN-CVE-2026-42170](https://patchblox.com/security/data/fix/linux/debian-cve-2026-42170.md) | Aug 5, 2026 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
