GitHub Advisoryadvisory · RubyGems

GHSA-r7j3-vvh2-xrpj OS Command Injection in MiniMagick

HIGH Published 2019-07-18 Modified 2023-01-25 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