CVE-2026-78465

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

Published Aug 24, 2026 CVSS 3.1 · 7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The GIMP pcx loader on 32‑bit builds contains an integer overflow when the number of planes is set to four. If a crafted PCX file specifies large image dimensions, the calculated allocation size overflows, resulting in an undersized heap buffer. When the plugin writes image data into this buffer, a heap overflow occurs, corrupting memory and potentially enabling arbitrary code execution or denial of service.

Affected Systems

Red Hat Enterprise Linux 6 through 9 ship a 32‑bit version of GIMP that includes the vulnerable pcx loader plugin. Any installation of GIMP on these RHEL releases that is not explicitly using a 64‑bit build is at risk if the plugin is loaded.

Risk and Exploitability

With a CVSS score of 7 the vulnerability is rated as high severity. The EPSS score is unavailable and the issue is not listed in CISA’s KEV catalog, indicating that no public exploits are currently known. The likely attack vector involves an attacker providing a crafted PCX file to a user who opens it in GIMP on a 32‑bit system, which could lead to arbitrary code execution or a denial of service locally.

Remediation

Vendor Workaround

To mitigate this vulnerability, do not open PCX files from untrusted sources with GIMP.


OpenCVE Recommended Actions

  • Follow Red Hat’s workaround: do not open PCX files from untrusted sources with GIMP on 32‑bit systems.
  • If the pcx plugin is not required, disable it or uninstall the GIMP pcx loader package.
  • Use an alternative image editor or convert PCX files to a safe format before opening them in GIMP.
  • Monitor Red Hat advisories for an official patch and apply it as soon as it becomes available.

Generated by OpenCVE AI on August 24, 2026 at 19:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6509-1 gimp security update
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:2.3:a:gimp:gimp:*:*:*:*:*:*:*:*
cpe:2.3:a:gimp:gimp:3.3.1:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Gimp
Gimp gimp
Vendors & Products Gimp
Gimp gimp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Gimp: integer overflow in pcx loader (planes=4) leads to heap overflow on 32-bit
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-190
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 23, 2026, 3:53 PM
Reserved
Aug 24, 2026, 4:22 PM
Status
Analyzed
Published
Aug 24, 2026, 5:18 PM
Modified
Nov 23, 2026, 4:18 PM