Vulnerability · Published Sep 13, 2021 · Assigned by GitHub_M

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

Medium 4.4

In plain English

A medium-severity security flaw in ImageMagick from ImageMagick. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.4%top 70.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20imagemagick7.1.0.10-r0ALPINE-CVE-2021-39212
Alpine:v3.21imagemagick7.1.0.10-r0ALPINE-CVE-2021-39212
Alpine:v3.22imagemagick7.1.0.10-r0ALPINE-CVE-2021-39212
Alpine:v3.23imagemagick7.1.0.10-r0ALPINE-CVE-2021-39212
Alpine:v3.24imagemagick7.1.0.10-r0ALPINE-CVE-2021-39212
Debian:12imagemagick8:6.9.11.60+dfsg-1.5DEBIAN-CVE-2021-39212
Debian:13imagemagick8:6.9.11.60+dfsg-1.5DEBIAN-CVE-2021-39212
Debian:14imagemagick8:6.9.11.60+dfsg-1.5DEBIAN-CVE-2021-39212

Affected products (as reported)

VendorProductVersions
ImageMagick ImageMagick >= 7.0.0, < 7.1.0-7< 6.9.12-22

Weakness: CWE-668 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

References