SecurityContext

CVE-2021-39212: ImageMagick - Misconfiguration

  • Cve: CVE-2021-39212
  • Name: ImageMagick - Misconfiguration
  • 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}" />.
  • Impact: Attackers can read and write Postscript files, potentially leading to arbitrary code execution or data tampering.
  • Remediation: Update to version 7.1.0-7 or 6.9.12-22, or apply recommended policy configuration: <policy domain="coder" rights="none" pattern="{PS,EPI,EPS,EPSF,EPSI}" />.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: file_system_read, file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: low
  • Cvss score: 3.6
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00353
  • Epss percentile: 0.29311
  • Assignee: [email protected]
  • Published at: 2021-09-13T18:15:23Z
  • Age in days: 1898
  • Modified at: 2026-06-17T04:03:19Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-39212
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-668Exposure of Resource to Wrong Sphere
CWE-362Concurrent Execution using Shared Resource with Improper Synchronization

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68Patch, Third Party Advisory
https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4ePatch, Third Party Advisory
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qrThird Party Advisory
https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html

Products

ProductAffectedPlatform boundSourcesUrl
imagemagick:imagemagick>= 6.9.12-0, < 6.9.12-22; >= 7.1.0-0, < 7.1.0-7nonvd/v1/products/imagemagick/imagemagick

Projects

RepositoryLink kindsIndexedUrl
ImageMagick/ImageMagickcommit, fix, security_advisoryyes/v1/repositories/ImageMagick/ImageMagick

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts