Vulnerability · Published Sep 5, 2025 · Assigned by GitHub_M
CVE-2025-57807ImageMagick BlobStream Forward-Seek Under-Allocation
Low 3.8
In plain English
A low-severity out-of-bounds write in ImageMagick from ImageMagick. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 on 64-bit builds. No 2⁶⁴ arithmetic wrap, external delegates, or policy settings are required. This is fixed in version 14.8.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u4 | DEBIAN-CVE-2025-57807 |
| Debian:12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u4 | DSA-5997-1 |
| Debian:13 | imagemagick | 8:7.1.1.43+dfsg1-1+deb13u2 | DEBIAN-CVE-2025-57807 |
| Debian:13 | imagemagick | 8:7.1.1.43+dfsg1-1+deb13u2 | DSA-5997-1 |
| Debian:14 | imagemagick | 8:7.1.2.3+dfsg1-1 | DEBIAN-CVE-2025-57807 |
| NuGet | magick.net-q16-arm64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q16-hdri-arm64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q16-hdri-openmp-arm64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q16-hdri-openmp-x64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q16-hdri-x64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q16-openmp-arm64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q16-openmp-x64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q16-x64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q8-arm64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q8-openmp-arm64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q8-openmp-x64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
| NuGet | magick.net-q8-x64 | 14.8.2 | GHSA-23hg-53q6-hqfg |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ImageMagick | ImageMagick | < 14.8.2 |
Weakness: CWE-787, CWE-122, CWE-131 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L