CVE-2021-39212
JSON

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 packageVersionsReported 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-7CVE List, NVD

All scores

GitHub_M4.4medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
NVD3.6low CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
NVD3.6low CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-39212 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-39212 changed 2026-06-17Public domain