Path policy race in ImageMagick magick script lets attackers read files
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · GHSA-7q74-r26w-fwcx. Fix status from GitHub. Impact type from CWE-59 and the CVSS impact.
Summary
ImageMagick before 7.1.2-32 contains a time-of-check time-of-use race condition in symlink handling when a magick script runs. A local attacker can swap a symlink between the policy check and the file access, which reads a file that the security policy does not allow. The attacker needs local access with no privileges and a user interaction is not required, and the impact is limited to reading files, with low confidentiality impact.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the GitHub advisory
When executing a magick script it is possible to perform a TOCTOU symlink race bypass that would result in reading a file that is not allowed according to the security policy.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ImageMagick (c/c++) | < 7.1.2-32 | 7.1.2-32 | Patch available | GHSA-7q74-r26w-fwcx |
- ImageMagick (c/c++) Vendor— Affected < 7.1.2-32 Fixed in 7.1.2-32 Patch available GHSA-7q74-r26w-fwcx
Remediation
ImageMagick 7.1.2-32 fixes this issue, so update to that version or later.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · GHSA-7q74-r26w-fwcx ImageMagick (c/c++) Fixed in 7.1.2-32 Advisory →
Timeline
- 2026-11-12 Threatist record created from GHSA-7q74-r26w-fwcx
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences