HIGH7.8
GHSA-r7j3-vvh2-xrpj
OS Command Injection in MiniMagick
Quick fix
GHSA-r7j3-vvh2-xrpj — mini_magick: upgrade to the fixed version with the command below.
bundle update mini_magickDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-13574[ADVISORY]
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851[WEB]
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4[WEB]
- https://github.com/minimagick/minimagick[PACKAGE]
- https://github.com/minimagick/minimagick/compare/d484786...293f9bb[WEB]
- https://github.com/minimagick/minimagick/releases/tag/v4.9.4[WEB]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mini_magick/CVE-2019-13574.yml[WEB]
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html[WEB]
- https://seclists.org/bugtraq/2019/Jul/20[WEB]
- https://www.debian.org/security/2019/dsa-4481[WEB]