CVE-2025-57803

High

Description

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductImagemagick
PublishedAug 26, 2025
First seenAug 26, 2025

How to fix

Update
  • imagemagick imagemagick6.9.13-28, 7.1.2-2 or later
  • Magick.NET-Q16-AnyCPU14.8.1 or later
  • Magick.NET-Q16-HDRI-AnyCPU14.8.1 or later
  • Magick.NET-Q16-HDRI-x8614.8.1 or later
  • Magick.NET-Q16-x8614.8.1 or later
  • Magick.NET-Q8-AnyCPU14.8.1 or later
  • Magick.NET-Q8-x8614.8.1 or later

Affected products

ProductAffected versionsFixed in
imagemagick imagemagickv < 6.9.13-28, 7.0.0-0 ≤ v < 7.1.2-26.9.13-28, 7.1.2-2
Magick.NET-Q16-AnyCPUNuGetv < 14.8.114.8.1
Magick.NET-Q16-HDRI-AnyCPUNuGetv < 14.8.114.8.1
Magick.NET-Q16-HDRI-x86NuGetv < 14.8.114.8.1
Magick.NET-Q16-x86NuGetv < 14.8.114.8.1
Magick.NET-Q8-AnyCPUNuGetv < 14.8.114.8.1
Magick.NET-Q8-x86NuGetv < 14.8.114.8.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.