{"api_version":"1","generated_at":"2026-05-13T01:29:23+00:00","cve":"CVE-2021-39212","urls":{"html":"https://cve.report/CVE-2021-39212","api":"https://cve.report/api/cve/CVE-2021-39212.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-39212","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-39212"},"summary":{"title":"CVE-2021-39212","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}\" />.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-09-13 18:15:00","updated_at":"2023-05-22 02:15:00"},"problem_types":["CWE-668"],"metrics":[],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e","name":"https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e","refsource":"MISC","tags":[],"title":"Added missing policy checks in RegisterStaticModules. · ImageMagick/ImageMagick@35893e7 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68","name":"https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68","refsource":"MISC","tags":[],"title":"Use the correct rights. · ImageMagick/ImageMagick@01faddb · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html","name":"[debian-lts-announce] 20230521 [SECURITY] [DLA 3429-1] imagemagick security update","refsource":"MLIST","tags":[],"title":"[SECURITY] [DLA 3429-1] imagemagick security update","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr","name":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr","refsource":"CONFIRM","tags":[],"title":"Possible Security Issue when Configuring the ImageMagick Security Policy · Advisory · ImageMagick/ImageMagick · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-39212","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39212","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"39212","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"imagemagick","cpe5":"imagemagick","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-39212","qid":"181795","title":"Debian Security Update for imagemagick (DLA 3429-1)"},{"cve":"CVE-2021-39212","qid":"182177","title":"Debian Security Update for imagemagick (CVE-2021-39212)"},{"cve":"CVE-2021-39212","qid":"199045","title":"Ubuntu Security Notification for ImageMagick Vulnerabilities (USN-5736-1)"},{"cve":"CVE-2021-39212","qid":"199524","title":"Ubuntu Security Notification for ImageMagick Vulnerabilities (USN-6200-1)"},{"cve":"CVE-2021-39212","qid":"296061","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 42.113.1 Missing (CPUJAN2022)"},{"cve":"CVE-2021-39212","qid":"502102","title":"Alpine Linux Security Update for imagemagick"},{"cve":"CVE-2021-39212","qid":"502103","title":"Alpine Linux Security Update for imagemagick6"},{"cve":"CVE-2021-39212","qid":"502307","title":"Alpine Linux Security Update for imagemagick6"},{"cve":"CVE-2021-39212","qid":"671357","title":"EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1270)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-39212","STATE":"PUBLIC","TITLE":"Issue when Configuring the ImageMagick Security Policy"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"ImageMagick","version":{"version_data":[{"version_value":">= 7.0.0, < 7.1.0-7"},{"version_value":"< 6.9.12-22"}]}}]},"vendor_name":"ImageMagick"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-668: Exposure of Resource to Wrong Sphere"}]}]},"references":{"reference_data":[{"name":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr","refsource":"CONFIRM","url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr"},{"name":"https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68","refsource":"MISC","url":"https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68"},{"name":"https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e","refsource":"MISC","url":"https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e"},{"refsource":"MLIST","name":"[debian-lts-announce] 20230521 [SECURITY] [DLA 3429-1] imagemagick security update","url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html"}]},"source":{"advisory":"GHSA-qvhr-jj4p-j2qr","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-09-13 18:15:00","lastModifiedDate":"2023-05-22 02:15:00","problem_types":["CWE-668"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":3.6,"baseSeverity":"LOW"},"exploitabilityScore":1,"impactScore":2.5},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:P/A:N","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":3.6},"severity":"LOW","exploitabilityScore":3.9,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1.0-0","versionEndExcluding":"7.1.0-7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9.12-0","versionEndExcluding":"6.9.12-22","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"39212","Ordinal":"214857","Title":"CVE-2021-39212","CVE":"CVE-2021-39212","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"39212","Ordinal":"1","NoteData":"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}\" />.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"39212","Ordinal":"2","NoteData":"2021-09-13","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"39212","Ordinal":"3","NoteData":"2021-09-13","Type":"Other","Title":"Modified"}]}}}