CVE-2026-130657: ImageMagick before 7.1.2-35 Policy Bypass on Windows via Path Separators
ImageMagick before 7.1.2-35 contains a policy bypass vulnerability on Windows that allows attackers to evade path-based security policies by mixing forward slash and backslash separators. Attackers can supply crafted image file paths using alternate separators to read or write image files that the configured policy is intended to block.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ImageMagickto a version that resolves this vulnerability.Fixed in 7.1.2-35
Event History
Frequently Asked Questions
Which deployments are exposed?
Windows deployments of ImageMagick before version 7.1.2-35 are affected when they rely on path-based security policies to restrict image file reads or writes.
What does an attacker need to exploit this issue?
An attacker needs a way to cause ImageMagick to process a crafted image file path. The exploit uses mixed forward-slash and backslash path separators to evade the configured path-based policy.
Are default installations affected?
The issue is relevant where path-based security policies have been configured. The provided information does not establish whether an unmodified default policy configuration is affected.
What can be done if upgrading is not immediately possible?
Avoid allowing untrusted users or inputs to control image file paths processed by ImageMagick on Windows, especially where those paths are expected to be constrained by path-based policies. Do not rely solely on those policies to enforce the intended read and write restrictions.