Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2019-13574 EUVD-2019-0603GHSA-r7j3-vvh2-xrpj

OS Command Injection in MiniMagick

Published Jul 12, 2019 · Updated Aug 4, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-mini-magick 4.9.2-1.1 —
Debian 13 ruby-mini-magick 4.9.2-1.1 —
Debian 12 ruby-mini-magick 4.9.2-1.1 —
Debian 10 ruby-mini-magick 4.9.2-1+deb10u1 DSA-4481-1
Debian 9 ruby-mini-magick 4.5.1-1+deb9u1 DSA-4481-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 8 ruby-mini-magick 3.8.1-1+deb8u1 DLA-1948-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS ruby-mini-magick No fix yet —
Ubuntu 16.04 LTS ruby-mini-magick No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems mini_magick < 4.9.4 4.9.4 GHSA-r7j3-vvh2-xrpj

Advisories 2

References