CVE-2019-13574
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.
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
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 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
mini_magickRubyGems |
before 4.9.4 | 4.9.4 |
ruby-mini-magickDebian:12 |
before 4.9.2-1.1 | 4.9.2-1.1 |
ruby-mini-magickDebian:13 |
before 4.9.2-1.1 | 4.9.2-1.1 |
ruby-mini-magickDebian:14 |
before 4.9.2-1.1 | 4.9.2-1.1 |
ruby-mini-magickDebian:8 |
before 3.8.1-1+deb8u1, plus listed versions 3.8.1-1 |
3.8.1-1+deb8u1 |
ruby-mini-magickDebian:9 |
before 4.5.1-1+deb9u1, plus listed versions 4.5.1-1 |
4.5.1-1+deb9u1 |
ruby-mini-magickDebian:10 |
before 4.9.2-1+deb10u1, plus listed versions 4.9.2-1 |
4.9.2-1+deb10u1 |
mini_magickRubyGems |
before 4.9.4, plus listed versions 1.0.11.1.01.2.01.2.11.2.2 Show 45 moreShow less1.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_magickopenEuler:20.03-LTS-SP1 |
before 4.8.0-3.oe1 | 4.8.0-3.oe1 |
ruby-mini-magickUbuntu: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-magickUbuntu: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.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | masahiro331/CVE-2019-13574 | 2019-07-16 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE 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
github.com/minimagick/minimagick/releases/tag/v4.9.4
github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851
github.com/minimagick/minimagick/compare/d484786...293f9bb
benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4
debian.org/security/2019/dsa-4481
seclists.org/bugtraq/2019/Jul/20
Show 9 moreShow less
lists.debian.org/debian-lts-announce/2019/10/msg00007.html
nvd.nist.gov/vuln/detail/CVE-2019-13574
github.com/rubysec/ruby-advisory-db/blob/master/gems/mini_magick/CVE-2019-13574.yml
github.com/advisories/GHSA-r7j3-vvh2-xrpj
security-tracker.debian.org/tracker/CVE-2019-13574
github.com/minimagick/minimagick
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1150
ubuntu.com/security/CVE-2019-13574
cve.org/CVERecord?id=CVE-2019-13574
Left out here: 12 versions. The JSON record has them.