Advisory

GHSA-r7j3-vvh2-xrpj

Also known as: 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

High Basis: The source's own band: HIGH

Dates

Published
2019-07-18 13:19 UTC
Modified
2024-02-19 05:32 UTC

Affected packages and fixes

mini_magick

RubyGems · All systems

Affected

  • introduced 0, fixed 4.9.4 (ecosystem)

Fixed versions

4.9.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences