CVE-2021-39212
CVE-2021-39212 — Issue when Configuring the ImageMagick Security Policy
ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. In affected versions and in certain cases, Postscript files could be read and written when specifically excluded by a `module` policy in `policy.xml`. ex. <policy domain="module" rights="none" pattern="PS" />. The issue has been resolved in ImageMagick 7.1.0-7 and in 6.9.12-22. Fortunately, in the wild, few users utilize the `module` policy and instead use the `coder` policy that is also our workaround recommendation: <policy domain="coder" rights="none" pattern="{PS,EPI,EPS,EPSF,EPSI}" />.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
4.4
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 4.4 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-668
References
4 on the record
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr
reference
- github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68
reference
- github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e
reference
- lists.debian.org/debian-lts-announce/2023/05/msg00020.html
mailing-list
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2016-3714 ImageMagick Improper Input Validation VulnerabilityCVSS 8.4 · CISA KEV
- CVE-2016-3718 ImageMagick Server-Side Request Forgery (SSRF) VulnerabilityCVSS 5.5 · CISA KEV
- CVE-2016-3715 ImageMagick Arbitrary File Deletion VulnerabilityCVSS 5.5 · CISA KEV
- CVE-2026-116158 ImageMagick before 7.1.2-33 Memory Leak in magick compareCVSS 2.5
- CVE-2025-9074 Docker Desktop allows unauthenticated access to Docker Engine API from containersCVSS 9.3
- CVE-2026-96812 Host Root Sandbox Escape in gVisor via Character Device Passthrough and CUSECVSS 8.8
Elsewhere on this site
- Imagemagickevery CVE for this vendor
- CWE-668other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.