CVE-2026-58379: GIMP PSP File Heap Buffer Overflow Remote Code Execution
GIMP contains a memory corruption flaw in how it processes Paint Shop Pro (PSP) image files. When a user opens a specially crafted PSP file with low bit-depth image data, the application miscalculates how much memory to allocate, causing it to write data past the intended buffer boundary. An attacker can exploit this by distributing a malicious PSP file; if opened, it could allow the attacker to run arbitrary code on the victim's system or crash the application. The vulnerability requires user interaction—someone must be tricked into opening the file—but once that happens, the attacker gains significant control.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.3 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-122
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-07-03 / 2026-07-13
NVD description (verbatim)
A flaw was found in GIMP's Paint Shop Pro (PSP) file format parser. This heap buffer overflow vulnerability allows a remote attacker to cause arbitrary code execution or a denial of service (DoS) by tricking a user into opening a specially crafted PSP image file. The vulnerability occurs because the software incorrectly calculates buffer sizes when processing low bit-depth images, leading to an overwrite of adjacent memory.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-58379 is a heap buffer overflow (CWE-122) in GIMP's PSP file format parser. The flaw manifests in the low bit-depth image processing code path, where buffer size calculations are incorrect, permitting out-of-bounds writes to adjacent heap memory. The parser fails to properly validate or constrain the size of image data before writing, allowing heap corruption that can be leveraged for code execution or denial of service. The vulnerability is reachable through a file-open operation, making it accessible to any user with the ability to open files in GIMP.
Business impact
For organizations relying on GIMP for image editing or batch image processing workflows, this vulnerability poses a direct code execution risk. Attackers can distribute malicious PSP files via email, shared drives, or compromised repositories to compromise endpoints. In environments where GIMP processes untrusted image content (design agencies, media companies, automated image pipelines), this is a critical pathway for lateral movement or data theft. Even denial-of-service impact disrupts productivity; in automated workflows, a crash could halt batch operations and obscure the attack vector.
Affected systems
GIMP (GNU Image Manipulation Program) versions are affected; the exact affected versions depend on vendor patch releases. The vulnerability specifically impacts GIMP's PSP file parser, so systems with GIMP installed and configured to handle PSP files are at risk. Users who do not open PSP files are at lower risk, but because file associations and drag-and-drop operations can trigger parsing, isolation is not guaranteed. No other vendors or products are documented as affected by this specific flaw.
Exploitability
The vulnerability requires user interaction: a user must be convinced to open a malicious PSP file. No authentication or elevated privileges are needed to trigger it, and GIMP is a freely available, widely distributed application. The attack surface includes email attachments, shared folders, web downloads, and messaging platforms. However, the requirement for explicit user action (opening a file) moderates the immediate threat compared to network-based remote code execution flaws. An attacker with social engineering capability or distribution access can reliably craft and deliver exploit files.
Remediation
Apply security patches released by the GIMP project. Verify the patched version against the official GIMP advisory and release notes, as this assessment does not specify exact patch versions. Organizations should also enforce application whitelisting or sandboxing of GIMP if it is used in high-risk environments, restrict PSP file handling to trusted sources, and educate users not to open image files from unknown origins. Users running older, unsupported GIMP builds should upgrade to the latest stable version.
Patch guidance
Monitor GIMP's official release channels (gimp.org) and security advisories for patched versions addressing this heap buffer overflow. Test patches in a non-production environment before wide deployment, as GIMP updates may affect plugins or workflows. Organizations using GIMP in CI/CD or batch processing pipelines should test image processing scripts against patched versions to ensure compatibility. If immediate patching is not feasible, disable PSP file support in GIMP or prevent users from opening untrusted PSP files.
Detection guidance
Monitor for crashes or unexpected terminations of GIMP processes, particularly when processing PSP files. Endpoint detection and response (EDR) solutions should flag heap corruption or memory corruption exploitation patterns. Network detection: watch for distribution of suspicious PSP files via email or file-sharing protocols to GIMP users. File reputation scanning can identify malicious PSP samples, though custom-crafted exploits may evade signatures. Process memory analysis during incident response can reveal heap overwrite artifacts and code injection.
Why prioritize this
This vulnerability merits HIGH priority due to its code execution capability and relatively low exploitation barrier (social engineering via file distribution). While user interaction is required, GIMP's ubiquity in design and media workflows makes it a viable attack vector. Organizations with designers, image editors, or content teams should patch expeditiously. The heap buffer overflow class is well-understood and reliably exploitable; adversaries can quickly weaponize proof-of-concept code. The CVSS score of 7.3 reflects local attack surface and user interaction, but the practical impact justifies urgent remediation.
Risk score, explained
The CVSS 3.1 score of 7.3 (HIGH) reflects: local attack vector (AV:L—file must be opened locally), low attack complexity (AC:L—no special conditions required beyond crafted file), low privileges required (PR:L—user account suffices), but mandatory user interaction (UI:R). Confidentiality, integrity, and availability impacts are all HIGH, indicating code execution or DoS. The score does not account for GIMP's distribution and use in media pipelines, which increases real-world risk; organizations handling sensitive images should treat this as a priority above the base score alone.
Frequently asked questions
Can this vulnerability be exploited remotely without user action?
No. The flaw requires a user to explicitly open a malicious PSP file in GIMP. However, attackers can distribute such files via email, messaging, or compromised repositories and use social engineering to encourage users to open them. If an organization's workflow automatically opens PSP files from an untrusted source, that would reduce the friction.
Does this affect other image formats besides PSP?
No. The vulnerability is specific to GIMP's Paint Shop Pro (PSP) file format parser. Other image formats (JPEG, PNG, PSD, etc.) processed by GIMP are not affected by this particular flaw, though they may have their own vulnerabilities.
What is the difference between this vulnerability and a typical remote code execution flaw?
This is a local, user-interaction-dependent code execution vulnerability, whereas remote code execution typically requires no user action and is reachable over a network. However, because GIMP is user-facing and files are easily distributed, the practical exploitability can still be high in social-engineering scenarios.
If we don't use PSP files, are we safe?
Your risk is lower if your organization does not intentionally work with PSP files. However, if file associations are enabled or if users might open PSP files sent by email or from external sources, exposure remains. The safest approach is to apply patches regardless and educate users on file source verification.
This analysis is provided for informational purposes. Verify patch availability and compatibility with your environment against official vendor advisories. Do not intentionally craft or test exploit files outside controlled research environments. Threat actors may weaponize this vulnerability; proactive patching and user education are strongly recommended. No exploit code or detailed proof-of-concept steps are provided herein. Source: NVD (public-domain), retrieved 2026-08-12. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2023-43688HIGHMalwarebytes Heap Buffer Overflow Denial of Service Vulnerability
- CVE-2026-0059HIGHAndroid Heap Buffer Overflow in SDP Discovery – Remote Code Execution
- CVE-2026-0100HIGHAndroid Heap Buffer Overflow Local Privilege Escalation
- CVE-2026-0132HIGHAndroid Modem Heap Buffer Overflow - RCE Vulnerability
- CVE-2026-0149HIGHAndroid RTP Heap Buffer Overflow Leading to Remote Code Execution
- CVE-2026-10929HIGHChrome Android Heap Buffer Overflow & Sandbox Escape Vulnerability
- CVE-2026-10946HIGHChrome Heap Buffer Overflow in Media Processing—Patch Guidance
- CVE-2026-10949HIGHChrome Heap Overflow Sandbox Escape Vulnerability