CVE-2019-13574 json
OS Command Injection in MiniMagick
published 7y ago modified 4mo ago also GHSA-r7j3-vvh2-xrpj , EUVD-2019-0603
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.6%
- EPSS 7.6% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems mini_magick 4.9.4
- minimagick_project minimagick 4.9.4
- ruby-mini-magick Debian 14, Debian 13, Debian 12 4.9.2-1.1
debian advisories DEBIAN-CVE-2019-13574
Is CVE-2019-13574 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-13574 updated cvss 8.8
rubygem-mini_magick: fetching remote image filename leds to remote command execution
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
7.64% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- benjamin-bouchet.com https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | mini_magick | <4.9.4 |
4.9.4 |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851
web, patch, third-party-advisory
-
github.com
/minimagick/minimagick/compare/d484786...293f9bb
web, patch, third-party-advisory
-
benjamin-bouchet.com
/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/
exploit, third-party-advisory
-
debian.org
/security/2019/dsa-4481
vendor-advisory, web, third-party-advisory
-
github.com
/minimagick/minimagick/releases/tag/v4.9.4
web, release-notes, third-party-advisory
-
seclists.org
/bugtraq/2019/Jul/20
mailing-list, web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2019/10/msg00007.html
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2019-13574
advisory
-
benjamin-bouchet.com
/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4
web
-
github.com
/minimagick/minimagick
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/mini_magick/CVE-2019-13574.yml
web
Sources
- CVE List CVE-2019-13574
- GitHub Advisory GHSA-r7j3-vvh2-xrpj
- NVD CVE-2019-13574
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.