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…

PriorityP268high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
4.06%
89.4th 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

otherformat specifiers in filename: %d, %o, %x
  • Flag image filenames containing printf-style format specifiers (%d, %o, %x, etc.) passed to ImageMagick's InterpretImageFilename / FormatLocaleString code path — these are the crafted inputs that trigger the vulnerability.
  • Monitor ImageMagick process invocations where filenames supplied on the command line or via wrappers contain % characters followed by conversion specifiers (d, o, x, s, n, etc.), which are the attack vector for this format string bug.
  • Detect vulnerable ImageMagick versions: any release prior to 6.9.13-28 (6.x branch) or 7.1.2-2 (7.x branch) is unpatched and susceptible to this format string RCE.
  • As a workaround/detection bypass indicator: absence of the '-define filename:literal=true' flag (or 'filename:literal' wrapper directive) in ImageMagick invocations means format string parsing is active and exploitation is possible.
  • ·Default Red Hat Enterprise Linux mitigations (SELinux, ASLR, memory protections) reduce exploitability to denial-of-service in practice; however, the vulnerability still exists in unpatched ImageMagick builds on those platforms.
  • ·ImageMagick is not shipped in Red Hat Enterprise Linux 8, 9, or 10, so those RHEL versions are not affected and do not require patching.

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.