CVE-2025-57803 json
ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow
published 2025-08-26 14 mo ago modified 2026-07-30 3 mo ago also EUVD-2025-25837 , GHSA-mxvv-97wh-cfmm , JLSEC-2026-925
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-28 and 7.1.2-2 for ImageMagick's 32-bit build, a 32-bit integer overflow in the BMP encoder’s scanline-stride computation collapses bytes_per_line (stride) to a tiny value while the per-row writer still emits 3 × width bytes for 24-bpp images. The row base pointer advances using the (overflowed) stride, so the first row immediately writes past its slot and into adjacent heap memory with attacker-controlled bytes. This is a classic, powerful primitive for heap corruption in common auto-convert pipelines. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.
Patch / fix
- nuget Magick.NET-Q16-AnyCPU 14.8.1
- nuget Magick.NET-Q16-HDRI-AnyCPU 14.8.1
- nuget Magick.NET-Q16-HDRI-x86 14.8.1
- nuget Magick.NET-Q16-x86 14.8.1
- nuget Magick.NET-Q8-AnyCPU 14.8.1
- nuget Magick.NET-Q8-x86 14.8.1
- julia ImageMagick_jll 7.1.2004+0
- imagemagick imagemagick 6.9.13-28, 7.1.2-2
- dlemstra magick.net 14.8.1
- 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-57803
- imagemagick Ubuntu Pro 14.04 LTS 8:6.7.7.10-6ubuntu3.13+esm15
- imagemagick Ubuntu Pro 16.04 LTS 8:6.8.9.9-7ubuntu5.16+esm14
- imagemagick Ubuntu Pro 18.04 LTS 8:6.9.7.4+dfsg-16ubuntu6.15+esm6
- imagemagick Ubuntu Pro 20.04 LTS 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm4
- imagemagick Ubuntu Pro 22.04 LTS 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm4
- imagemagick Ubuntu Pro 24.04 LTS 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm3
ubuntu advisories UBUNTU-CVE-2025-57803
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 RHEL 7 ELS 6.9.10.68-9.el7_9
- ImageMagick-c++ RHEL 7 ELS 6.9.10.68-9.el7_9
- ImageMagick-perl RHEL 7 ELS 6.9.10.68-9.el7_9
red hat advisories RHSA-2025:16313
- ImageMagick SLES for SAP applications 16.0, SLES 16.0 7.1.2.0-160000.4.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.20.1
- ImageMagick SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +7 more 7.1.0.9-150400.6.40.1
- ImageMagick SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 7.0.7.34-150200.10.62.1
- ImageMagick SLE Module for Development Tools 15 SP7, SLE Module for Desktop Applications 15 SP7 7.1.1.43-150700.3.13.1
- ImageMagick SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 6.8.8.1-71.212.1
suse advisories SUSE-SU-2025:21211-1SUSE-SU-2025:03164-1SUSE-SU-2025:03152-1SUSE-SU-2025:03151-1SUSE-SU-2025:03150-1SUSE-SU-2025:03113-1
- ImageMagick openSUSE Leap 16.0 7.1.2.0-160000.4.1
- ImageMagick openSUSE Tumbleweed 7.1.2.2-2.1
opensuse advisories openSUSE-SU-2025:20162-1openSUSE-SU-2025:15498-1
- imagemagick Alpine 3.24, Alpine 3.23 7.1.2.8-r0
alpine advisories ALPINE-CVE-2025-57803
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
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-57803 updated cvss 7.5
imagemagick: ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux Server (v. 7 ELS) ImageMagick 6.9.10.68-9.el7_9, ImageMagick-c++ 6.9.10.68-9.el7_9, ImageMagick-perl 6.9.10.68-9.el7_9 Red Hat Enterprise Linux Server Optional (v. 7 ELS) ImageMagick-c++ 6.9.10.68-9.el7_9fixed: vendor fix RHSA-2025:16313
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
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 12 mo ago
Exploit prediction
0.91% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| nuget | Magick.NET-Q16-AnyCPU | <14.8.1 |
14.8.1 |
| nuget | Magick.NET-Q16-HDRI-AnyCPU | <14.8.1 |
14.8.1 |
| nuget | Magick.NET-Q16-HDRI-x86 | <14.8.1 |
14.8.1 |
| nuget | Magick.NET-Q16-x86 | <14.8.1 |
14.8.1 |
| nuget | Magick.NET-Q8-AnyCPU | <14.8.1 |
14.8.1 |
| nuget | Magick.NET-Q8-x86 | <14.8.1 |
14.8.1 |
| julia | ImageMagick_jll | <7.1.2004+0 |
7.1.2004+0 |
Affected products
- ImageMagick ImageMagick
Classification
References
-
github.com
/ImageMagick/ImageMagick/commit/2c55221f4d38193adcb51056c14cf238fbcc35d7
web, patch
-
github.com
/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm
exploit, web, vendor-advisory
-
github.com
/dlemstra/Magick.NET/releases/tag/14.8.1
web, release-notes
-
lists.debian.org
/debian-lts-announce/2025/09/msg00012.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-57803
advisory, web
-
github.com
/ImageMagick/ImageMagick
package
-
github.com
/advisories/GHSA-mxvv-97wh-cfmm
web
Sources
- CVE List CVE-2025-57803
- GitHub Advisory GHSA-mxvv-97wh-cfmm
- NVD CVE-2025-57803
- OSV JLSEC-2026-925
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.