{"id":"GHSA-r7j3-vvh2-xrpj","summary":"OS Command Injection in MiniMagick","details":"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.","aliases":["CVE-2019-13574"],"modified":"2024-02-19T05:32:31.104648Z","published":"2019-07-18T13:19:22Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2019-07-18T13:18:58Z","nvd_published_at":"2019-07-12T03:15:00Z","cwe_ids":["CWE-78"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13574"},{"type":"WEB","url":"https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851"},{"type":"WEB","url":"https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4"},{"type":"PACKAGE","url":"https://github.com/minimagick/minimagick"},{"type":"WEB","url":"https://github.com/minimagick/minimagick/compare/d484786...293f9bb"},{"type":"WEB","url":"https://github.com/minimagick/minimagick/releases/tag/v4.9.4"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mini_magick/CVE-2019-13574.yml"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html"},{"type":"WEB","url":"https://seclists.org/bugtraq/2019/Jul/20"},{"type":"WEB","url":"https://www.debian.org/security/2019/dsa-4481"}],"affected":[{"package":{"name":"mini_magick","ecosystem":"RubyGems","purl":"pkg:gem/mini_magick"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.9.4"}]}],"versions":["1.0.1","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.2.5","1.3.0","1.3.1","1.3.2","1.3.3","2.0.0","2.0.1","2.0.2","2.1","2.3","3.0","3.1","3.2","3.2.1","3.3","3.4","3.5.0","3.6.0","3.7.0","3.8.0","3.8.1","4.0.0","4.0.0.rc","4.0.1","4.0.2","4.0.3","4.0.4","4.1.0","4.1.1","4.2.0","4.2.1","4.2.10","4.2.3","4.2.4","4.2.5","4.2.7","4.2.9","4.3.1","4.3.2","4.3.3","4.3.4","4.3.5","4.3.6","4.4.0","4.5.0","4.5.1","4.6.0","4.6.1","4.7.0","4.7.1","4.7.2","4.8.0","4.9.0","4.9.1","4.9.2","4.9.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/07/GHSA-r7j3-vvh2-xrpj/GHSA-r7j3-vvh2-xrpj.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}