4.4medium
Issue when Configuring the ImageMagick Security Policy
- Severity
- 4.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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
| Product or package | Versions | Reported by |
|---|---|---|
| ImageMagick ImageMagick | >= 7.0.0, < 7.1.0-7, < 6.9.12-22, from 6.9.12-0 before 6.9.12-22, from 7.1.0-0 before 7.1.0-7 | CVE List, NVD |
All scores
| GitHub_M | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVD | 3.6low CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVD | 3.6low CVSS:2.0 | AV:L/AC:L/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
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}" />.
NVD (es)
ImageMagick es un software libre que se entrega como una distribución binaria lista para ser ejecutada o como un código fuente que se puede usar, copiar, modificar y distribuir tanto en aplicaciones abiertas como propietarias. En las versiones afectadas y en determinados casos, los archivos Postscript podían leerse y escribirse cuando se excluían específicamente mediante una política de "module" en "policy.xml". ex. (policy domain="module" rights="none" pattern="PS" /). El problema ha sido resuelto en ImageMagick versiones 7.1.0-7 y en 6.9.12-22. Afortunadamente, en la naturaleza, pocos usuarios usan la política "module" y en su lugar usan la política "coder" que es también nuestra recomendación de solución: (policy domain="coder" rights="none" pattern="{PS,EPI,EPS,EPSF,EPSI}" /)
References
| https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr | third-party-advisory | |
| https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68 | patch, third-party-advisory | |
| https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e | patch, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html | mailing-list | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-39212 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-39212 changed 2026-06-17 | Public domain |