CVE-2021-3962: ImageMagick - Use After Free
- Cve: CVE-2021-3962
- Name: ImageMagick - Use After Free
- Description: A flaw was found in ImageMagick where it did not properly sanitize certain input before using it to invoke convert processes. This flaw allows an attacker to create a specially crafted image that leads to a use-after-free vulnerability when processed by ImageMagick. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
- Impact: Attackers can cause crashes, execute arbitrary code, or compromise system integrity and confidentiality when processing malicious images.
- Remediation: Update to the latest version of ImageMagick that addresses this vulnerability.
- Vulnerability type: use_after_free
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.06028
- Epss percentile: 0.93456
- Assignee: [email protected]
- Published at: 2021-11-19T17:15:08Z
- Age in days: 1831
- Modified at: 2026-06-17T04:06:17Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-3962
- 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
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=2023196 | Issue Tracking, Patch, Third Party Advisory |
| https://github.com/ImageMagick/ImageMagick/commit/82775af03bbb10a0a1d0e15c0156c75673b4525e | Patch, Third Party Advisory |
| https://github.com/ImageMagick/ImageMagick/issues/4446 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| imagemagick:imagemagick | = 7.1.0-14 | no | nvd | /v1/products/imagemagick/imagemagick |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ImageMagick/ImageMagick | commit, fix, issues | yes | /v1/repositories/ImageMagick/ImageMagick |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts