# CVE-2026-58379: GIMP heap buffer overflow in Paint Shop Pro parser

Source: https://junglewise.ai/threats/cve-2026-58379-gimp-heap-buffer-overflow-in-paint-shop-pro-parser  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-03. Updated: 2026-07-03  
License: CC BY 4.0 with a link back

CVE-2026-58379 · Severity: high · CVSS 7.3 · Published 2026-07-03

A security vulnerability exists in GIMP, a popular open-source image editor, specifically within its tool for opening Paint Shop Pro (PSP) files. By tricking a user into opening a specially crafted image file, an attacker could crash the application or potentially run unauthorized code on the user's computer. This flaw could lead to a loss of data, system instability, or a full compromise of the user's workstation.

## Quick answers

**Is CVE-2026-58379 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-58379 being exploited in the wild.

**How severe is CVE-2026-58379?** High severity, with a CVSS score of 7.3, published 3 July 2026.

**Which products and versions are affected?** GNOME GIMP 3.2.1; Red Hat Red Hat Enterprise Linux 9 affected.

**Is there a fix for CVE-2026-58379?** A patch was published on 2026-07-03: Upstream fix committed to GNOME GIMP repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-58379 attacked?** It is attacked with local access, in a network appliance.

**Am I affected by CVE-2026-58379?** Check whether anything you run is named in the advisory. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A heap-based buffer overflow exists in the 'read_channel_data()' function within 'plug-ins/common/file-psp.c' of GIMP. The vulnerability is caused by an incorrect buffer size calculation for low bit-depth images (1-bit or 4-bit); while the allocation ('line_width') uses a packed bit-depth formula, the subsequent 'fread()' call attempts to read 'width' bytes (one byte per pixel). This results in a heap overwrite when the image width exceeds the packed byte count. This flaw is a variant/bypass of CVE-2026-4153, as the previous fix addressed 'read_layer_block()' but left the intermediate buffer in 'read_channel_data()' vulnerable. A patch has been developed to ensure the buffer allocation accounts for the full pixel width.

## Affected products

- GNOME GIMP 3.2.1
- Red Hat Red Hat Enterprise Linux 9 affected

## Timeline

- 2026-07-01: disclosed: Reported via Red Hat Bugzilla
- 2026-07-03: advisory: NVD and Red Hat published advisory details
- 2026-07-03: patched: Upstream fix committed to GNOME GIMP repository

## References

- [https://access.redhat.com/downloads/content/package-browser/](https://access.redhat.com/downloads/content/package-browser/)
- [https://access.redhat.com/security/cve/CVE-2026-58379](https://access.redhat.com/security/cve/CVE-2026-58379)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2495997](https://bugzilla.redhat.com/show_bug.cgi?id=2495997)
- [https://gitlab.gnome.org/GNOME/gimp/-/commit/b630f167](https://gitlab.gnome.org/GNOME/gimp/-/commit/b630f167)
- [https://gitlab.gnome.org/GNOME/gimp/-/issues/16205](https://gitlab.gnome.org/GNOME/gimp/-/issues/16205)
