CVE-2025-57807
ImageMagick BlobStream Forward-Seek Under-Allocation
Reported by github_m · Published September 5, 2025
magick.net-q16-x64 is fixed in 14.8.2 (NuGet)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| magick.net-q16-x64 | NuGet | 14.8.2 |
| Magick.NET-Q16-HDRI-arm64 | NuGet | 14.8.2 |
| Magick.NET-Q16-arm64 | NuGet | 14.8.2 |
| Magick.NET-Q8-OpenMP-arm64 | NuGet | 14.8.2 |
| magick.net-q8-openmp-x64 | NuGet | 14.8.2 |
| Magick.NET-Q16-HDRI-OpenMP-x64 | NuGet | 14.8.2 |
| Magick.NET-Q16-HDRI-x64 | NuGet | 14.8.2 |
| ImageMagick-perl | Amazon Linux | 6.9.10.97-1.amzn2.0.17 |
| ImageMagick | Amazon Linux | 1:6.9.13.29-1.amzn2023.0.1 |
| ImageMagick-c++ | Amazon Linux | 1:6.9.13.29-1.amzn2023.0.1 |
| ImageMagick-c++-devel | Amazon Linux | 1:6.9.13.29-1.amzn2023.0.1 |
| nextcloud | DHI | 7.1.2-3, 6.9.13-29 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ImageMagick | ImageMagick | < 14.8.2 |
| amazon:2 | ImageMagick-perl | 0 |
| amazon:2023 | ImageMagick | 0 |
| NuGet | Magick.NET-Q16-HDRI-arm64 | 0 |
| NuGet | magick.net-q16-x64 | 0 |
| amazon:2023 | ImageMagick-c++ | 0 |
| amazon:2023 | ImageMagick-c++-devel | 0 |
| ImageMagick | ImageMagick | 0 |
| NuGet | magick.net-q8-x64 | 0 |
| amazon:2023 | ImageMagick-perl | 0 |
| NuGet | Magick.NET-Q16-x64 | 0 |
| NuGet | magick.net-q8-openmp-x64 | 0 |
| NuGet | Magick.NET-Q16-HDRI-OpenMP-arm64 | 0 |
| amazon:2023 | ImageMagick-libs | 0 |
| amazon:2 | ImageMagick | 0 |
| NuGet | Magick.NET-Q8-x64 | 0 |
| NuGet | Magick.NET-Q16-OpenMP-x64 | 0 |
| amazon:2023 | ImageMagick-doc | 0 |
| NuGet | Magick.NET-Q16-HDRI-x64 | 0 |
| NuGet | Magick.NET-Q8-arm64 | 0 |
…and 10 more
Timeline
- Sep 4, 2025 CVE Published
- Sep 6, 2025 EPSS Score (30 in total, the first dated here)
- Dec 18, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (4 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Aug 12, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-57807
vulnetix vdb fixes CVE-2025-57807
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-57807/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg x_refsource_CONFIRM
- https://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-57807 advisory
- https://github.com/advisories/GHSA-23hg-53q6-hqfg advisory
- https://github.com/ImageMagick/ImageMagick url
- https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html url