{"schemaVersion":3,"id":"CVE-2021-39212","aliases":["UBUNTU-CVE-2021-39212","DEBIAN-CVE-2021-39212"],"status":"published","duplicateOf":null,"title":null,"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}\" />.","dates":{"published":"2021-09-13T00:00:00.000Z","modified":"2024-08-04T01:58:18.274Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":2.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":2.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.6,"severity":"low","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.6,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00353,"percentile":0.27487,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00353},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00353,"percentile":0.27487}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00353,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00353,"percentile":0.27487}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere","description":"The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/668.html"},{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","description":"The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/362.html"}],"affected":[{"vendor":"debian","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/imagemagick","purlType":"deb","versions":[{"text":"< 8:6.9.11.60+dfsg-1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8:6.9.11.60+dfsg-1.5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/imagemagick","purlType":"deb","versions":[{"text":"< 8:6.9.10.23+dfsg-2.1ubuntu11.9","noFixRecorded":false,"fixedIn":null},{"text":"< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8:6.9.10.23+dfsg-2.1ubuntu11.9 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1","eol":null,"hubHref":null},{"vendor":"imagemagick","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.0.0, < 7.1.0-7","noFixRecorded":false,"fixedIn":null},{"text":"< 6.9.12-22","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.9.12-0, < 6.9.12-22","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.1.0-0, < 7.1.0-7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, < 7.1.0-7 | < 6.9.12-22 | ≥ 6.9.12-0, < 6.9.12-22 | ≥ 7.1.0-0, < 7.1.0-7","eol":null,"hubHref":"/vendor/imagemagick/imagemagick"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr","label":"github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr","hostname":"github.com","tags":["REPORT","Third Party Advisory"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68","label":"github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68","hostname":"github.com","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e","label":"github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e","hostname":"github.com","tags":["Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00020.html","label":"lists.debian.org/debian-lts-announce/2023/05/msg00020.html","hostname":"lists.debian.org","tags":["Mailing List"]},{"url":"https://ubuntu.com/security/CVE-2021-39212","label":"ubuntu.com/security/CVE-2021-39212","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5736-1","label":"ubuntu.com/security/notices/USN-5736-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5736-2","label":"ubuntu.com/security/notices/USN-5736-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-6200-1","label":"ubuntu.com/security/notices/USN-6200-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-39212","label":"www.cve.org/CVERecord?id=CVE-2021-39212","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-39212","label":"security-tracker.debian.org/tracker/CVE-2021-39212","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3429-1","USN-5736-1","USN-5736-2","USN-6200-1"],"duplicates":[],"related":["USN-5736-1","USN-5736-2","USN-6200-1"]},"timeline":[{"kind":"published","date":"2021-09-13T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:58:18.274Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T03:41:45.541Z","stale":false,"partial":false}}