{ "schema_version": "1.4.0", "id": "GHSA-r7j3-vvh2-xrpj", "modified": "2023-01-25T20:10:32Z", "published": "2019-07-18T13:19:22Z", "aliases": [ "CVE-2019-13574" ], "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.", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "RubyGems", "name": "mini_magick" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "4.9.4" } ] } ] } ], "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" } ], "database_specific": { "cwe_ids": [ "CWE-78" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2019-07-18T13:18:58Z", "nvd_published_at": "2019-07-12T03:15:00Z" } }