Bug 1970569 (CVE-2021-3596) - CVE-2021-3596 ImageMagick: NULL pointer dereference in ReadSVGImage() in coders/svg.c
Summary: CVE-2021-3596 ImageMagick: NULL pointer dereference in ReadSVGImage() in code...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2021-3596
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1970570 1970571
Blocks: 1969602 1970572
TreeView+ depends on / blocked
 
Reported: 2021-06-10 17:44 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-02-15 19:24 UTC (History)
4 users (show)

Fixed In Version: ImageMagick 7.0.10-31
Doc Type: If docs needed, set a value
Doc Text:
A NULL pointer dereference flaw was found in ImageMagick 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.
Clone Of:
Environment:
Last Closed: 2021-06-11 15:04:03 UTC


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-06-10 17:44:45 UTC
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

Comment 1 Guilherme de Almeida Suckevicz 2021-06-10 17:45:12 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1970570]

Comment 4 Product Security DevOps Team 2021-06-11 15:04:03 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3596


Note You need to log in before you can comment on or make changes to this bug.