Vulnerability Details : CVE-2021-3962
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.
Vulnerability category: Memory Corruption
Products affected by CVE-2021-3962
- cpe:2.3:a:imagemagick:imagemagick:7.1.0-14:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-3962
0.09%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 38 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-3962
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P |
8.6
|
6.4
|
NIST | |
7.8
|
HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST |
CWE ids for CVE-2021-3962
-
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.Assigned by:
- nvd@nist.gov (Secondary)
- secalert@redhat.com (Primary)
References for CVE-2021-3962
-
https://github.com/ImageMagick/ImageMagick/issues/4446
heap-use-after-free in magick at dcm.c RelinquishDCMMemory · Issue #4446 · ImageMagick/ImageMagick · GitHubThird Party Advisory
-
https://github.com/ImageMagick/ImageMagick/commit/82775af03bbb10a0a1d0e15c0156c75673b4525e
Moved the free to the correct position to fix #4446. · ImageMagick/ImageMagick@82775af · GitHubPatch;Third Party Advisory
-
https://bugzilla.redhat.com/show_bug.cgi?id=2023196
2023196 – (CVE-2021-3962) CVE-2021-3962 ImageMagick: heap-use-after-free in at dcm.c RelinquishDCMMemoryIssue Tracking;Patch;Third Party Advisory
Jump to