Skip to content
Threat Brief

← All advisories

CVE-2026-42170

High 7.8No known exploitationFix status unknown

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

Record last updated

CVSS score

7.8

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.2%

Higher than 9% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-131

Patching and mitigation

Patch status
Unknown: no source documents a fix
Mitigation
Users should avoid opening untrusted DirectDraw Surface (DDS) image files with GIMP. As a general security practice, only process files from trusted sources. If GIMP is not essential, consider removing the `gimp` package to eliminate this attack vector.
Vendor guidance
access.redhat.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Red HatRed Hat Enterprise Linux 6Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 7Not documentedNot documentedCVE Program
Red HatRed Hat Enterprise Linux 8Not documentedNot documentedCVE Program
redhatenterprise_linux6.0Not documentedNIST NVD
redhatenterprise_linux7.0Not documentedNIST NVD
redhatenterprise_linux8.0Not documentedNIST NVD
redhatenterprise_linux9.0Not documentedNIST NVD
Red HatRed Hat Enterprise Linux 9 (status unknown)Not documentedNot documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by redhat

    Source: CVE Program (opens in a new tab)

Vendor guidance and references