# CVE-2021-3596: A NULL pointer dereference flaw was found in ImageMagick in versions prior to 7.0.10-31 in ReadSVGImage() in coders/svg.c.

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.89%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-24T00:00:00.000Z
- Modified: 2026-06-17T04:05:24.393Z
- Weaknesses: CWE-476
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- ImageMagick: ImageMagick 7.0.10-31
- imagemagick imagemagick: before 7.0.10-31
- redhat enterprise_linux: 5.0; 6.0; 7.0
- fedoraproject fedora: 34
- debian debian_linux: 9.0

## Every score

- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/ImageMagick/ImageMagick/issues/2624> (exploit, issue-tracking, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1970569> (issue-tracking, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00018.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html> (mailing-list)

## Sources

- CVE List: [CVE-2021-3596](https://www.cve.org/CVERecord?id=CVE-2021-3596), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3596](https://nvd.nist.gov/vuln/detail/CVE-2021-3596), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3596 · Whole record: https://cve.day/CVE-2021-3596.json · Rebuilt by cve.day 2026-11-25T22:58:07.061Z
