CVE Watchtower

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.
Severity Level
HIGH(7.5)
Published Date
Aug 26, 2025
Last Modified
Sep 2, 2025
Exploitation Status
Public exploit available
Root Weakness (CWE)
The buffer being overwritten is allocated in the heap portion of memory.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes the resulting value will always be larger than the original.
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:H
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Imagemagick Imagemagick < 6.9.13-28
  • Imagemagick Imagemagick >= 7.0.0-0 and < 7.1.2-2
Patched Versions
  • 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.

  1. Check whether you run Imagemagick Imagemagick and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. 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 alerts

Data last checked: Nov 19, 2026 10:07 UTC