Bug 1774202 (CVE-2019-13574) - CVE-2019-13574 rubygem-mini_magick: fetching remote image filename leds to remote command execution
Summary: CVE-2019-13574 rubygem-mini_magick: fetching remote image filename leds to re...
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2019-13574
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1774205
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-19 19:21 UTC by msiddiqu
Modified: 2020-05-06 13:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-20 00:51:16 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.