Bug 1487714 (CVE-2017-13769)

Summary: CVE-2017-13769 ImageMagick: Improper input validation in WriteTHUMBNAILImage function in coders/thumbnail.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dan, fedora, jhorak, klember, mike, pahan, sardella
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:45 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: 1487715    
Bug Blocks:    

Description Pedro Sampaio 2017-09-01 17:25:32 UTC
The WriteTHUMBNAILImage function in coders/thumbnail.c in ImageMagick through 8.0.6-10 allows an attacker to cause a denial of service (buffer over-read) by sending a crafted JPEG file.

WriteTHUMBNAILImage function, where an externally controllable value is being used as an index in the process of generating a thumbnail image can also lead to potential Buffer Overflow.

Upstream bug:

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

Upstream patch:

https://github.com/ImageMagick/ImageMagick/commit/73e085bd8a77541fb9faf0584951783fdeac97f2
https://github.com/ImageMagick/ImageMagick/commit/457e63263de6f732785608504b6e607799ad3dd5
https://github.com/ImageMagick/ImageMagick/commit/abb9d1322317733b799e8b87b2e346b3038f3260

Comment 1 Pedro Sampaio 2017-09-01 17:26:03 UTC
Created ImageMagick tracking bugs for this issue:

Affects: fedora-all [bug 1487715]