CVE-2019-13574
OS Command Injection in MiniMagick
Reported by mitre · Published July 12, 2019
mini_magick is fixed in 4.9.4 (RubyGems)
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mini_magick | RubyGems | 4.9.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| RubyGems | mini_magick | 0 |
| n/a | n/a | * |
Timeline
- Jul 12, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jan 25, 2023 CVE Updated
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- Sep 15, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-13574
vulnetix vdb fixes CVE-2019-13574
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-13574/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- DSA-4481 vendor-advisoryx_refsource_DEBIAN
- 20190715 [SECURITY] [DSA 4481-1] ruby-mini-magick security update mailing-listx_refsource_BUGTRAQ
- [debian-lts-announce] 20191007 [SECURITY] [DLA 1948-1] ruby-mini-magick security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2019-13574 advisory