CVE-2025-57803
CVE-2025-57803 — ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
1%
chance of exploitation in 30 days
CVSS base
7.5
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.5 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-122
- CWE-190
References
4 on the record
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm
x_refsource_CONFIRM
- github.com/ImageMagick/ImageMagick/commit/2c55221f4d38193adcb51056c14cf238fbcc35d7
x_refsource_MISC
- github.com/dlemstra/Magick.NET/releases/tag/14.8.1
x_refsource_MISC
- lists.debian.org/debian-lts-announce/2025/09/msg00012.html
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2016-3714 ImageMagick Improper Input Validation VulnerabilityCVSS 8.4 · CISA KEV
- CVE-2016-3718 ImageMagick Server-Side Request Forgery (SSRF) VulnerabilityCVSS 5.5 · CISA KEV
- CVE-2016-3715 ImageMagick Arbitrary File Deletion VulnerabilityCVSS 5.5 · CISA KEV
- CVE-2026-116158 ImageMagick before 7.1.2-33 Memory Leak in magick compareCVSS 2.5
- CVE-2026-97229 Integer Overflow or Wraparound in GitLabCVSS 10.0 · CISA KEV
- CVE-2026-94127 BIG-IP APM OAuth vulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
- Imagemagickevery CVE for this vendor
- CWE-122other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.