{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*",
              "cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "3.0.8"
              },
              {
                "last_affected": "3.0.8"
              },
              {
                "introduced": "3.2.4"
              },
              {
                "last_affected": "3.2.4"
              }
            ],
            "source": "CPE_STRING"
          },
          "events": [
            {
              "introduced": "6ac8031c9555667e080fef0324fca9f28a02e5ab"
            },
            {
              "last_affected": "6987b3853c10517eb581deeb20572fb5f99a7086"
            }
          ],
          "repo": "https://github.com/gnome/gimp",
          "type": "GIT"
        }
      ],
      "versions": [
        "3.0.8",
        "3.2.4"
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*",
              "cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "3.0.8"
              },
              {
                "last_affected": "3.0.8"
              },
              {
                "introduced": "3.2.4"
              },
              {
                "last_affected": "3.2.4"
              }
            ],
            "source": "CPE_STRING"
          },
          "events": [
            {
              "introduced": "6ac8031c9555667e080fef0324fca9f28a02e5ab"
            },
            {
              "last_affected": "6987b3853c10517eb581deeb20572fb5f99a7086"
            }
          ],
          "repo": "https://gitlab.gnome.org/gnome/gimp",
          "type": "GIT"
        }
      ],
      "versions": [
        "3.0.8",
        "3.2.4"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66758.json"
  },
  "details": "A flaw was found in the file-fits plugin in GIMP. When processing a FITS image file, the plugin calculates memory allocation sizes using signed 32-bit integers for width and height. If a crafted file sets both values to large values, their product exceeds 2^31 and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when cfitsio subsequently writes a full row of pixels in the buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.",
  "id": "CVE-2026-66758",
  "modified": "2026-08-08T03:30:42.834459244Z",
  "published": "2026-07-27T19:07:12.789Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:50817"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-66758"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66758.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-66758"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2507475"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.gnome.org/GNOME/gimp/-/issues/16528"
    },
    {
      "type": "PACKAGE",
      "url": "https://gitlab.gnome.org/GNOME/gimp"
    }
  ],
  "schema_version": "1.8.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"
    }
  ],
  "summary": "Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images"
}