# CVE-2026-59090: Gimp: gimp: arbitrary code execution in psd plugin due to unsigned underflow

Status: published. Published: 2026-08-10. Updated: 2026-11-02.

A flaw was found in GIMP's PSD file format plugin. This vulnerability, an unsigned integer underflow in the `block_rem` variable, occurs when a user opens a specially crafted `.psd` image file. The underflow leads to parser confusion, enabling an attacker to inject arbitrary data as layer resource blocks. This can ultimately result in arbitrary code execution, allowing the attacker to run malicious code on the victim's system.

## Remediation

- workaround: To mitigate this vulnerability, users should avoid opening untrusted or suspicious PSD image files with GIMP. As a general security practice, it is recommended to only process image files from trusted sources. (source: CNA: redhat)

## Affected products and versions

-  /  (gimp): 3.3.1 (affected). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (gimp): ≥ 2:3.0.4-4.el9_8.10; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions (gimp): ≥ 2:2.99.8-4.el9_2.7; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions (gimp): ≥ 2:2.99.8-4.el9_4.19; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9.6 Extended Update Support (gimp): ≥ 2:2.99.8-4.el9_6.20; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 6 (gimp): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 7 (gimp): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (gimp): Version range not reported. Source: CNA: redhat

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:a:gimp:gimp:3.3.1:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 8.4 (high); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:H; source: CNA: redhat

- CVSS 3.1: 9.9 (critical); CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H; source: NVD: nvd@nist.gov

- CVSS 3.1: 8.4 (high); CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:H; source: NVD: secalert@redhat.com

- CISA KEV: No listing in collected sources

- EPSS: 0.65% as of 2026-11-01; percentile 50.92%

- SSVC: exploitation poc; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-191

## Exploit evidence

- exploit: https://gitlab.gnome.org/GNOME/gimp/-/work_items/16509 (ADP: CISA-ADP)
- exploit: https://gitlab.gnome.org/GNOME/gimp/-/work_items/16509 (secalert@redhat.com)
- exploit: https://gitlab.gnome.org/GNOME/gimp/-/work_items/16509 (134c704f-9b21-4f2e-91b3-4a467353bcc0)

## References

- https://access.redhat.com/errata/RHSA-2026:61587 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:73768 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:80509 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:93589 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/security/cve/CVE-2026-59090 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2496584 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

- https://gitlab.gnome.org/GNOME/gimp/-/work_items/16509 (CNA: redhat)

- https://gitlab.gnome.org/GNOME/gimp/-/work_items/16509 (ADP: CISA-ADP; exploit)

- https://access.redhat.com/errata/RHSA-2026:61587 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2026:73768 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2026:80509 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2026:93589 (secalert@redhat.com)

- https://access.redhat.com/security/cve/CVE-2026-59090 (secalert@redhat.com; Vendor Advisory)

- https://bugzilla.redhat.com/show_bug.cgi?id=2496584 (secalert@redhat.com; Issue Tracking, Vendor Advisory)

- https://gitlab.gnome.org/GNOME/gimp/-/work_items/16509 (secalert@redhat.com; Exploit, Mitigation, Vendor Advisory)

- https://gitlab.gnome.org/GNOME/gimp/-/work_items/16509 (134c704f-9b21-4f2e-91b3-4a467353bcc0; Exploit, Mitigation, Vendor Advisory)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2026-59090; retrieved 2026-11-02; source updated 2026-11-02

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-59090; retrieved 2026-11-02; source updated 2026-11-02

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-59090; retrieved 2026-11-02; source updated Not reported

Revision: 352d552ddf23835399fdf8756dbc98c7f4bc4a69b3f89c44cad2248fef4bc6f2

Canonical: https://y2.dev/cve/CVE-2026-59090