CVE-2025-57803
August 26, 2025
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.
Affected Packages
https://github.com/ImageMagick/ImageMagick.git (GITHUB):
Affected version(s) >=7.0.1-0 <7.1.2-2Fix Suggestion:
Update to version 7.1.2-2Magick.NET-Q16-AnyCPU (NUGET):
Affected version(s) >=6.8.8.1001 <14.8.1Fix Suggestion:
Update to version 14.8.1Magick.NET-Q8-AnyCPU (NUGET):
Affected version(s) >=6.8.8.1001 <14.8.1Fix Suggestion:
Update to version 14.8.1Magick.NET-Q16-HDRI-AnyCPU (NUGET):
Affected version(s) >=6.8.9.101 <14.8.1Fix Suggestion:
Update to version 14.8.1Magick.NET-Q16-HDRI-x86 (NUGET):
Affected version(s) >=6.8.9.101 <14.8.1Fix Suggestion:
Update to version 14.8.1Magick.NET-Q8-x86 (NUGET):
Affected version(s) >=6.8.5.401 <14.8.1Fix Suggestion:
Update to version 14.8.1Magick.NET-Q16-x86 (NUGET):
Affected version(s) >=6.8.5.401 <14.8.1Fix Suggestion:
Update to version 14.8.1Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
EPSS
Base Score:
0.09