#VU62889 Exposure of Resource to Wrong Sphere in ImageMagick - CVE-2021-39212


Vulnerability identifier: #VU62889

Vulnerability risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2021-39212

CWE-ID: N/A

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
ImageMagick
Client/Desktop applications / Multimedia software

Vendor: ImageMagick.org

Description
The vulnerability allows a remote attacker to bypass security restrictions.

The vulnerability exists due to improper implementation of security restrictions in the “policy” module when parsing PostScript files. A remote attacker can pass specially crafted PostScript file with customized policy.xml and bypass implemented security restrictions.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

ImageMagick: 6.9.0-0 - 6.9.0-10, 6.9.1-0 - 6.9.12-21, 6.9.2-0 - 6.9.2-10, 6.9.3-0 - 6.9.3-10, 6.9.4-0 - 6.9.4-10, 6.9.5-0 - 6.9.5-10, 6.9.6-0 - 6.9.6-8, 6.9.7 - 6.9.7-10, 6.9.8-0 - 6.9.8-10, 6.9.9-0 - 6.9.9-51, 7.1.0-0 - 7.1.0-6


External links
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qvhr-jj4p-j2qr
https://github.com/ImageMagick/ImageMagick/commit/01faddbe2711a4156180c4a92837e2f23683cc68
https://github.com/ImageMagick/ImageMagick/commit/35893e7cad78ce461fcaffa56076c11700ba5e4e


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability