CVE-2025-57803Imagemagick Imagemagick Heap-based Buffer Overflow
NVDCVSS scored by security-advisories@github.com
Vulnerability 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.
CVSS v3.1 Base Metrics — Score 7.5 (HIGH)
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Imagemagick Imagemagick < 6.9.13-28
- Imagemagick Imagemagick >= 7.0.0-0 and < 7.1.2-2
- Imagemagick Imagemagick 6.9.13-28
- Imagemagick Imagemagick 7.1.2-2
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run Imagemagick Imagemagick and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Aug 26, 2025Published
- Sep 2, 2025Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Imagemagick Imagemagick CVEsYou are reading CVE-2025-57803. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsRelated Coverage
- CVE-2025-57803: Critical Flaw in ImageMagick Could Lead to Remote Code Execution
- “PDF” Poison: Popular JavaScript Library Patches Critical Injection and Crash Flaws
- Broadcast Hijack: Critical KiloView Flaw (CVSS 9.8) Grants Full Control
- Stealth Stealer: New .NET Loader Hides LokiBot Payload in BMP/PNG Images Using Advanced Steganography
External References
- Patchhttps://github.com/ImageMagick/ImageMagick/commit/2c55221f4d38193adcb51056c14cf238fbcc35d7
- Exploithttps://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm
- Referencehttps://github.com/dlemstra/Magick.NET/releases/tag/14.8.1
- Exploithttps://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm
Data last checked: Nov 19, 2026 10:07 UTC