CVE-2025-57807
LOW3.8EPSS 0.07%ImageMagick BlobStream Forward-Seek Under-Allocation
Published: 9/5/2025Modified: 4/28/2026
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 (13)
- Debian/imagemagickfrom 0, < 8:6.9.11.60+dfsg-1.3+deb11u6
- NuGet/Magick.NET-Q16-arm64from 0, < 14.8.2
- NuGet/Magick.NET-Q16-HDRI-arm64from 0, < 14.8.2
- NuGet/Magick.NET-Q16-HDRI-OpenMP-arm64from 0, < 14.8.2
- NuGet/Magick.NET-Q16-HDRI-OpenMP-x64from 0, < 14.8.2
- NuGet/Magick.NET-Q16-HDRI-x64from 0, < 14.8.2
- NuGet/Magick.NET-Q16-OpenMP-arm64from 0, < 14.8.2
- NuGet/Magick.NET-Q16-OpenMP-x64from 0, < 14.8.2
- NuGet/Magick.NET-Q16-x64from 0, < 14.8.2
- NuGet/Magick.NET-Q8-arm64from 0, < 14.8.2
- NuGet/Magick.NET-Q8-OpenMP-arm64from 0, < 14.8.2
- NuGet/Magick.NET-Q8-OpenMP-x64from 0, < 14.8.2
- NuGet/Magick.NET-Q8-x64from 0, < 14.8.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.8 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-57807
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-57807
- PATCHhttps://github.com/ImageMagick/ImageMagick
- WEBhttps://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e
- WEBhttps://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg
- WEBhttps://lists.debian.org/debian-lts-announce/2025/09/msg00012.html