CVE-2021-39212: imagemagick Exposure of Resource to Wrong Sphere
Vulnerability summary
CVE-2021-39212 is a medium (CVSS 4.4) Exposure of Resource to Wrong Sphere vulnerability in imagemagick. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 27.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 3Timeline
- 13-09-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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}" />.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:NDiffers
- OSV · DebianEcosystem advisory · calculated3.6LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:NDiffers
- NVDNIST3.6LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.35%
Chance of exploitation in the next 30 days
Percentile
27%
Versus all other CVEs
30-day change
0.00 pp
From 0.35% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-668Exposure of Resource to Wrong SphereThe product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
- CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')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.
Affected systems
Debian1 product
- imagemagick< 8:6.9.11.60+dfsg-1.5
Imagemagick1 product
- imagemagick≥ 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
Ubuntu1 product
- imagemagick< 8:6.9.10.23+dfsg-2.1ubuntu11.9 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1
3 vendors · 3 products
References
10 links- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qrREPORTThird Party Advisory
- github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68PatchThird Party Advisory
- github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4ePatchThird Party Advisory