CVE-2025-57807Imagemagick 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. ImageMagick versions lower than 14.8.2 include insecure functions: SeekBlob(), which permits advancing the stream offset beyond the current end without increasing capacity, and WriteBlob(), which then expands by quantum + length (amortized) instead of offset + length, and copies to data + offset. When offset ≫ extent, the copy targets memory beyond the allocation, producing a deterministic heap write on 64-bit builds. No 2⁶⁴ arithmetic wrap, external delegates, or policy settings are required. This is fixed in version 14.8.2.
CVSS v3.1 Base Metrics — Score 3.8 (LOW)
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:LAttack VectorLocal
Attack ComplexityHigh
Privileges RequiredHigh
User InteractionRequired
ScopeUnchanged
ConfidentialityLow
IntegrityLow
AvailabilityLow
Affected & Patched Versions
- Imagemagick Imagemagick < 6.9.13-29
- Imagemagick Imagemagick >= 7.0.0-0 and < 7.1.2-3
- Imagemagick Imagemagick 6.9.13-29
- Imagemagick Imagemagick 7.1.2-3
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run Imagemagick Imagemagick and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Sep 5, 2025Published
- Oct 19, 2026Record 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-57807. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsRelated Coverage
External References
- Patchhttps://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e
- Exploithttps://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg
- Referencehttps://lists.debian.org/debian-lts-announce/2025/09/msg00012.html
- Exploithttps://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg
Data last checked: Nov 19, 2026 10:07 UTC