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

- Severity: Low 3.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-05T20:09:19.000Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-23hg-53q6-hqfg
- Weaknesses: CWE-122, CWE-131, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- ImageMagick ImageMagick: < 14.8.2; before 6.9.13-29; from 7.0.0-0 before 7.1.2-3
- Magick.NET-Q16-x64 (NuGet): before 14.8.2
- Magick.NET-Q8-x64 (NuGet): before 14.8.2
- Magick.NET-Q16-HDRI-x64 (NuGet): before 14.8.2
- Magick.NET-Q8-OpenMP-x64 (NuGet): before 14.8.2
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): before 14.8.2
- Magick.NET-Q16-OpenMP-x64 (NuGet): before 14.8.2
- Magick.NET-Q8-arm64 (NuGet): before 14.8.2
- Magick.NET-Q16-arm64 (NuGet): before 14.8.2
- Magick.NET-Q16-OpenMP-arm64 (NuGet): before 14.8.2
- Magick.NET-Q8-OpenMP-arm64 (NuGet): before 14.8.2
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): before 14.8.2
- Magick.NET-Q16-HDRI-arm64 (NuGet): before 14.8.2

## Every score

- GitHub_M: CVSS:3.1 3.8 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 3.8 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e> (patch, 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)

## Sources

- CVE List: [CVE-2025-57807](https://www.cve.org/CVERecord?id=CVE-2025-57807), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-23hg-53q6-hqfg](https://github.com/advisories/GHSA-23hg-53q6-hqfg), CC-BY-4.0, modified 2025-11-03
- NVD: [CVE-2025-57807](https://nvd.nist.gov/vuln/detail/CVE-2025-57807), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-57807 · Whole record: https://cve.day/CVE-2025-57807.json · Rebuilt by cve.day 2026-11-25T22:59:04.290Z
