CVE-2021-39212 json
Issue when Configuring the ImageMagick Security Policy
published 2021-09-13 5 y ago modified 2026-07-30 3 mo ago also EUVD-2021-25590 , JLSEC-2026-890
- cvss
- 4.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 29%
- public exploits
- 0
- none known
Summary
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}" />.
Patch / fix
- julia ImageMagick_jll 6.9.12+1
- imagemagick imagemagick 6.9.12-22, 7.1.0-7
- imagemagick Debian 14, Debian 13, Debian 12 8:6.9.11.60+dfsg-1.5
debian advisories DEBIAN-CVE-2021-39212
- imagemagick Ubuntu 20.04 LTS 8:6.9.10.23+dfsg-2.1ubuntu11.9
- imagemagick Ubuntu Pro 22.04 LTS 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1
ubuntu advisories UBUNTU-CVE-2021-39212
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- imagemagick Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 7.1.0.10-r0
- imagemagick6 Alpine 3.16, Alpine 3.15 6.9.12.31-r0
alpine advisories ALPINE-CVE-2021-39212
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- imagemagick Arch Linux 7.1.0.7-1
arch linux advisories AVG-2378
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-39212 updated cvss 4.4
ImageMagick: possible read or write in postscript files
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perl Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: workaround, no fix planned “Users are advised to use the coder policy instead of the module policy as a workaround.”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.35% chance of exploitation in the next 30 days, higher than 29% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 3.6 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVD | 2.0 | 3.6 | AV:L/AC:L/Au:N/C:P/I:P/A:N |
| OSV | 3.1 | 3.6 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | ImageMagick_jll | >=6.9.12+0, <6.9.12+1 |
6.9.12+1 |
Affected products
- ImageMagick ImageMagick
Classification
References
-
github.com
/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68
patch, third-party-advisory, web
-
github.com
/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e
patch, third-party-advisory, web
-
github.com
/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr
third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2023/05/msg00020.html
mailing-list, web
Sources
- CVE List CVE-2021-39212
- NVD CVE-2021-39212
- OSV JLSEC-2026-890
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.