Bug 2497384 (CVE-2026-58382) - CVE-2026-58382 gimp: gimp: Heap buffer overflow write in ReadJeffsImage()
Summary: CVE-2026-58382 gimp: gimp: Heap buffer overflow write in ReadJeffsImage()
Keywords:
Status: NEW
Alias: CVE-2026-58382
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-06 16:18 UTC by OSIDB Bzimport
Modified: 2026-07-07 09:23 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-06 16:18:33 UTC
Heap buffer overflow WRITE in GIMP's Jeff's Image Format (JIF) parser. In ReadJeffsImage() in file-gif-load.c, the bpp byte from the JIF header is used without validation as the unpack step. With bpp=1, the inner loop produces 8 pixels per decompressed byte, but the output buffer is sized for 1 pixel per byte, causing an 8x heap out-of-bounds write.

- Function: ReadJeffsImage()
- File: plug-ins/common/file-gif-load.c:1509-1635
- Fix: https://gitlab.gnome.org/GNOME/gimp/-/commit/de76a604
- Upstream issue: https://gitlab.gnome.org/GNOME/gimp/-/issues/16212
- Acknowledgment: bb1abu


Note You need to log in before you can comment on or make changes to this bug.