CVE-2026-140362: ImageMagick before 7.1.2-36 Infinite Loop via -rotational-blur Option
ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains an infinite loop in the handling of the -rotational-blur option when an invalid argument is supplied. Attackers who can control the command-line arguments passed to ImageMagick can trigger endless looping that exhausts CPU resources, causing a denial of service.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ImageMagickto a version that resolves this vulnerability.Fixed in 6.9.13-61 - Upgrade
Upgrade
ImageMagickto a version that resolves this vulnerability.Fixed in 7.1.2-36
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems are exposed if they use ImageMagick versions before 6.9.13-61 or 7.x before 7.1.2-36 and allow an attacker to control command-line arguments passed to ImageMagick. The issue requires local attack conditions and user interaction according to the supplied vector.
What input is required to trigger the denial of service?
An invalid argument supplied to ImageMagick's -rotational-blur option can trigger the infinite loop. Successful exploitation can exhaust CPU resources and make the affected ImageMagick process unavailable.
Is a default ImageMagick installation affected?
The provided information identifies affected versions but does not establish whether default workflows invoke -rotational-blur or permit untrusted parties to control ImageMagick command-line arguments. Exposure depends on how ImageMagick is integrated and whether those arguments are attacker-controlled.
What can be done if updating is not immediately possible?
Restrict untrusted control over ImageMagick command-line arguments, particularly values passed to -rotational-blur. This reduces the ability to supply the invalid argument needed to induce the endless loop.
How can an organization determine whether it may be affected?
Identify deployed ImageMagick versions and review whether they are before 6.9.13-61 or, for 7.x releases, before 7.1.2-36. Also review application integrations for paths where untrusted input can influence ImageMagick command-line options.