Bug 1851910 (CVE-2020-19667)

Summary: CVE-2020-19667 ImageMagick: Stack buffer overflow in XPM coder could result in a crash
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: fedora, jhorak, mike, pahan
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ImageMagick 6.9.11-7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 1853993    
Bug Blocks: 1850038    

Description Michael Kaplan 2020-06-29 12:05:51 UTC
In ImageMagick 7.0.10-7, there is an stack-buffer-overflow at /coders/xpm.c:232 in ReadXPMImage

References:

https://github.com/ImageMagick/ImageMagick/issues/1895
https://imagemagick.org/script/changelog.php

PoC:

https://raw.githubusercontent.com/minghangshen/bug_poc/master/poc2/stack-buffer-over1

Comment 2 Huzaifa S. Sidhpurwala 2020-07-06 04:57:13 UTC
While there is a request for CVE assignment https://github.com/ImageMagick/ImageMagick/issues/1895#issuecomment-618110351 seems like no public assignment has been made yet or the assignment has not been updated on the MITRE site.