Loading...
Skip to main content

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 later
gem 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).

PackageEcosystemAffectedFixed 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-78
    OS 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

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-94462
    HIGH

    Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

  • CVE-2026-77601
    HIGH

    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