CVE-2019-13574 — In lib/mini_magick/image
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
2019-07-12T02:31:25.000Z
Last modified
2024-08-04T23:57:39.417Z
01What is this vulnerability?
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.
02Affected products
| Vendor | Product | Versions |
|---|
| n | a / n/a | n/a |
03Active exploitation status
Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.
04Recommended remediation
- Patch to a fixed version listed in the vendor advisory (see references below).
- Mitigate with WAF rules, network egress filters, or feature flags where the patch is not yet available.
- Hunt historical logs for exploitation indicators — see Detection signatures below.
05Technical details
For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.
06Detection signatures
Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.
07Related CVEs
No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.
08Timeline
- Published: 2019-07-12T02:31:25.000Z
- Last modified: 2024-08-04T23:57:39.417Z
09References
- github.com — https://github.com/minimagick/minimagick/releases/tag/v4.9.4
- github.com — https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e…
- github.com — https://github.com/minimagick/minimagick/compare/d484786...293f9bb
- benjamin-bouchet.com — https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-…
- www.debian.org — https://www.debian.org/security/2019/dsa-4481
- seclists.org — https://seclists.org/bugtraq/2019/Jul/20
- lists.debian.org — https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →