CVE-2026-58384: GIMP PSD Parser Integer Overflow – Heap Corruption Risk
GIMP, the widely-used open-source image editor, contains a vulnerability in how it parses Photoshop (PSD) files. When opening a specially crafted PSD file, GIMP miscalculates memory requirements during decompression, leading to insufficient memory being allocated. Attackers can then write data into areas they shouldn't, corrupting the program's memory. This could crash GIMP or potentially allow code execution if an attacker carefully crafts the malicious file.
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-190
- Affected products
- 2 configuration(s)
- Published / Modified
- 2026-07-07 / 2026-07-16
NVD description (verbatim)
A flaw was found in GIMP's PSD parser. An integer overflow in read_RLE_channel() can cause an undersized heap allocation for the RLE row-length table, after which subsequent per-row writes corrupt heap memory. This could lead to memory corruption, potentially resulting in denial of service or arbitrary code execution.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-58384 is an integer overflow vulnerability in GIMP's PSD parser, specifically within the read_RLE_channel() function. The flaw occurs during RLE (Run-Length Encoded) decompression when processing channel data in PSD files. An integer overflow causes the heap allocation for the RLE row-length table to be undersized relative to the actual data written per row, resulting in a classic heap buffer overflow. Subsequent write operations corrupt adjacent heap memory, potentially enabling denial of service or code execution depending on heap layout and exploitation sophistication.
Business impact
Organizations relying on GIMP for batch processing of untrusted PSD files face operational risk. A malicious PSD could crash automated workflows, disrupt design pipelines, or potentially allow an attacker to execute code within the context of the GIMP process. For users opening files from external sources (clients, online repositories, email), the attack surface is broader. Red Hat Enterprise Linux users are affected through GIMP packages bundled in those distributions.
Affected systems
GIMP installations across Linux distributions and other platforms are affected. Red Hat Enterprise Linux is explicitly listed as an affected vendor product. The vulnerability exists in the core PSD parser and affects any GIMP version containing the vulnerable read_RLE_channel() code until patching is applied.
Exploitability
Exploitation requires local access to the target system and user interaction—the victim must open a malicious PSD file in GIMP. The attack vector is local, privileges required are low (an unprivileged user can be targeted), and the user must actively open the file (though social engineering can facilitate this). The low barrier to exploitation is offset somewhat by the requirement for manual file opening, but the prevalence of file-sharing and untrusted PSD downloads keeps risk elevated.
Remediation
Apply security updates from your GIMP distributor or from gimp.org once they are released. Red Hat Enterprise Linux users should check for GIMP package updates through their subscription channels. Verify patch availability against the vendor advisory before deployment. Until patching, restrict PSD file opening to trusted sources and consider disabling GIMP's PSD parsing if not essential for your workflow.
Patch guidance
Monitor GIMP's official website and security advisories for patched versions addressing CVE-2026-58384. For Red Hat Enterprise Linux, check the Red Hat Security Advisories portal for GIMP errata. Prioritize deployment in environments where users regularly handle externally sourced PSD files. Test patches in a non-production environment before rolling out organization-wide.
Detection guidance
Monitor process logs for GIMP crashes or segmentation faults correlating with PSD file access. Endpoint Detection and Response (EDR) solutions may flag heap corruption or unusual memory access patterns. Network-based detection is limited because the attack is local; focus on file analysis to identify maliciously crafted PSD files if your organization performs file intake screening. Consider sandboxing PSD parsing if feasible.
Why prioritize this
With a CVSS score of 7.3 (HIGH), this vulnerability warrants prompt attention. It combines high confidentiality, integrity, and availability impact with a low-barrier local attack vector and low privilege requirements. Although not currently listed in CISA's Known Exploited Vulnerabilities catalog, the relative simplicity of crafting a malicious PSD file and the risk of code execution justify elevated priority, especially for organizations processing untrusted design files.
Risk score, explained
The CVSS 3.1 score of 7.3 reflects the high impact potential (confidentiality, integrity, and availability all affected) balanced against the local-only attack vector and requirement for user interaction. The integer overflow is a well-understood primitive in memory corruption attacks, making reliable exploitation plausible. The score does not indicate active in-the-wild exploitation or weaponization; however, the technical nature of the flaw suggests that proof-of-concept development is probable post-disclosure.
Frequently asked questions
Can this vulnerability be exploited remotely over the network?
No. The attack vector is strictly local—an attacker must either have direct access to the system or trick a user into opening a malicious PSD file. Attacks via email attachments or compromised websites are the primary remote-to-local delivery mechanisms.
Do I need to immediately update GIMP if I do not open PSD files?
GIMP can work with many image formats. If your workflow does not involve PSD files, your exposure is minimal. However, GIMP package updates often address multiple vulnerabilities, so periodic patching remains a best practice.
What if I use GIMP in an automated, batch-processing environment without user interaction?
In unattended environments, ensure that the system processing PSD files is restricted to authenticated, controlled sources. Prevent users from uploading untrusted PSD files to the batch queue, and apply patches as soon as they become available to eliminate the attack surface.
Will antivirus or EDR solutions detect exploitation attempts?
Behavioral detection of heap overflow exploitation is possible, but malicious PSD files themselves will not reliably trigger signature-based detection until specific indicators are developed. EDR solutions may flag GIMP process crashes or suspicious memory access patterns; however, detection depends on your specific tooling and tuning.
This analysis is based on the CVE record published as of 2026-07-16. Patch availability, detailed affected versions, and vendor advisory URLs should be verified directly with GIMP and Red Hat security channels. Exploitation claims and impact assessments are technical assessments, not confirmations of active attacks. Organizations should conduct internal risk assessments based on their specific GIMP deployments and file-handling practices. No exploit code or weaponization details are provided herein. Always consult official security advisories and test patches before deployment in production environments. Source: NVD (public-domain), retrieved 2026-08-16. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-59089MEDIUMGIMP PlayStation TIM Integer Overflow Denial of Service
- CVE-2026-57965MEDIUMInteger Overflow in spice-vdagent Causes Denial of Service
- CVE-2026-58380HIGHGIMP PNM Parser Stack Buffer Overflow – Off-by-One Memory Corruption
- CVE-2023-29146HIGHInteger Overflow in Malwarebytes EDR 1.0.11 Linux Hash Functions
- CVE-2025-14098HIGHAvira Antivirus Engine Heap Buffer Overflow—Patch Guidance
- CVE-2025-66280HIGHQNAP Integer Overflow Vulnerability: Patch & Risk Assessment
- CVE-2026-0095HIGHAndroid Bluetooth Integer Overflow Privilege Escalation
- CVE-2026-0131HIGHAndroid RTP Integer Overflow Privilege Escalation Vulnerability