Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Minimagick Project | Minimagick | < 4.9.4 |
| Debian | Debian Linux | 9.0 |
Related Weaknesses (CWE)
References
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-ExploitThird Party Advisory
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4ePatchThird Party Advisory
- https://github.com/minimagick/minimagick/compare/d484786...293f9bbPatchThird Party Advisory
- https://github.com/minimagick/minimagick/releases/tag/v4.9.4Release NotesThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
- https://seclists.org/bugtraq/2019/Jul/20Mailing ListThird Party Advisory
- https://www.debian.org/security/2019/dsa-4481Third Party Advisory
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-ExploitThird Party Advisory
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4ePatchThird Party Advisory
- https://github.com/minimagick/minimagick/compare/d484786...293f9bbPatchThird Party Advisory
- https://github.com/minimagick/minimagick/releases/tag/v4.9.4Release NotesThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
- https://seclists.org/bugtraq/2019/Jul/20Mailing ListThird Party Advisory
- https://www.debian.org/security/2019/dsa-4481Third Party Advisory
FAQ
What is CVE-2019-13574?
CVE-2019-13574 is a vulnerability with a CVSS score of 7.8 (HIGH). 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...
How severe is CVE-2019-13574?
CVE-2019-13574 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2019-13574?
Check the references section above for vendor advisories and patch information. Affected products include: Minimagick Project Minimagick, Debian Debian Linux.