CVE-2025-57803ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow
- 7.5HighCVSS base score
- 0.96%Exploitation in 30 daysEPSS · top 38% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit.
Show the exploits1
References tagged exploit1 reference
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm (opens in a new tab)x_refsource_CONFIRMexploit
Timeline
ID reserved
By GitHub_M
- 6 days later
· 6 days later
Published
- 6 months later
· 6 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.96% · top 38% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
- affected < 7.1.2-2
- affected < 6.9.13-28
Affected packages
Affected packages6
From reviewed advisories of the GitHub Advisory Database.
- NuGetMagick.NET-Q16-AnyCPUGHSA-mxvv-97wh-cfmm (opens in a new tab)
- NuGetMagick.NET-Q16-HDRI-AnyCPUGHSA-mxvv-97wh-cfmm (opens in a new tab)
- NuGetMagick.NET-Q16-HDRI-x86GHSA-mxvv-97wh-cfmm (opens in a new tab)
- NuGetMagick.NET-Q16-x86GHSA-mxvv-97wh-cfmm (opens in a new tab)
- NuGetMagick.NET-Q8-AnyCPUGHSA-mxvv-97wh-cfmm (opens in a new tab)
- NuGetMagick.NET-Q8-x86GHSA-mxvv-97wh-cfmm (opens in a new tab)
References
References4
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/ImageMagick/ImageMagick/commit/2c55221f4d38193adcb51056c14cf238fbcc35d7 (opens in a new tab)x_refsource_MISC
- https://github.com/dlemstra/Magick.NET/releases/tag/14.8.1 (opens in a new tab)x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-25837 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mxvv-97wh-cfmm (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-57803)Record last updated .