CVE-2025-57807
CRITICAL 9.8CVSS 3.1ImageMagick BlobStream Forward-Seek Under-Allocation
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.
- Published
- 5 Sep 2025
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-122CWE-131CWE-787
- Also known as
- GHSA-23hg-53q6-hqfg
- Sources
- NVDJSONOSV GHSA-23hg-53q6-hqfgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.8 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 3.8 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | imagemagick | imagemagickcpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
< 6.9.13-29 | 6.9.13-29 |
| NVD | imagemagick | imagemagickcpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* |
>= 7.0.0-0, < 7.1.2-3 | 7.1.2-3 |
| OSV | NuGet | Magick.NET-Q16-x64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q8-x64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q16-HDRI-x64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q8-OpenMP-x64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q16-HDRI-OpenMP-x64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-x64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q8-arm64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q16-arm64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q16-OpenMP-arm64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q8-OpenMP-arm64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q16-HDRI-OpenMP-arm64 | < 14.8.2 | 14.8.2 |
| OSV | NuGet | Magick.NET-Q16-HDRI-arm64 | < 14.8.2 | 14.8.2 |
References
- https://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e · Patch, WEB
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg · Exploit, Mitigation, Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-57807 · ADVISORY
- https://github.com/ImageMagick/ImageMagick · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 5 Sep 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 Sep 2025)