Buffer overflow in Imagemagick
CVE-2025-57807
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 on 64-bit builds. No 2⁶⁴ arithmetic wrap, external delegates, or policy settings are required. This is fixed in version 14.8.2.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.8 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.003, 23.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Imagemagick — versions < 14.8.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (fkie-cad/nvd-json-data-feeds, mescuwa/mescuwa, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.