CVE-2025-57803 — Heap-based Buffer Overflow in Imagemagick
Severity
8.8HIGHNVD
NVD7.5
EPSS
0.1%
top 75.94%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedAug 26
Latest updateNov 20
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-28 and 7.1.2-2 for ImageMagick's 32-bit build, a 32-bit integer overflow in the BMP encoder’s scanline-stride computation collapses bytes_per_line (stride) to a tiny value while the per-row writer still emits 3 × width bytes for 24-bpp images. The row base pointer advances using the (overflowed) stride, so the first row immediately writes past its slot and into adjacent heap me…
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 2.8 | Impact: 5.9
Affected Packages5 packages
Patches
🔴Vulnerability Details
8OSV▶
CVE-2025-62171: ImageMagick is an open source software suite for displaying, converting, and editing raster image files↗2025-10-17
📋Vendor Advisories
7Red Hat▶
ImageMagick: ImageMagick vulnerable to denial of service via integer overflow in BMP decoder on 32-bit systems↗2025-10-17
Oracle▶
Oracle Oracle Communications Risk Matrix: Developer Infrastructure (ImageMagick) — CVE-2025-57803↗2025-10-15
Red Hat▶
imagemagick: ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow↗2025-08-26