CVE-2021-3596: Null Pointer Dereference

Published Jun 10, 2021
·
Updated

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.

Other sources

A NULL pointer dereference was found in ImageMagick in ReadSVGImage() in coders/svg.c because it does not check the return value from libxml2's xmlCreatePushParserCtxt() and use the value directly which can lead to crash and segmentation fault. This flaw affects ImageMagick versions prior to 7.0.10.31.

Reference: https://github.com/ImageMagick/ImageMagick/issues/2624

Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/43dfb1894761c4929d5d5c98dc80ba4e59a0d114

— Red Hat

Affected Software

16 affected componentsFixes available
redhat/imagemagick 7.0.10<31
31
ImageMagick ImageMagick<7.0.10-31
redhat Enterprise Linux=5.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
Fedoraproject Fedora=34
Debian Debian Linux=9.0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0
alpine/imagemagick<7.0.10.31-r0
7.0.10.31-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ImageMagick 7.0.10 to a version that resolves this vulnerability.

    Fixed in 31
  2. Upgrade

    Upgrade alpine/imagemagick to a version that resolves this vulnerability.

    Fixed in 7.0.10.31-r0
  3. Upgrade

    Upgrade ImageMagick to a version that resolves this vulnerability.

    Fixed in 7.0.10-31

Event History

Feb 24, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2021-3596?

CVE-2021-3596 is a vulnerability in ImageMagick that allows for a NULL pointer dereference, leading to a crash and segmentation fault.

2

Which versions of ImageMagick are affected by CVE-2021-3596?

Versions prior to 7.0.10-31 of ImageMagick are affected by CVE-2021-3596.

3

What is the severity of CVE-2021-3596?

CVE-2021-3596 has a severity rating of 6.5, which is considered medium severity.

4

How can I fix CVE-2021-3596 in ImageMagick?

To fix CVE-2021-3596, you should update ImageMagick to version 7.0.10-31 or later.

5

Where can I find more information about CVE-2021-3596?

You can find more information about CVE-2021-3596 in the following references: [Bugzilla Red Hat](https://bugzilla.redhat.com/show_bug.cgi?id=1970569), [GitHub ImageMagick Issues](https://github.com/ImageMagick/ImageMagick/issues/2624), and [Debian LTS Announce](https://lists.debian.org/debian-lts-announce/2022/05/msg00018.html).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203