Bug 2590051 (CVE-2026-143879)

Summary: CVE-2026-143879 gimp: gimp: heap-based buffer overflow in PSP loader when reading uncompressed selection
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in GIMP's PSP (Paint Shop Pro) file loader. When processing an uncompressed selection channel, a heap-based buffer overflow can occur because the loader allocates the selection buffer from the image/canvas size but reads a larger attacker-controlled selection rectangle from the file. A remote attacker could exploit this vulnerability by crafting a malicious PSP file. Opening this file in GIMP could lead to a crash or arbitrary code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2590052    
Bug Blocks:    

Description OSIDB Bzimport 2026-12-03 10:32:11 UTC
A heap-based buffer overflow flaw was found in GIMP's PSP (Paint Shop Pro) file loader. In read_selection_block(), the selection pixel buffer is allocated from the selection drawable (canvas) dimensions, but the uncompressed path still reads width * height bytes taken from the selection rectangle fields in the file via fread(). A specially crafted .psp/.pspimage file that declares an uncompressed selection larger than the canvas can overflow the heap buffer with attacker-controlled length and content. This is a regression introduced by the fix for CVE-2026-90949 and affects GIMP 3.2.8. Opening a malicious PSP file in GIMP can lead to a crash or arbitrary code execution in the context of the user running GIMP.