Description
ImageMagick before 7.1.2-32 and 6.9.13-57 contains a policy bypass vulnerability in LoadPolicyCache that silently skips security policy rules when policy.xml uses an alternate DOCTYPE. A valid DOCTYPE not ending in ']>' makes the parser consume the rest of the file, so no policy rules are applied and restricted operations become allowed.
Affected products
imagemagick: imagemagick
References8
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-jjp… Vendor Advisory
- github.com/ImageMagick/ImageMagick/commit/1926ccf119141c26274c1… Patch
- github.com/ImageMagick/ImageMagick/commit/399d4bd3b081f44c7fef7… Patch
- github.com/ImageMagick/ImageMagick6/commit/402ebc5353e569234908… Patch
- github.com/ImageMagick/ImageMagick6/commit/da6022b2efe6cce8a2fd… Patch
- www.vulncheck.com/advisories/imagemagick-before-7.1.2-32-and-6.… PatchThird Party Advisory
- github.com/ImageMagick/ImageMagick Product
- github.com/ImageMagick/ImageMagick/blob/7.1.2-31/MagickCore/pol… Product
Metrics
- CVSS 3.1
-
4.2
MEDIUM
Score source: NVD
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L - CVSS 4.0
-
1.8
LOW
Score source: CNA
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 1 · as of 10 November 2026
- CWE
- CWE-693
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.