Bug 1486804 (CVE-2017-13145)

Summary: CVE-2017-13145 ImageMagick: Improper input validation in ReadJP2Image function in coders/jp2.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abhgupta, dan, fedora, jhorak, klember, mike, pahan, tiwillia
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:23:07 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: 1486807    
Bug Blocks:    

Description Pedro Sampaio 2017-08-30 14:56:22 UTC
In ImageMagick before 6.9.8-8 and 7.x before 7.0.5-9, the ReadJP2Image
function in coders/jp2.c does not properly validate the channel
geometry, leading to a crash.

Upstream bug:

https://github.com/ImageMagick/ImageMagick/issues/501

Upstream patch:

https://github.com/ImageMagick/ImageMagick/commit/b0c5222ce31e8f941fa02ff9c7a040fb2db30dbc
https://github.com/jsonn/pkgsrc/commit/da7e0698d368b931ea6c9af486467e4aa305f31a

Comment 1 Pedro Sampaio 2017-08-30 15:00:55 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1486807]

Comment 2 Michael Cronenworth 2017-08-30 16:59:38 UTC
Please fix your scripts.

ImageMagick 6.9.9-9 is in Fedora 25 and Fedora 26 updates-testing.

ImageMagick 7.0.6-9 is in Fedora 27 and Fedora Rawhide.