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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXI3ajMtdnZoMi14cnBq
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 5 years ago
Updated: over 1 year 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
EPSS Percentage: 0.01277
EPSS Percentile: 0.86059
Identifiers: GHSA-r7j3-vvh2-xrpj, CVE-2019-13574
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-13574
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851
- https://github.com/minimagick/minimagick/compare/d484786...293f9bb
- https://github.com/minimagick/minimagick/releases/tag/v4.9.4
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
- https://seclists.org/bugtraq/2019/Jul/20
- https://www.debian.org/security/2019/dsa-4481
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mini_magick/CVE-2019-13574.yml
- https://github.com/advisories/GHSA-r7j3-vvh2-xrpj
Blast Radius: 38.7
Affected Packages
rubygems:mini_magick
Dependent packages: 573Dependent repositories: 90,598
Downloads: 241,776,674 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, 4.13.0, 4.13.1, 4.13.2, 5.0.0, 5.0.1