Heap corruption via overflowed BMP scanline stride
Published Aug 26, 2025 · Updated Feb 26, 2026
Heap overflow in ImageMagick before 6.9.13-32 or 7.1.2-7 allows remote authenticated users to crash image-conversion workers. In WriteBMPImage, 32-bit scanline-stride arithmetic wraps bytes_per_line to a tiny value, but the row loop still writes three attacker-controlled bytes per pixel and advances the heap pointer by the wrapped stride. Reachability requires a 32-bit build with width, height, and area resource limits raised above their defaults; 64-bit builds and default resource limits block this path.
Summary
What happened
Heap overflow in ImageMagick before 6.9.13-32 or 7.1.2-7 allows remote authenticated users to crash image-conversion workers. In WriteBMPImage, 32-bit scanline-stride arithmetic wraps bytes_per_line to a tiny value, but the row loop still writes three attacker-controlled bytes per pixel and advances the heap pointer by the wrapped stride. Reachability requires a 32-bit build with width, height, and area resource limits raised above their defaults; 64-bit builds and default resource limits block this path.
The record
- CVE
- CVE-2025-57803
- Published
- Aug 26, 2025
- Updated
- Feb 26, 2026
- Vendor
- ImageMagick Studio LLC
- Product
- ImageMagick
- Classifications
- CWE-190, CWE-122, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 26, 2025CVE publishedPublication date reported by the CVE source.
- Feb 26, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 6.9.13-28
- Affected versionversion=< 7.1.2-2
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Minimal 58-byte BMP proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo