Vulnerability · Published Feb 24, 2022 · Assigned by redhat

CVE-2021-3596

Medium 6.5

In plain English

A medium-severity null pointer dereference in ImageMagick. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.5Medium
Exploit odds (30 days)1.9%top 20.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A NULL pointer dereference flaw was found in ImageMagick in versions prior to 7.0.10-31 in ReadSVGImage() in coders/svg.c. This issue is due to not checking the return value from libxml2's xmlCreatePushParserCtxt() and uses the value directly, which leads to a crash and segmentation fault.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20imagemagick7.0.10.31-r0ALPINE-CVE-2021-3596
Alpine:v3.21imagemagick7.0.10.31-r0ALPINE-CVE-2021-3596
Alpine:v3.22imagemagick7.0.10.31-r0ALPINE-CVE-2021-3596
Alpine:v3.23imagemagick7.0.10.31-r0ALPINE-CVE-2021-3596
Alpine:v3.24imagemagick7.0.10.31-r0ALPINE-CVE-2021-3596
Debian:12imagemagick8:6.9.11.57+dfsg-1DEBIAN-CVE-2021-3596
Debian:13imagemagick8:6.9.11.57+dfsg-1DEBIAN-CVE-2021-3596
Debian:14imagemagick8:6.9.11.57+dfsg-1DEBIAN-CVE-2021-3596
Ubuntu:22.04:LTSimagemagick8:6.9.11.60+dfsg-1.3build1UBUNTU-CVE-2021-3596

Affected products (as reported)

VendorProductVersions
n/a ImageMagick ImageMagick 7.0.10-31

Weakness: CWE-476

References