CVE-2026-58380: Off-by-one Error in Red Hat Red Hat Enterprise Linux 9
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.
AI Analysis
Technical Summary
CVE-2026-58380 is a vulnerability in the GIMP image manipulation program included in Red Hat Enterprise Linux 9. The flaw is an off-by-one error in the pnmscanner_gettoken() function of the PNM file parser, where a null terminator is written one byte beyond the allocated stack buffer boundary. This causes a stack buffer overflow, potentially leading to memory corruption that can be exploited for denial of service or arbitrary code execution. Red Hat has issued an important security advisory and released patched GIMP packages (version 3.0.4-4.el9_8.7) to fix this issue.
Potential Impact
Successful exploitation of this vulnerability can cause memory corruption, which may lead to denial of service or allow an attacker to execute arbitrary code with the privileges of the user running GIMP. The CVSS 3.1 base score of 7.3 reflects high impact on confidentiality, integrity, and availability. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Red Hat has released a security update for GIMP in Red Hat Enterprise Linux 9 that fixes this vulnerability. Users should apply the update to GIMP version 3.0.4-4.el9_8.7 or later as provided in the Red Hat advisory RHSA-2026:40751. Refer to Red Hat's official update instructions at https://access.redhat.com/articles/11258 for applying the patch. No additional mitigation steps are required beyond applying the official update.
CVE-2026-58380: Off-by-one Error in Red Hat Red Hat Enterprise Linux 9
Description
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.
CVSS v3.1
Score 7.3high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-58380 is a vulnerability in the GIMP image manipulation program included in Red Hat Enterprise Linux 9. The flaw is an off-by-one error in the pnmscanner_gettoken() function of the PNM file parser, where a null terminator is written one byte beyond the allocated stack buffer boundary. This causes a stack buffer overflow, potentially leading to memory corruption that can be exploited for denial of service or arbitrary code execution. Red Hat has issued an important security advisory and released patched GIMP packages (version 3.0.4-4.el9_8.7) to fix this issue.
Potential Impact
Successful exploitation of this vulnerability can cause memory corruption, which may lead to denial of service or allow an attacker to execute arbitrary code with the privileges of the user running GIMP. The CVSS 3.1 base score of 7.3 reflects high impact on confidentiality, integrity, and availability. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Red Hat has released a security update for GIMP in Red Hat Enterprise Linux 9 that fixes this vulnerability. Users should apply the update to GIMP version 3.0.4-4.el9_8.7 or later as provided in the Red Hat advisory RHSA-2026:40751. Refer to Red Hat's official update instructions at https://access.redhat.com/articles/11258 for applying the patch. No additional mitigation steps are required beyond applying the official update.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-06-30T16:54:04.312Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-58380","vendor":"Red Hat"}]
Threat ID: 6a4bba0b27e9c79719a6f210
Added to database: 07/06/2026, 14:22:03 UTC
Last enriched: 07/17/2026, 08:21:04 UTC
Last updated: 08/20/2026, 10:52:10 UTC
Views: 103
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.