# CVE-2021-39212: Issue when Configuring the ImageMagick Security Policy

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2021-09-13T00:00:00.000Z
- Modified: 2026-06-17T04:03:19.377Z
- Weaknesses: CWE-362, CWE-668
- Assigned by: GitHub_M

## 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}" />.

(As written by CVE List.)

## Affected

- ImageMagick ImageMagick: >= 7.0.0, < 7.1.0-7; < 6.9.12-22; from 6.9.12-0 before 6.9.12-22; from 7.1.0-0 before 7.1.0-7

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.6 Low `AV:L/AC:L/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr> (third-party-advisory)
- <https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68> (patch, third-party-advisory)
- <https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html> (mailing-list)

## Sources

- CVE List: [CVE-2021-39212](https://www.cve.org/CVERecord?id=CVE-2021-39212), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-39212](https://nvd.nist.gov/vuln/detail/CVE-2021-39212), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-39212 · Whole record: https://cve.day/CVE-2021-39212.json · Rebuilt by cve.day 2026-11-25T22:58:03.913Z
