Bug 1692300 (CVE-2019-9956) - CVE-2019-9956 imagemagick: stack-based buffer overflow in function PopHexPixel in coders/ps.c
Summary: CVE-2019-9956 imagemagick: stack-based buffer overflow in function PopHexPixe...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-9956
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1692301 1698554
Blocks: 1692302
TreeView+ depends on / blocked
 
Reported: 2019-03-25 10:01 UTC by Dhananjay Arunesh
Modified: 2021-02-16 22:13 UTC (History)
6 users (show)

Fixed In Version: ImageMagick 7.0.8-35, ImageMagick 6.9.10-35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 22:33:48 UTC
Embargoed:


Attachments (Terms of Use)
Upstream patch (1.10 KB, patch)
2019-04-10 14:53 UTC, Marco Benatto
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:1180 0 None None None 2020-03-31 19:32:10 UTC

Description Dhananjay Arunesh 2019-03-25 10:01:34 UTC
In ImageMagick 7.0.8-35 Q16, there is a stack-based buffer overflow in the function PopHexPixel of coders/ps.c, which allows an attacker to cause a denial of service or code execution via a crafted image file.

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

Comment 1 Dhananjay Arunesh 2019-03-25 10:01:57 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1692301]

Comment 5 Marco Benatto 2019-04-10 14:49:43 UTC
Statement:

This issue affects the versions of ImageMagick as shipped with Red Hat Enterprise Linux 6 and 7.

Red Hat Enterprise Linux 6 is now in Maintenance Support 2 Phase of the support and maintenance life cycle. This has been rated as having a
security impact of Moderate, and is not currently planned to be addressed in future updates. For additional information, refer to the
Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Comment 6 Marco Benatto 2019-04-10 14:53:05 UTC
Created attachment 1554265 [details]
Upstream patch

Comment 9 Marco Benatto 2019-04-10 15:54:42 UTC
The WritePSImage() function fails to properly enforce the boundaries of a stack-based buffer when converting an image into a PostScript file. A malicious attacker could create a specially crafted image, which, when converted, could lead to a stack-based buffer overflow and, possibly, execution of arbitrary code. Successful exploitation requires that RLE compression is used.

Comment 11 errata-xmlrpc 2020-03-31 19:32:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:1180 https://access.redhat.com/errata/RHSA-2020:1180

Comment 12 Product Security DevOps Team 2020-03-31 22:33:48 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-2019-9956


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