Skip to content
OpenAdvisories
Medium · 4.4 CVE-2021-39212 EUVD-2021-25590

Issue when Configuring the ImageMagick Security Policy

Published Sep 13, 2021 · Updated Aug 4, 2024 · 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}" />.

Affected products

VendorProductAffectedFixed
ImageMagick ImageMagick >= 7.0.0, < 7.1.0-7, < 6.9.12-22 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 imagemagick 8:6.9.11.60+dfsg-1.5 —
Debian 13 imagemagick 8:6.9.11.60+dfsg-1.5 —
Debian 12 imagemagick 8:6.9.11.60+dfsg-1.5 —
Debian 10 imagemagick 8:6.9.10.23+dfsg-2.1+deb10u5 DLA-3429-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS imagemagick 8:6.9.10.23+dfsg-2.1ubuntu11.9 USN-6200-1
Ubuntu 18.04 LTS imagemagick 8:6.9.7.4+dfsg-16ubuntu6.14 USN-5736-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS imagemagick 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 USN-6200-1, USN-5736-2
Ubuntu Pro 20.04 LTS imagemagick 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 USN-5736-2
Ubuntu Pro 18.04 LTS imagemagick 8:6.9.7.4+dfsg-16ubuntu6.15+esm1 USN-6200-1
Ubuntu Pro 16.04 LTS imagemagick 8:6.8.9.9-7ubuntu5.16+esm5 USN-6200-1, USN-5736-1
Ubuntu Pro 14.04 LTS imagemagick 8:6.7.7.10-6ubuntu3.13+esm3 USN-5736-1
ReleasePackageFixed inAdvisory
Alpine v3.24 imagemagick 7.1.0.10-r0 —
Alpine v3.23 imagemagick 7.1.0.10-r0 —
Alpine v3.22 imagemagick 7.1.0.10-r0 —
Alpine v3.21 imagemagick 7.1.0.10-r0 —
Alpine v3.20 imagemagick 7.1.0.10-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 imagemagick 7.1.0.10-r0 —
Alpine v3.18 imagemagick 7.1.0.10-r0 —
Alpine v3.17 imagemagick 7.1.0.10-r0 —
Alpine v3.16 imagemagick 7.1.0.10-r0 —
Alpine v3.16 imagemagick6 6.9.12.31-r0 —
Alpine v3.15 imagemagick 7.1.0.10-r0 —
Alpine v3.15 imagemagick6 6.9.12.31-r0 —

Advisories 7

References