Vulnerabilities · 2021 · Imagemagick
CVE-2021-39212
Imagemagick vulnerability
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
Imagemagick. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Imagemagick runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68 · Patch
- github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e · Patch
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr · Third Party Advisory
- lists.debian.org/debian-lts-announce/2023/05/msg00020.html
- nvd.nist.gov/vuln/detail/CVE-2021-39212
- cve.org/CVERecord?id=CVE-2021-39212
More vulnerabilities in Imagemagick products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.