CVE-2026-58387
gimp: gimp: Heap buffer overflow in Seattle FilmWorks metadata parsing
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 11, 2026
Updated · July 7, 2026
Description
A flaw was found in GIMP's Seattle FilmWorks (SFW94A) loader. In load_image(), photo_date is allocated based on an unvalidated metadata separator offset and can become a 1-byte buffer before fread() writes the full metadata span into it. This could lead to heap memory corruption, potentially resulting in denial of service or arbitrary code execution.
Statement
A flaw was found in GIMP's Seattle FilmWorks (SFW94A) loader. A malformed metadata record can cause load_image() to allocate an undersized heap buffer for photo_date before reading a larger metadata span into it. Successful exploitation requires a user to open a specially crafted SFW file.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CWE-122 · Heap-based Buffer Overflow