CVE-2025-57807Heap-based Buffer Overflow in Imagemagick

Severity
9.8CRITICALNVD
OSV7.8
EPSS
0.0%
top 85.58%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 5
Latest updateSep 18

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. ImageMagick versions lower than 14.8.2 include insecure functions: SeekBlob(), which permits advancing the stream offset beyond the current end without increasing capacity, and WriteBlob(), which then expands by quantum + length (amortized) instead of offset + length, and copies to data + offset. When offset ≫ extent, the copy targets memory beyond the allocation, producing a deterministic heap write o

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages5 packages

debiandebian/imagemagick< imagemagick 8:6.9.11.60+dfsg-1.6+deb12u4 (bookworm)
CVEListV5imagemagick/imagemagick< 14.8.2
NVDimagemagick/imagemagick7.0.0-07.1.2-3+1
Debianimagemagick/imagemagick< 8:6.9.11.60+dfsg-1.3+deb11u6+3
Ubuntuimagemagick/imagemagick< 8:6.7.7.10-6ubuntu3.13+esm14+5

Patches

🔴Vulnerability Details

4
OSV
imagemagick vulnerabilities2025-09-18
OSV
CVE-2025-57807: ImageMagick is free and open-source software used for editing and manipulating digital images2025-09-05
GHSA
ImageMagick BlobStream Forward-Seek Under-Allocation2025-09-05
OSV
ImageMagick BlobStream Forward-Seek Under-Allocation2025-09-05

📋Vendor Advisories

3
Ubuntu
ImageMagick vulnerabilities2025-09-18
Red Hat
imagemagick: ImageMagick BlobStream Forward-Seek Under-Allocation2025-09-05
Debian
CVE-2025-57807: imagemagick - ImageMagick is free and open-source software used for editing and manipulating d...2025