Stack-based buffer overflow in GIMP PSD plug-in on Red Hat Enterprise Linux

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-119528?

CVE-2026-119528 is a vulnerability classified as Stack-based Buffer Overflow, affecting Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, and 1 more product. This vulnerability is rated High, with a CVSS score of 7.8. Current sources do not report this vulnerability as exploited.

Overview

Original source data

A flaw was found in GIMP. The PSD plug-in’s image resource header loader uses an incorrect destination size when copying a converted resource name into a fixed stack buffer. Opening a crafted PSD file can cause a stack-based buffer overflow, leading to a crash and potentially arbitrary code execution.

Affected products and scope

  • Red Hat Enterprise Linux 10: Red Hat lists gimp, gimp-devel, gimp-devel-tools, gimp-libs, and gimp.src as affected.
  • Red Hat Enterprise Linux 9: Red Hat lists gimp, gimp-libs, and gimp.src as affected.
  • Red Hat Enterprise Linux 8: Red Hat lists packages in the gimp:2.8 module as affected, including gimp, gimp-libs, gimp-devel, gimp-devel-tools, and related support packages.
  • Red Hat Enterprise Linux 7: Red Hat lists gimp, gimp-devel, gimp-devel-tools, gimp-libs, and gimp.src as affected.
  • Red Hat Enterprise Linux 6: The Red Hat CSAF record lists related GIMP packages as affected and states that no fix is planned because the branch is out of support.

No package-version boundary or fixed release is confirmed by the available evidence. The status of branches or products outside this list remains unknown.

Technical details

The flaw is in the PSD image resource header loader in GIMP's file-psd import plug-in. get_image_resource_header() passes the length of a converted resource name as the destination-size argument to g_strlcpy() while copying into a fixed 256-byte stack buffer. gimp_any_to_utf8() can expand the Pascal-string payload, including under some single-byte locales, allowing the copy to write past the buffer and produce CWE-121.

An attacker must provide a crafted PSD file that causes the resource-name data to reach the vulnerable path. Exploitation requires the user to open the file or otherwise cause the PSD plug-in to parse untrusted data, including possible parsing during thumbnail or preview loading in the file dialog. The available evidence does not establish the reliability of converting the overflow into code execution and does not provide a payload or exploit sequence.

Exploitability

The flaw can be triggered locally when GIMP processes a crafted PSD file. User interaction is required, either by opening the file or by causing the PSD plug-in to parse untrusted data; Red Hat also warns that browsing a directory in GIMP's file dialog may trigger thumbnail or preview parsing.

The supplied information indicates that no prior privileges are required and that exploitation complexity is low. The record marks public_exploit as false and contains no known-exploited flag, but those status values do not prove that exploitation has never occurred. No specific public exploit, campaign, victim, or intrusion indicator is confirmed by the available evidence.

Technical impact

When processing malicious PSD data, the flaw can write beyond a fixed stack buffer and crash GIMP or the plug-in process. If control of execution is achieved, the outcome may extend to arbitrary code execution in the context of the user running GIMP.

That can affect the availability of the image-processing workflow and, if code execution succeeds, may affect the confidentiality and integrity of data accessible to the user account. The evidence does not establish independent remote exploitation from outside the workstation, requires user interaction or preview processing, and does not confirm a specific exploit.

Business impact

The flaw can disrupt GIMP when a user processes an untrusted PSD file. If arbitrary code execution succeeds, an attacker may operate with the privileges of the user running GIMP and could potentially affect data, workstation integrity, and resources accessible to that account.

The practical exposure is concentrated on workstations and image-file handling workflows, especially when users open PSD files from email, shared directories, or untrusted download sources. The available evidence does not establish a breach, data loss, or successful exploitation.

Remediation

  1. Apply the immediate workaround: Do not open untrusted PSD files in GIMP. Avoid browsing directories containing untrusted PSD files in GIMP's file dialog if thumbnail or preview loading may parse PSD resources.
  2. If GIMP is not required, remove the gimp package and related packages from affected systems.
  3. For Red Hat Enterprise Linux 7, 8, 9, and 10, the supplied Red Hat status lists the products as affected with no fix currently available. Do not treat a generic package update or a changed package version as proof of remediation without a status confirmation for the relevant branch.
  4. For Red Hat Enterprise Linux 6, Red Hat states that no fix is planned because the branch is out of support. Prioritize migration to a supported platform or remove GIMP from systems that require protection.
  5. Monitor Red Hat notices for each branch and verify the status of installed packages before re-enabling workflows that process untrusted PSD files. No fixed release can currently be named as an upgrade target.

Detection

  1. Inventory Red Hat Enterprise Linux systems that install gimp, gimp-libs, gimp-devel, gimp-devel-tools, or related source packages. On Red Hat Enterprise Linux 8, separately check packages in the gimp:2.8 module and the related pygtk2, pygobject2, and python2-cairo packages listed by Red Hat as affected.
  2. Identify systems where users open PSD files with GIMP or where thumbnails, previews, or file dialogs may parse PSD content.
  3. Compare installed package status with the Red Hat product status rather than relying only on upstream version numbers, because Red Hat may backport fixes without rebasing to a newer upstream release.
  4. Review endpoint telemetry for GIMP processing untrusted PSD files and for GIMP crashes. These are investigation leads, not confirmed indicators of compromise, and the absence of such events does not prove that a system is safe.
  5. If a crash follows the opening of a PSD file, preserve the source file and relevant process information for separate analysis. A crash is consistent with this flaw but does not by itself prove code execution.
Sources (14)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.