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.
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Link | Tags |
---|---|
https://github.com/minimagick/minimagick/releases/tag/v4.9.4 | third party advisory release notes |
https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851 | third party advisory patch |
https://github.com/minimagick/minimagick/compare/d484786...293f9bb | third party advisory patch |
https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/ | third party advisory exploit |
https://www.debian.org/security/2019/dsa-4481 | third party advisory vendor advisory |
https://seclists.org/bugtraq/2019/Jul/20 | third party advisory mailing list |
https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html | mailing list |