CVE-2021-39212: ImageMagick - Misconfiguration
- Cve: CVE-2021-39212
- Name: ImageMagick - Misconfiguration
- Description: 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}" />.
- Impact: Attackers can read and write Postscript files, potentially leading to arbitrary code execution or data tampering.
- Remediation: Update to version 7.1.0-7 or 6.9.12-22, or apply recommended policy configuration: <policy domain="coder" rights="none" pattern="{PS,EPI,EPS,EPSF,EPSI}" />.
- Vulnerability type: misconfiguration
- Vulnerability impact: file_system_read, file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: low
- Cvss score: 3.6
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- Epss score: 0.00353
- Epss percentile: 0.29311
- Assignee: [email protected]
- Published at: 2021-09-13T18:15:23Z
- Age in days: 1898
- Modified at: 2026-06-17T04:03:19Z
- Patch available: yes
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-39212
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-668 | Exposure of Resource to Wrong Sphere |
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| imagemagick:imagemagick | >= 6.9.12-0, < 6.9.12-22; >= 7.1.0-0, < 7.1.0-7 | no | nvd | /v1/products/imagemagick/imagemagick |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ImageMagick/ImageMagick | commit, fix, security_advisory | yes | /v1/repositories/ImageMagick/ImageMagick |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts