{
  "id": "CVE-2026-66758",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-66758",
  "published_at": "2026-07-27T19:07:12.789Z",
  "title": "Gimp: integer overflow in file-fits plugin causes a heap-based buffer overflow on crafted fits images",
  "vendor": "GNOME",
  "product": "GIMP",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-190",
  "cpes": [
    "cpe:2.3:a:gimp:gimp:3.0.8:*:*:*:*:*:*:*",
    "cpe:2.3:a:gimp:gimp:3.2.4:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "8100020260824165450.4c9c024f"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "2:3.0.4-4.el9_8.9"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "2:2.99.8-4.el9_2.7"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions",
        "ranges": null,
        "fixed_in": [
          "2:2.99.8-4.el9_4.19"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.6 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "2:2.99.8-4.el9_6.20"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Red Hat Enterprise Linux 8 to 8100020260824165450.4c9c024f or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 2:3.0.4-4.el9_8.9 or later.",
      "Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 2:2.99.8-4.el9_2.7 or later.",
      "Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 2:2.99.8-4.el9_4.19 or later.",
      "Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 2:2.99.8-4.el9_6.20 or later."
    ],
    "workarounds": [
      "To mitigate this vulnerability, do not open FITS files from untrusted sources with GIMP."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:50817"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:62507"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:73768"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:80509"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:93589"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
