CVE-2025-57807
imagemagick: ImageMagick BlobStream Forward-Seek Under-Allocation
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-122, CWE-131, CWE-787
Affected packages · 13
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | ImageMagick_jll | <7.1.2004+0 | 7.1.2004+0 |
| NuGet | Magick.NET-Q16-arm64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q16-HDRI-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-OpenMP-x64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q16-HDRI-x64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q16-OpenMP-arm64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q16-OpenMP-x64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q16-x64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q8-arm64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q8-OpenMP-arm64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q8-OpenMP-x64 | <14.8.2 | 14.8.2 |
| NuGet | Magick.NET-Q8-x64 | <14.8.2 | 14.8.2 |
Open a package to see all its vulnerabilities.
Operating systems · 25 fixes
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | imagemagick +5 | 7.1.2.8-1.ph4 |
| 5.0 | imagemagick +5 | 7.1.2.8-1.ph5 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | imagemagick +5 | eol |
SUSE Linux Enterprise 3 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.6 | imagemagick-config-7-upstream | 7.1.0.9-150400.6.43.1 | SUSE-SU-2025:03616-1 |
| 15.6 | imagemagick +11 | 7.1.1.21-150600.3.23.1 | SUSE-SU-2025:03509-1 |
| 15.7 | imagemagick-config-7-upstream | 7.1.0.9-150400.6.43.1 | SUSE-SU-2025:03616-1 |
| 15.7 | imagemagick +11 | 7.1.1.43-150700.3.16.1 | SUSE-SU-2025:03510-1 |
| 16.0 | imagemagick +13 | 7.1.2.0-160000.4.1 | SUSE-SU-2025:21211-1 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | imagemagick +11 | 1:6.9.13.29-1.amzn2023.0.1 |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | imagemagick | 8:6.9.11.60+dfsg-1.3+deb11u6 |
| 12 | imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u4 |
| 13 | imagemagick | 8:7.1.1.43+dfsg1-1+deb13u2 |
| 14 | imagemagick | 8:7.1.2.3+dfsg1-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| imagemagick | 8:6.9.11.60+dfsg-1.6+deb12u4 |
minimos 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| imagemagick | 7.1.2.0-r0 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | imagemagick +14 | 7.1.2.3-1.1 | openSUSE-SU-2025:15543-1 |
openSUSE Leap 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | imagemagick +13 | 7.1.2.0-160000.4.1 | openSUSE-SU-2025:20162-1 |
root.io debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-imagemagick | 8:6.9.11.60+dfsg-1.3+deb11u6 |
| 12 | imagemagick +1 | 8:6.9.11.60+dfsg-1.6+deb12u4 |
| 13 | rootio-imagemagick | 8:7.1.1.43+dfsg1-1+deb13u2 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | imagemagick +1 | 6.9.10.68-6.el7_9+sp999 |
ubuntu 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.15+esm5 |
| 20.04-ESM | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm3 |
| 22.04 | imagemagick | affected |
| 24.04 | imagemagick | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-57807
- github.com https://github.com/ImageMagick/ImageMagick
- github.com https://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e
- github.com https://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e (7.1.2-3)
- github.com https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg
- github.com https://github.com/ImageMagick/ImageMagick6/commit/ab1bb3d8ed06d0ed6aa5038b6a74aebf53af9ccf (6.9.13-29)
- github.com https://github.com/advisories/GHSA-23hg-53q6-hqfg
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-57807
- ubuntu.com https://ubuntu.com/security/notices/USN-7756-1
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.