CVE-2019-13574
HIGH 7.8CVSS 3.0OS 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.
- Published
- 12 Jul 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-r7j3-vvh2-xrpj
- Sources
- NVDJSONOSV GHSA-r7j3-vvh2-xrpjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | minimagick_project | minimagickcpe:2.3:a:minimagick_project:minimagick:*:*:*:*:*:*:*:* |
< 4.9.4 | 4.9.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | RubyGems | mini_magick | < 4.9.4 | 4.9.4 |
References
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/ · Exploit, Third Party Advisory, WEB
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851 · Patch, Third Party Advisory, WEB
- https://github.com/minimagick/minimagick/compare/d484786...293f9bb · Patch, Third Party Advisory, WEB
- https://github.com/minimagick/minimagick/releases/tag/v4.9.4 · Release Notes, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html · WEB
- https://seclists.org/bugtraq/2019/Jul/20 · Mailing List, Third Party Advisory, WEB
- https://www.debian.org/security/2019/dsa-4481 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-13574 · ADVISORY
- https://github.com/minimagick/minimagick · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mini_magick/CVE-2019-13574.yml · WEB
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 12 Jul 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Jul 2019)