CVE-2019-13574 — OS Command Injection in mini_magick — CVE Details
HIGH
OS Command Injection in MiniMagick
Published July 18, 2019Updated February 19, 2024Source: osv
Summary
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.
Advisory Timeline
- First published July 18, 2019 (2643 days ago).
- Last revised February 19, 2024 — 1677 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
Bundler
Update mini_magick to 4.9.4 or latergem install mini_magick -v 4.9.4
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| mini_magick | rubygems | 1.0.1, 1.1.0, 1.2.0, 1.2.1 (+58 more) | 4.9.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-78OS Command InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.8 score means for each attack dimension.
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-13574ADVISORY
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851WEB
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4WEB
- https://github.com/minimagick/minimagickPACKAGE
- https://github.com/minimagick/minimagick/compare/d484786...293f9bbWEB
- https://github.com/minimagick/minimagick/releases/tag/v4.9.4WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/mini_magick/CVE-2019-13574.ymlWEB
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.htmlWEB
- https://seclists.org/bugtraq/2019/Jul/20WEB
- https://www.debian.org/security/2019/dsa-4481WEB
Frequently Asked Questions
- What is CVE-2019-13574?
- OS Command Injection in MiniMagick This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.8/10).
- How do I check if my project is affected by CVE-2019-13574?
- CVE-2019-13574 affects mini_magick. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-13574 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
7.8
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
GHSA-r7j3-vvh2-xrpj
Related CVEs
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies