cbcvebase.
CVE-2025-55298
published 2025-08-26

CVE-2025-55298: ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format…

PriorityP265high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
4.35%
90.6th percentile
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format string bug vulnerability exists in InterpretImageFilename function where user input is directly passed to FormatLocaleString without proper sanitization. An attacker can overwrite arbitrary memory regions, enabling a wide range of attacks from heap overflow to remote code execution. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.

Affected

14 ranges
VendorProductVersion rangeFixed in
debianimagemagick< imagemagick 8:6.9.11.60+dfsg-1.6+deb12u4 (bookworm)imagemagick 8:6.9.11.60+dfsg-1.6+deb12u4 (bookworm)
imagemagickimagemagick< 7.1.2-27.1.2-2
imagemagickimagemagick< 6.9.13-286.9.13-28
imagemagickimagemagick>= 0 < 8:6.9.11.60+dfsg-1.3+deb11u68:6.9.11.60+dfsg-1.3+deb11u6
imagemagickimagemagick>= 0 < 8:6.9.11.60+dfsg-1.6+deb12u48:6.9.11.60+dfsg-1.6+deb12u4
imagemagickimagemagick>= 0 < 8:7.1.1.43+dfsg1-1+deb13u28:7.1.1.43+dfsg1-1+deb13u2
imagemagickimagemagick>= 0 < 8:7.1.2.3+dfsg1-18:7.1.2.3+dfsg1-1
imagemagickimagemagick>= 0 < 8:6.7.7.10-6ubuntu3.13+esm158:6.7.7.10-6ubuntu3.13+esm15
imagemagickimagemagick>= 0 < 8:6.8.9.9-7ubuntu5.16+esm148:6.8.9.9-7ubuntu5.16+esm14
imagemagickimagemagick>= 0 < 8:6.9.7.4+dfsg-16ubuntu6.15+esm68:6.9.7.4+dfsg-16ubuntu6.15+esm6
imagemagickimagemagick>= 0 < 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm48:6.9.10.23+dfsg-2.1ubuntu11.11+esm4
imagemagickimagemagick>= 0 < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm48:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm4
imagemagickimagemagick>= 0 < 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm38:6.9.12.98+dfsg1-5.2ubuntu0.1~esm3
imagemagickimagemagick>= 7.0.0-0 < 7.1.2-27.1.2-2

Detection & IOCsextracted from sources · hover to see the quote

  • Trigger condition: filenames containing printf-style format specifiers (e.g., %d, %o, %x) passed to ImageMagick will exercise the vulnerable code path in InterpretImageFilename → FormatLocaleString.
  • Vulnerable function to target in code-level detection or fuzzing: InterpretImageFilename — user input is passed unsanitized directly to FormatLocaleString.
  • ·Mitigation available via ImageMagick directive: disable format string parsing by defining the filename as a literal. In wrappers use 'filename:literal'; from the command line use '-define filename:literal=true'.
  • ·Fixed versions are ImageMagick 6.9.13-28 and 7.1.2-2 (and later). Deployments running earlier versions are vulnerable.
  • ·On Red Hat Enterprise Linux, default OS mitigations (SELinux, ASLR, memory protections) reduce exploitability to denial-of-service in practice. ImageMagick is not shipped in RHEL 8, 9, or 10.

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.