Bug 1534380 (CVE-2018-5358)

Summary: CVE-2018-5358 ImageMagick: memory leak in coders/json.c:EncodeImageAttributes could cause crash
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jhorak, mike, pahan
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:37:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1534381    
Bug Blocks:    

Description Sam Fowler 2018-01-15 06:24:17 UTC
ImageMagick 7.0.7-22 Q16 has memory leaks in the EncodeImageAttributes function
in coders/json.c, as demonstrated by the ReadPSDLayersInternal function in
coders/psd.c.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-5358
https://github.com/ImageMagick/ImageMagick/issues/939

Comment 1 Sam Fowler 2018-01-15 06:25:00 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1534381]

Comment 2 Tomas Hoger 2020-03-25 09:05:17 UTC
According to upstream changelog, the support for json coder was added in version 6.8.8-3.