GitHub Advisoryadvisory · RubyGems
GHSA-r7j3-vvh2-xrpj OS Command Injection in MiniMagick
HIGH
Official page ↗
- Aliases
- CVE-2019-13574
- Ecosystem
- RubyGems
- Packages
- mini_magick
- Severity
- High
- CVSS vector
- CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-78
- Reviewed
- 2019-07-18
Affected packages
• RubyGems mini_magick: < 4.9.4 → fixed in 4.9.4
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.
Related
Alias · CVE (1)
- CVE-2019-13574 In lib/mini_magick/image.rb in MiniMagick before 4.9.4, a fetched remote image filename could cause remote command execution because… vulnerability
Weakness · CWE (1)
- CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
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