CVE-2025-57807 json
ImageMagick BlobStream Forward-Seek Under-Allocation
published 2025-09-05 14 mo ago modified 2026-10-19 20 d ago also EUVD-2025-27126 , GHSA-23hg-53q6-hqfg , JLSEC-2026-926
- cvss
- 3.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 23%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nuget Magick.NET-Q16-x64 14.8.2
- nuget Magick.NET-Q8-x64 14.8.2
- nuget Magick.NET-Q16-HDRI-x64 14.8.2
- nuget Magick.NET-Q8-OpenMP-x64 14.8.2
- nuget Magick.NET-Q16-HDRI-OpenMP-x64 14.8.2
- nuget Magick.NET-Q16-OpenMP-x64 14.8.2
- nuget Magick.NET-Q8-arm64 14.8.2
- nuget Magick.NET-Q16-arm64 14.8.2
- nuget Magick.NET-Q16-OpenMP-arm64 14.8.2
- nuget Magick.NET-Q8-OpenMP-arm64 14.8.2
- nuget Magick.NET-Q16-HDRI-OpenMP-arm64 14.8.2
- nuget Magick.NET-Q16-HDRI-arm64 14.8.2
- julia ImageMagick_jll 7.1.2004+0
- imagemagick imagemagick 6.9.13-29, 7.1.2-3
- dlemstra magick.net 14.8.2
- imagemagick Debian 12 8:6.9.11.60+dfsg-1.6+deb12u4
- imagemagick Debian 13 8:7.1.1.43+dfsg1-1+deb13u2
- imagemagick Debian 14 8:7.1.2.3+dfsg1-1
debian advisories DEBIAN-CVE-2025-57807
- imagemagick Ubuntu Pro 14.04 LTS 8:6.7.7.10-6ubuntu3.13+esm14
- imagemagick Ubuntu Pro 16.04 LTS 8:6.8.9.9-7ubuntu5.16+esm13
- imagemagick Ubuntu Pro 18.04 LTS 8:6.9.7.4+dfsg-16ubuntu6.15+esm5
- imagemagick Ubuntu Pro 20.04 LTS 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm3
- imagemagick Ubuntu Pro 22.04 LTS 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm3
- imagemagick Ubuntu Pro 24.04 LTS 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm2
ubuntu advisories UBUNTU-CVE-2025-57807
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ImageMagick SLES for SAP applications 16.0, SLES 16.0 7.1.2.0-160000.4.1
- ImageMagick SLE Module for Desktop Applications 15 SP7, SLE Module for Desktop Applications 15 SP6 7.1.0.9-150400.6.43.1
- ImageMagick SLE Module for Development Tools 15 SP7, SLE Module for Desktop Applications 15 SP7 7.1.1.43-150700.3.16.1
- ImageMagick SLE Module for Development Tools 15 SP6, SLE Module for Desktop Applications 15 SP6, openSUSE Leap 15.6 7.1.1.21-150600.3.23.1
suse advisories SUSE-SU-2025:21211-1SUSE-SU-2025:03616-1SUSE-SU-2025:03510-1SUSE-SU-2025:03509-1
- ImageMagick openSUSE Leap 16.0 7.1.2.0-160000.4.1
- ImageMagick openSUSE Tumbleweed 7.1.2.3-1.1
opensuse advisories openSUSE-SU-2025:20162-1openSUSE-SU-2025:15543-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-57807 updated cvss 4.2
imagemagick: ImageMagick BlobStream Forward-Seek Under-Allocation
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: workaround, no fix planned “Out of support scope”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 14 mo ago
Exploit prediction
0.30% chance of exploitation in the next 30 days, higher than 23% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.8 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 3.8 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | Magick.NET-Q16-x64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q8-x64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q16-HDRI-x64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q8-OpenMP-x64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q16-HDRI-OpenMP-x64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q16-OpenMP-x64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q8-arm64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q16-arm64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q16-OpenMP-arm64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q8-OpenMP-arm64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q16-HDRI-OpenMP-arm64 | <14.8.2 |
14.8.2 |
| nuget | Magick.NET-Q16-HDRI-arm64 | <14.8.2 |
14.8.2 |
| julia | ImageMagick_jll | <7.1.2004+0 |
7.1.2004+0 |
Affected products
- ImageMagick ImageMagick
Classification
References
-
github.com
/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e
web, patch
-
github.com
/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg
exploit, web, mitigation, vendor-advisory
-
lists.debian.org
/debian-lts-announce/2025/09/msg00012.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-57807
advisory, web
-
github.com
/ImageMagick/ImageMagick
package
-
github.com
/advisories/GHSA-23hg-53q6-hqfg
web
Sources
- CVE List CVE-2025-57807
- GitHub Advisory GHSA-23hg-53q6-hqfg
- NVD CVE-2025-57807
- OSV JLSEC-2026-926
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.