Bug 1774202 (CVE-2019-13574)

Summary: CVE-2019-13574 rubygem-mini_magick: fetching remote image filename leds to remote command execution
Product: [Other] Security Response Reporter: msiddiqu
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: pvalena
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-11-20 00:51:16 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: 1774205    
Bug Blocks:    

Description msiddiqu 2019-11-19 19:21:16 UTC
In lib/mini_magick/image.rb in MiniMagick before 4.9.4, a fetched remote image filename could cause remote command execution because Image.open input is directly passed to Kernel#open, which accepts a '|' character followed by a command.

Upstream commit: 

https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851

References:  

https://github.com/minimagick/minimagick/releases/tag/v4.9.4
https://github.com/minimagick/minimagick/compare/d484786...293f9bb
https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/
https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
https://seclists.org/bugtraq/2019/Jul/20
https://www.debian.org/security/2019/dsa-4481

Comment 1 msiddiqu 2019-11-19 19:24:46 UTC
Created rubygem-mini_magick tracking bugs for this issue:

Affects: fedora-all [bug 1774205]

Comment 2 Product Security DevOps Team 2019-11-20 00:51:16 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.