GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration
ubuntu-cve-2026-42170
Vulnerability from osv_ubuntu
Published
2026-08-08 16:16
Modified
2026-08-13 00:05
Summary
Details

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.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "gimp",
            "binary_version": "2.8.16-1ubuntu1.1+esm3"
          },
          {
            "binary_name": "gimp-data",
            "binary_version": "2.8.16-1ubuntu1.1+esm3"
          },
          {
            "binary_name": "libgimp2.0",
            "binary_version": "2.8.16-1ubuntu1.1+esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "gimp",
        "purl": "pkg:deb/ubuntu/gimp@2.8.16-1ubuntu1.1+esm3?arch=source\u0026distro=esm-apps/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.8.14-1ubuntu2",
        "2.8.14-1.2ubuntu1",
        "2.8.16-1ubuntu1",
        "2.8.16-1ubuntu1.1",
        "2.8.16-1ubuntu1.1+esm1",
        "2.8.16-1ubuntu1.1+esm2",
        "2.8.16-1ubuntu1.1+esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "gimp",
            "binary_version": "2.8.22-1ubuntu0.1~esm3"
          },
          {
            "binary_name": "gimp-data",
            "binary_version": "2.8.22-1ubuntu0.1~esm3"
          },
          {
            "binary_name": "libgimp2.0",
            "binary_version": "2.8.22-1ubuntu0.1~esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "gimp",
        "purl": "pkg:deb/ubuntu/gimp@2.8.22-1ubuntu0.1~esm3?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.8.20-1",
        "2.8.20-1.1",
        "2.8.20-2",
        "2.8.22-1",
        "2.8.22-1ubuntu0.1~esm1",
        "2.8.22-1ubuntu0.1~esm2",
        "2.8.22-1ubuntu0.1~esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "gimp",
            "binary_version": "2.10.18-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "gimp-data",
            "binary_version": "2.10.18-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "libgimp2.0",
            "binary_version": "2.10.18-1ubuntu0.1+esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "gimp",
        "purl": "pkg:deb/ubuntu/gimp@2.10.18-1ubuntu0.1+esm3?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.10.8-2",
        "2.10.14-2",
        "2.10.14-2build1",
        "2.10.14-2ubuntu1",
        "2.10.14-3",
        "2.10.18-1",
        "2.10.18-1ubuntu0.1",
        "2.10.18-1ubuntu0.1+esm1",
        "2.10.18-1ubuntu0.1+esm2",
        "2.10.18-1ubuntu0.1+esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "gimp",
            "binary_version": "2.10.30-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "gimp-data",
            "binary_version": "2.10.30-1ubuntu0.1+esm3"
          },
          {
            "binary_name": "libgimp2.0",
            "binary_version": "2.10.30-1ubuntu0.1+esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:22.04:LTS",
        "name": "gimp",
        "purl": "pkg:deb/ubuntu/gimp@2.10.30-1ubuntu0.1+esm3?arch=source\u0026distro=esm-apps/jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.10.24-2",
        "2.10.28-1",
        "2.10.30-1",
        "2.10.30-1build1",
        "2.10.30-1ubuntu0.1",
        "2.10.30-1ubuntu0.1+esm1",
        "2.10.30-1ubuntu0.1+esm2",
        "2.10.30-1ubuntu0.1+esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "gimp",
            "binary_version": "2.10.36-3ubuntu0.24.04.1+esm3"
          },
          {
            "binary_name": "gimp-data",
            "binary_version": "2.10.36-3ubuntu0.24.04.1+esm3"
          },
          {
            "binary_name": "libgimp2.0t64",
            "binary_version": "2.10.36-3ubuntu0.24.04.1+esm3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:24.04:LTS",
        "name": "gimp",
        "purl": "pkg:deb/ubuntu/gimp@2.10.36-3ubuntu0.24.04.1+esm3?arch=source\u0026distro=esm-apps/noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.10.34-1",
        "2.10.36-1",
        "2.10.36-2",
        "2.10.36-3build2",
        "2.10.36-3build3",
        "2.10.36-3ubuntu0.24.04.1",
        "2.10.36-3ubuntu0.24.04.1+esm1",
        "2.10.36-3ubuntu0.24.04.1+esm2",
        "2.10.36-3ubuntu0.24.04.1+esm3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "gimp",
            "binary_version": "3.2.2-1ubuntu0.26.04.1"
          },
          {
            "binary_name": "gimp-data",
            "binary_version": "3.2.2-1ubuntu0.26.04.1"
          },
          {
            "binary_name": "gir1.2-gimp-3.0",
            "binary_version": "3.2.2-1ubuntu0.26.04.1"
          },
          {
            "binary_name": "libgimp-3.0-0",
            "binary_version": "3.2.2-1ubuntu0.26.04.1"
          },
          {
            "binary_name": "libgimp-3.0-bin",
            "binary_version": "3.2.2-1ubuntu0.26.04.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "gimp",
        "purl": "pkg:deb/ubuntu/gimp@3.2.2-1ubuntu0.26.04.1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.0.4-6.1",
        "3.0.4-6.2",
        "3.0.6-1",
        "3.2.0~RC2-2",
        "3.2.0~RC2-3",
        "3.2.0~RC2-3.1",
        "3.2.0~RC2-3.2",
        "3.2.0~RC2-3.3",
        "3.2.0~RC3-1",
        "3.2.0-1",
        "3.2.2-1",
        "3.2.2-1ubuntu0.26.04.1"
      ]
    }
  ],
  "aliases": [],
  "details": "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\u0027s stride causes a write past the heap buffer boundary, leading to heap metadata corruption and potential code execution.",
  "id": "UBUNTU-CVE-2026-42170",
  "modified": "2026-08-13T00:05:12Z",
  "published": "2026-08-08T16:16:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2026-42170"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-42170"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.gnome.org/GNOME/gimp/-/work_items/16161"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2758"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2026-42170"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…