OS Command Injection Affecting ruby-mini-magick package, versions <4.8.0-2ubuntu0.1~esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
7.64% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-RUBYMINIMAGICK-559553
  • published24 Jul 2019
  • disclosed12 Jul 2019

Introduced: 12 Jul 2019

CVE-2019-13574  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 ruby-mini-magick to version 4.8.0-2ubuntu0.1~esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-mini-magick package and not the ruby-mini-magick package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.