CVE-2026-140360: ImageMagick before 7.1.2-36 Policy Bypass via Sub Image Search
ImageMagick before 6.9.13-61 and 7.x before 7.1.2-36 contains a policy bypass vulnerability in sub image search, where a missing check allows the operation to exceed the configured time limit. Attackers can supply crafted images that trigger lengthy sub image search operations, causing uncontrolled resource consumption and denial of service.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.9.13-61 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.1.2-36
Event History
Frequently Asked Questions
Which deployments are affected?
ImageMagick versions before 6.9.13-61 and 7.x versions before 7.1.2-36 are affected. Deployments that process attacker-supplied or otherwise untrusted images are the relevant exposure scenario.
What does an attacker need to exploit this issue?
An attacker needs to supply a crafted image that causes a lengthy sub image search operation. No privileges or user interaction are required, but exploitation has high attack complexity.
What is the impact of successful exploitation?
The crafted image can bypass the configured time limit for sub image search and consume resources for an uncontrolled period. The stated impact is denial of service; no confidentiality or integrity impact is identified.
What should be done if an immediate upgrade is not possible?
The available information does not identify a workaround. Prioritize limiting or avoiding processing of untrusted images that could invoke sub image search until ImageMagick can be updated.