{"schemaVersion":3,"id":"CVE-2021-3596","aliases":["UBUNTU-CVE-2021-3596","DEBIAN-CVE-2021-3596","CGA-39wh-2m2j-9rcp","CGA-fg72-cvrm-2g9h"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-02-24T00:00:00.000Z","modified":"2024-08-03T17:01:07.986Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01894,"percentile":0.79322,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01894},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01894,"percentile":0.79322}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01894,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01894,"percentile":0.79322}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_IMAGEMAGICK_IMAGEMAGICK","name":"Imagemagick","source":"github","url":"https://github.com/ImageMagick/ImageMagick/commit/5511ef530576ed18fd636baa3bb4eda3d667665d","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-476","name":"NULL Pointer Dereference","description":"The product dereferences a pointer that it expects to be valid but is NULL.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/476.html"}],"affected":[{"vendor":"chainguard","product":"imagemagick-6","name":"imagemagick-6","label":"imagemagick-6","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/imagemagick-6","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/imagemagick","purlType":"deb","versions":[{"text":"< 8:6.9.11.57+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8:6.9.11.57+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/imagemagick","purlType":"deb","versions":[{"text":"< 8:6.9.11.60+dfsg-1.3build1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8:6.9.11.60+dfsg-1.3build1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0","eol":{"isEol":true,"eolDate":"2022-07-01T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"9","label":"9 (Stretch)","eolFrom":"2022-07-01T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"9.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"34","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"imagemagick","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 7.0.10-31","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.0.10-31","eol":null,"hubHref":"/vendor/imagemagick/imagemagick"},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"5.0","noFixRecorded":false,"fixedIn":null},{"text":"6.0","noFixRecorded":false,"fixedIn":null},{"text":"7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"5.0 | 6.0 | 7.0","eol":{"isEol":true,"eolDate":"2017-03-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"5","label":"5 (ELS)","eolFrom":"2017-03-31T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"5.11"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"}],"affectedCount":7,"eol":{"hasEol":true,"count":3},"references":[{"url":"https://github.com/ImageMagick/ImageMagick/issues/2624","label":"github.com/ImageMagick/ImageMagick/issues/2624","hostname":"github.com","tags":["REPORT","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1970569","label":"bugzilla.redhat.com/show_bug.cgi?id=1970569","hostname":"bugzilla.redhat.com","tags":["REPORT","Issue Tracking","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00018.html","label":"lists.debian.org/debian-lts-announce/2022/05/msg00018.html","hostname":"lists.debian.org","tags":["Mailing List","Advisory","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html","label":"lists.debian.org/debian-lts-announce/2023/03/msg00008.html","hostname":"lists.debian.org","tags":["Mailing List","WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-3596","label":"ubuntu.com/security/CVE-2021-3596","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3596","label":"www.cve.org/CVERecord?id=CVE-2021-3596","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3596","label":"security-tracker.debian.org/tracker/CVE-2021-3596","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3007-1","DLA-3357-1"],"duplicates":[],"related":["CGA-XHHG-F9C3-7WQ9"]},"timeline":[{"kind":"published","date":"2022-02-24T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T17:01:07.986Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:56:27.026Z","stale":false,"partial":false}}