Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious PNM file
-
DeliveryDeliver to victim via email or download
-
ExploitVictim opens file in GIMP
-
Executionpnmscanner_gettoken() writes NUL past stack buffer
-
PersistCorrupt adjacent stack memory
-
ImpactCrash or execute code in user context
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
|
| Exploitation Conditions | Exploitation requires a user to open an attacker-supplied PNM-family file (PBM/PGM/PPM/PAM) in GIMP so the vulnerable PNM loader runs - this is the UI:R requirement in the CVSS vector. The specific trigger is a token in the PNM stream sized to exactly fill the pnmscanner_gettoken() stack buffer, causing the off-by-one NUL write; a token shorter than the buffer does not overflow. Limiting factors: the vector is local (AV:L), there is no network-reachable path, and no authentication is needed on the attacker side but the attack cannot proceed without victim interaction. Reliable arbitrary code execution is further limited by platform stack protections (canaries, ASLR, NX) on modern RHEL builds, which may reduce the outcome to denial of service. |
| Impact | Signals are consistent and point to genuine-but-not-urgent risk. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H = 7.8) correctly frames this as a local, user-interaction-gated file-parsing bug rather than a remotely reachable service flaw - an attacker cannot trigger it over the network without convincing a user to open a file. EPSS is very low (0.12%, 2nd percentile) and CISA SSVC reports Exploitation: none and Automatable: no, which agrees with 'no public exploit identified.' The one aggravating signal is SSVC Technical Impact: total, matching the C:H/I:H/A:H - successful exploitation yields full compromise of the user's session. There is no conflict between sources here: this is a real high-severity bug but not an active-exploitation emergency, so it belongs in normal patch cycles rather than emergency response. Note the 'RCE' tag reflects worst-case potential; reliable code execution past a stack canary is not demonstrated by any provided data. |
| Exploit ScenarioDerived | An attacker crafts a PNM file whose header or data token is sized to exactly fill the scanner's stack buffer, then delivers it via email, a web download, or a shared image repository. When the victim opens the file in GIMP, pnmscanner_gettoken() writes a NUL one byte past the buffer, corrupting adjacent stack data; at minimum GIMP crashes (DoS), and in the worst case the overwrite is leveraged toward code execution in the user's context. No public proof-of-concept is identified at time of analysis, and the local/UI-required vector (AV:L/UI:R) means the attacker depends on social engineering. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jul 10, 2026
Stack-based memory corruption in GIMP's PNM image parser lets an attacker execute code or crash the application when a victim opens a malicious PNM/PBM/PGM/PPM file. The flaw is an off-by-one in pnmscanner_gettoken() that writes a null terminator one byte past a stack buffer; it is local and requires the user to open the crafted file (UI:R). No public exploit is identified at time of analysis, and EPSS is low (0.12%), consistent with the CISA SSVC 'Exploitation: none' judgment.
Earlier versions of this analysis (2)
Local code execution in GIMP's PNM image parser allows an attacker to corrupt stack memory when a victim opens a maliciously crafted PBM/PGM/PPM/PNM file, because pnmscanner_gettoken() writes a null terminator one byte past a stack buffer. Impact ranges from a crash (denial of service) to potential arbitrary code execution in the context of the user running GIMP. No public exploit has been identified and EPSS is very low (0.12%, 2nd percentile), consistent with CISA SSVC scoring exploitation as 'none'.
Memory corruption in GIMP's PNM (PNM/PBM/PGM/PPM) image parser allows a crafted image file to trigger an off-by-one null-terminator write in pnmscanner_gettoken(), enabling denial of service or potentially arbitrary code execution in the context of the user running GIMP. Exploitation requires a victim to open a malicious PNM file, making this a client-side, user-interaction-dependent flaw rather than a remotely reachable service bug. There is no public exploit identified at time of analysis and it is not listed in CISA KEV; the upstream fix is available as a GNOME GitLab commit.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply the GNOME/GIMP fix from commit https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817 once packaged. On Red Hat Enterprise Linux 6/7/8/9, update the gimp package to the fixed build published via the Red Hat advisory (https://access.redhat.com/security/cve/CVE-2026-58380) when it ships; track the Bugzilla at https://bugzilla.redhat.com/show_bug.cgi?id=2496135 for the exact errata version. Because exploitation requires opening a malicious file, effective compensating controls until patched are operational: do not open PNM/PBM/PGM/PPM files from untrusted sources, and disable or restrict the PNM plug-in if your GIMP deployment supports plug-in removal (trade-off: loss of PNM import/export). Where GIMP is used for automated/batch image processing, sandbox the process or route it through a hardened converter, since batch pipelines remove the human 'do you trust this file' check that normally limits UI:R bugs.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerable code is GIMP's PNM (Portable Any Map) loader, which handles the PBM/PGM/PPM/PAM ASCII and binary image formats. During tokenization, pnmscanner_gettoken() reads header/data tokens into a fixed-size stack buffer and appends a terminating NUL byte. The loop boundary check is off by one (CWE-193, Off-by-one Error), so with a token that exactly fills the buffer the NUL is written to buffer[len], one byte beyond the allocation. On the stack this can overwrite an adjacent local, saved register, or canary, producing the classic memory-corruption chain from crash (DoS) to potential control-flow hijack. The affected component ships as the gimp package; the reporter is Red Hat and the CPE set enumerates the RHEL distributions that carry it.
Know when Red Hat Enterprise Linux 6 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Local file-parsing bug needing the victim to open a crafted file (AV:L/UI:R), no attacker privileges (PR:N), and full compromise of the user session (C/I/A:H).
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (redhat).
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
A flaw was found in GIMP's PNM file format parser. When parsing a specially crafted PNM file, the pnmscanner_gettoken() function writes a null terminator one byte past the end of a stack-allocated buffer due to an off-by-one error in the loop boundary check. This could lead to memory corruption, potentially resulting in denial of service or arbitrary code execution.
Executive ViewAI
A stack overflow in GIMP's image parser (CVE-2026-58380) could enable code execution when users open malicious PNM/PBM/PGM/PPM image files. Organizations using GIMP for design or image processing face workstation compromise risk through routine file handling. Exploitation likelihood is currently low (EPSS 0.1%, no public exploit identified at time of analysis), but the potential for code execution warrants immediate mitigation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict PNM format file processing to internal or pre-validated sources; (2) disable PNM format codec in GIMP if not business-critical; (3) implement file type validation and scanning; (4) security awareness training emphasizing risks of opening files from external sources; (5) network isolation and access controls for systems running GIMP; (6) continuous monitoring of GIMP security advisories for patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)NVD
More in Red Hat Enterprise Linux 6
View allHeap corruption via double-free in 389-ds-base's LDAP control parsing allows an unauthenticated remote attacker to crash
Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via craft
Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript
Use-after-free in librsvg during rendering of crafted SVG documents with nested XInclude directives and duplicate entity
A signed integer overflow vulnerability exists in the libtiff library's putcontig8bitYCbCr44tile function that leads to
The system CA trust store shipped in Red Hat's ca-certificates RPM packages includes eMudhra root authorities that signe
Arbitrary code execution in GIMP's PSD import plugin allows an attacker to run code in the context of the user who opens
Authentication bypass in 389 Directory Server (shipped as Red Hat Directory Server 11-13 and within RHEL 6-10) lets remo
Remote code execution and privilege escalation in HPLIP (HP Linux Imaging and Printing) affects the hpcups print filter
Unauthenticated privilege escalation in FreeIPA (Red Hat Identity Management) allows a remote attacker to gain genuine a
A heap buffer overflow exists in libsoup's WebSocket permessage-deflate compression path: when a very large outbound mes
A heap-based buffer overflow in the PNG metadata reader of Eye of GNOME (eog) allows an attacker to potentially achieve
Same weakness CWE-193 – Off-by-one Error
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Liberty Linux 9 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise Desktop 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP7 | Affected |
| SUSE Linux Enterprise Server 15 SP4 | Affected |
| SUSE Linux Enterprise Server 15 SP5 | Affected |
| SUSE Linux Enterprise Server 15 SP6 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Affected |
| SUSE Linux Enterprise Desktop 15 SP4 | Affected |
| SUSE Linux Enterprise Desktop 15 SP5 | Affected |
| SUSE Linux Enterprise Desktop 15 SP6 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP4 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP4 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP5 | Affected |
| SUSE Linux Enterprise Workstation Extension 15 SP6 | Affected |
| openSUSE Leap 15.4 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-41875
GHSA-c7fj-r3pq-5ph5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB