CVE-2021-3596
A NULL pointer dereference flaw was found in ImageMagick in versions prior to 7.0.10-31 in...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2021-3596- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-476
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2021-3596- Weakness
- CWE-476
- Updated
- 2026-11-02
EUVDEUVD-2021-26903 No score
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.
- Record
EUVD-2021-26903- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8jv5-qv7g-fm4r
6.5
A NULL pointer dereference flaw was found in ImageMagick in versions prior to 7.0.10-31 in...
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.
- Record
GHSA-8jv5-qv7g-fm4r- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-3596
6.5
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.
- Record
ALPINE-CVE-2021-3596- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
6.5
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.
- Record
CVE-2021-3596- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2021-3596
6.5
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.
- Record
DEBIAN-CVE-2021-3596- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-889
6.5
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.
- Record
JLSEC-2026-889- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
OSVOESA-2022-1579
6.5
ImageMagick security update
Use ImageMagick to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Security Fix(es):
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}" />.(CVE-2021-39212)
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.(CVE-2021-3596)
- Record
OESA-2022-1579- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2022-2091
6.5
ImageMagick security update
Use ImageMagick to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Security Fix(es):
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}" />.(CVE-2021-39212)
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.(CVE-2021-3596)
- Record
OESA-2022-2091- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-3596
6.5
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.
- Record
UBUNTU-CVE-2021-3596- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
imagemagickAlpine:v3.16 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickAlpine:v3.17 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickAlpine:v3.18 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickAlpine:v3.19 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickAlpine:v3.20 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickAlpine:v3.21 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickAlpine:v3.22 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickAlpine:v3.23 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickAlpine:v3.24 |
before 7.0.10.31-r0 | 7.0.10.31-r0 |
imagemagickDebian:12 |
before 8:6.9.11.57+dfsg-1 | 8:6.9.11.57+dfsg-1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
imagemagickDebian:13 |
before 8:6.9.11.57+dfsg-1 | 8:6.9.11.57+dfsg-1 |
imagemagickDebian:14 |
before 8:6.9.11.57+dfsg-1 | 8:6.9.11.57+dfsg-1 |
imagemagickDebian:9 From an advisory covering 2 CVEs |
before 8:6.9.7.4+dfsg-11+deb9u14, plus listed versions 8:6.9.7.4+dfsg-118:6.9.7.4+dfsg-11+deb9u18:6.9.7.4+dfsg-11+deb9u108:6.9.7.4+dfsg-11+deb9u118:6.9.7.4+dfsg-11+deb9u12 Show 9 moreShow less8:6.9.7.4+dfsg-11+deb9u138:6.9.7.4+dfsg-11+deb9u28:6.9.7.4+dfsg-11+deb9u38:6.9.7.4+dfsg-11+deb9u48:6.9.7.4+dfsg-11+deb9u58:6.9.7.4+dfsg-11+deb9u68:6.9.7.4+dfsg-11+deb9u78:6.9.7.4+dfsg-11+deb9u88:6.9.7.4+dfsg-11+deb9u9 |
8:6.9.7.4+dfsg-11+deb9u14 |
imagemagickDebian:10 From an advisory covering 37 CVEs |
before 8:6.9.10.23+dfsg-2.1+deb10u2, plus listed versions 8:6.9.10.23+dfsg-2.18:6.9.10.23+dfsg-2.1+deb10u1 |
8:6.9.10.23+dfsg-2.1+deb10u2 |
ImageMagick_jllJulia |
before 7.1.0+0 | 7.1.0+0 |
ImageMagickopenEuler:20.03-LTS-SP1 From an advisory covering 2 CVEs |
before 6.9.12.42-1.oe1 | 6.9.12.42-1.oe1 |
ImageMagickopenEuler:20.03-LTS-SP2 From an advisory covering 2 CVEs |
before 6.9.12.42-1.oe1 | 6.9.12.42-1.oe1 |
ImageMagickopenEuler:20.03-LTS-SP3 From an advisory covering 2 CVEs |
before 6.9.12.42-1.oe1 | 6.9.12.42-1.oe1 |
ImageMagickopenEuler:22.03-LTS From an advisory covering 2 CVEs |
before 7.1.0.28-4.oe2203 | 7.1.0.28-4.oe2203 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-3596 is a medium vulnerability (CVSS 6.5) in Imagemagick, published February 24, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.89%, the 79th percentile. Fixed in imagemagick 7.0.10.31-r0.
References
github.com/ImageMagick/ImageMagick/issues/2624
bugzilla.redhat.com/show_bug.cgi?id=1970569
lists.debian.org/debian-lts-announce/2022/05/msg00018.html
lists.debian.org/debian-lts-announce/2023/03/msg00008.html
nvd.nist.gov/vuln/detail/CVE-2021-3596
github.com/advisories/GHSA-8jv5-qv7g-fm4r
Show 7 moreShow less
security.alpinelinux.org/vuln/CVE-2021-3596
security-tracker.debian.org/tracker/CVE-2021-3596
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1579
nvd.nist.gov/vuln/detail/CVE-2021-39212
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-2091
ubuntu.com/security/CVE-2021-3596
cve.org/CVERecord?id=CVE-2021-3596