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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-09-13 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2021-39212, DEBIAN-CVE-2021-39212, ALPINE-CVE-2021-39212
- Record: https://cvemate.com/vulnerability/CVE-2021-39212 · JSON: https://cvemate.com/vulnerability/CVE-2021-39212/json

## Description

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

## Signals

- CVSS: 4.4 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.353%, percentile 30.936%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine imagemagick (Alpine Linux): ≥ 6.9.12-0, \< 7.1.0.10-r0 \| \< 7.1.0.10-r0
- alpine imagemagick6 (Alpine Linux): \< 6.9.12.31-r0
- debian imagemagick (Debian): \< 8:6.9.11.60+dfsg-1.5
- ubuntu imagemagick (Ubuntu): \< 8:6.9.10.23+dfsg-2.1ubuntu11.9 \| \< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1
- imagemagick imagemagick: ≥ 7.0.0, \< 7.1.0-7 \| \< 6.9.12-22 \| ≥ 6.9.12-0, \< 6.9.12-22 \| ≥ 7.1.0-0, \< 7.1.0-7

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr>
- <https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68>
- <https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e>
- <https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html>
- <https://ubuntu.com/security/CVE-2021-39212>
- <https://ubuntu.com/security/notices/USN-5736-1>
- <https://ubuntu.com/security/notices/USN-5736-2>
- <https://ubuntu.com/security/notices/USN-6200-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-39212>
- <https://security-tracker.debian.org/tracker/CVE-2021-39212>
- <https://security.alpinelinux.org/vuln/CVE-2021-39212>

---

Data as of 2026-12-05T06:22:27.164Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
