Every CVE Search/ Get API key

CVE-2019-13574

OS Command Injection in MiniMagick

7.8 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

7.64%Down 6.7 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 7.8

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.

Record
CVE-2019-13574
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-78
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2019-13574
Updated
2026-11-02
EUVDEUVD-2019-0603 No score

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.

Record
EUVD-2019-0603
Updated
2026-11-03
GitHub AdvisoriesGHSA-r7j3-vvh2-xrpj 7.8

OS Command Injection in MiniMagick

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.

Record
GHSA-r7j3-vvh2-xrpj
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-78
Updated
2026-11-02
OSV 7.8

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.

Record
CVE-2019-13574
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-13574 7.8

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.

Record
DEBIAN-CVE-2019-13574
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-r7j3-vvh2-xrpj 7.8

OS Command Injection in MiniMagick

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.

Record
GHSA-r7j3-vvh2-xrpj
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-78
Updated
2026-11-02
OSVOESA-2021-1150 7.8

rubygem-mini_magick security update

A ruby wrapper for ImageMagick command line. Using MiniMagick the ruby processes memory remains small (it spawns ImageMagick's command line program mogrify which takes up some memory as well, but is much smaller compared to RMagick).

Security Fix(es):

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.(CVE-2019-13574)

Record
OESA-2021-1150
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2019-13574 7.8

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.

Record
UBUNTU-CVE-2019-13574
CVSS 3.0
7.8 HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mini_magick
RubyGems
before 4.9.4
4.9.4
ruby-mini-magick
Debian:12
before 4.9.2-1.1
4.9.2-1.1
ruby-mini-magick
Debian:13
before 4.9.2-1.1
4.9.2-1.1
ruby-mini-magick
Debian:14
before 4.9.2-1.1
4.9.2-1.1
ruby-mini-magick
Debian:8
before 3.8.1-1+deb8u1, plus listed versions
3.8.1-1
3.8.1-1+deb8u1
ruby-mini-magick
Debian:9
before 4.5.1-1+deb9u1, plus listed versions
4.5.1-1
4.5.1-1+deb9u1
ruby-mini-magick
Debian:10
before 4.9.2-1+deb10u1, plus listed versions
4.9.2-1
4.9.2-1+deb10u1
mini_magick
RubyGems
before 4.9.4, plus listed versions
1.0.11.1.01.2.01.2.11.2.2
Show 45 moreShow less
1.2.31.2.51.3.01.3.11.3.21.3.32.0.02.0.12.0.22.12.33.03.13.23.2.13.33.43.5.03.6.03.7.03.8.03.8.14.0.04.0.0.rc4.0.14.0.24.0.34.0.44.1.04.1.14.2.04.2.14.2.104.2.34.2.44.2.54.2.74.2.94.3.14.3.24.3.34.3.44.3.54.3.64.4.0
4.9.4
rubygem-mini_magick
openEuler:20.03-LTS-SP1
before 4.8.0-3.oe1
4.8.0-3.oe1
ruby-mini-magick
Ubuntu:16.04:LTS
All versions, plus listed versions
4.2.3-14.3.3-24.3.6-24.4.0-1
None known
ruby-mini-magick
Ubuntu:18.04:LTS
All versions, plus listed versions
4.7.2-14.8.0-14.8.0-2
None known

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubmasahiro331/CVE-2019-135742019-07-16

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-13574 is a high vulnerability (CVSS 7.8) in Minimagick Project Minimagick, published July 12, 2019. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 7.64%, the 94th percentile. Fixed in mini_magick 4.9.4.

References

Show 9 moreShow less
This page doesn't list everything

Left out here: 12 versions. The JSON record has them.

MoveEnter Open