Skip to content
Heist/ feed
Back to feed
High

Gimp: integer overflow in pcx loader (planes=4) leads to heap overflow on 32-bit

Type: advisorySources: OSV

A flaw was found in the file-pcx plugin in GIMP, affecting 32-bit builds only. When processing a PCX image file, the plugin calculates memory allocation sizes based on the image dimensions and the number of color planes. If a crafted file sets the number of planes to 4 alongside sufficiently large dimensions, the calculation exceeds the 32-bit integer limit and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when the plugin subsequently writes image data into the undersized buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-78465
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:29 UTC · Revision 1

Source evidence

Gimp: integer overflow in pcx loader (planes=4) leads to heap overflow on 32-bit

core-osv · Original source

Published 24 Aug 2026, 16:28 UTC

A flaw was found in the file-pcx plugin in GIMP, affecting 32-bit builds only. When processing a PCX image file, the plugin calculates memory allocation sizes based on the image dimensions and the number of color planes. If a crafted file sets the number of planes to 4 alongside sufficiently large dimensions, the calculation exceeds the 32-bit integer limit and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when the plugin subsequently writes image data into the undersized buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.

osv:CVE-2026-78465
Complete source record
{
  "id": "6144b20163761592b5f4c954785de219ccee72ecc9320258045de96b12bf911c",
  "url": "https://osv.dev/vulnerability/CVE-2026-78465",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Gimp: integer overflow in pcx loader (planes=4) leads to heap overflow on 32-bit",
    "summary": "A flaw was found in the file-pcx plugin in GIMP, affecting 32-bit builds only. When processing a PCX image file, the plugin calculates memory allocation sizes based on the image dimensions and the number of color planes. If a crafted file sets the number of planes to 4 alongside sufficiently large dimensions, the calculation exceeds the 32-bit integer limit and overflows, resulting in an undersized heap-based buffer allocation. This integer overflow issue results in a heap-based buffer overflow when the plugin subsequently writes image data into the undersized buffer, causing memory corruption, potentially leading to arbitrary code execution or a denial of service.",
    "evidence": "osv:CVE-2026-78465",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-78465",
      "aliases": [
        "CVE-2026-78465"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gnome/gimp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9785099e5a0dcdc3011dd26c6c2e9b332d36c035"
                },
                {
                  "last_affected": "6987b3853c10517eb581deeb20572fb5f99a7086"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gimp:gimp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "last_affected": "3.2.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "GIMP_3_2_4",
            "GIMP_3_2_2-windows-fixes",
            "GIMP_3_2_2",
            "GIMP_3_2_0-windows-fixes",
            "GIMP_3_2_0",
            "GIMP_3_2_0_RC3",
            "GIMP_3_2_0_RC2",
            "GIMP_3_2_0_RC1",
            "GIMP_3_1_4",
            "GIMP_3_1_2",
            "GIMP_3_0_4",
            "GIMP_3_0_2",
            "GIMP_3_0_0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-78465.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.gnome.org/gnome/gimp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9785099e5a0dcdc3011dd26c6c2e9b332d36c035"
                },
                {
                  "last_affected": "6987b3853c10517eb581deeb20572fb5f99a7086"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gimp:gimp:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "last_affected": "3.2.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "GIMP_3_2_4",
            "GIMP_3_2_2-windows-fixes",
            "GIMP_3_2_2",
            "GIMP_3_2_0-windows-fixes",
            "GIMP_3_2_0",
            "GIMP_3_2_0_RC3",
            "GIMP_3_2_0_RC2",
            "GIMP_3_2_0_RC1",
            "GIMP_3_1_4",
            "GIMP_3_1_2",
            "GIMP_3_0_4",
            "GIMP_3_0_2",
            "GIMP_3_0_0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-78465.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.766478869Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/downloads/content/package-browser/",
        "https://gitlab.gnome.org/GNOME/gimp/-/work_items/16578",
        "https://access.redhat.com/security/cve/CVE-2026-78465",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78465.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-78465",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2522057",
        "https://gitlab.gnome.org/GNOME/gimp"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-190"
        ],
        "cna_assigner": "redhat",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78465.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-78465",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521798,
  "published_at": "2026-08-24T16:28:12.574+00:00"
}