Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXI3ajMtdnZoMi14cnBq

OS Command Injection in MiniMagick

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.

Permalink: https://github.com/advisories/GHSA-r7j3-vvh2-xrpj
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXI3ajMtdnZoMi14cnBq
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: almost 5 years ago
Updated: 8 months ago


CVSS Score: 7.8
CVSS vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Identifiers: GHSA-r7j3-vvh2-xrpj, CVE-2019-13574
References: Repository: https://github.com/minimagick/minimagick
Blast Radius: 38.7

Affected Packages

rubygems:mini_magick
Dependent packages: 567
Dependent repositories: 90,598
Downloads: 204,104,162 total
Affected Version Ranges: < 4.9.4
Fixed in: 4.9.4
All affected 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, 3.2.1, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.8.1, 4.0.0, 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.3, 4.2.4, 4.2.5, 4.2.7, 4.2.9, 4.2.10, 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
All unaffected versions: 4.9.4, 4.9.5, 4.10.0, 4.10.1, 4.11.0, 4.12.0