Incorrect Calculation of Buffer Size Affecting gimp package, versions <3.2.4-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-GIMP-18533445
  • published5 Aug 2026
  • disclosed8 Aug 2026

Introduced: 5 Aug 2026

NewCVE-2026-42170  (opens in a new tab)
CWE-131  (opens in a new tab)

How to fix?

Upgrade Debian:unstable gimp to version 3.2.4-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gimp package and not the gimp package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1