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

- Severity: High 7.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-08-08T15:51:23.386Z
- Modified: 2026-11-23T16:17:47.507Z
- Weaknesses: CWE-131
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- gimp: no versions given
- gimp:2.8/gimp: no versions given
- redhat enterprise_linux: 6.0; 7.0; 8.0; 9.0

## References

- <https://access.redhat.com/security/cve/CVE-2026-42170> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2461726> (issue-tracking)

## Sources

- CVE List: [CVE-2026-42170](https://www.cve.org/CVERecord?id=CVE-2026-42170), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-42170](https://nvd.nist.gov/vuln/detail/CVE-2026-42170), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-42170 · Whole record: https://cve.day/CVE-2026-42170.json · Rebuilt by cve.day 2026-11-25T22:59:31.915Z
