CVE-2019-13574

HIGH

MiniMagick < 4.9.4 - Remote Code Execution via Image.open Kernel#open Command Injection

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2019-13574. PoCs published by masahiro331.

AI-analyzed exploit summary This PoC exploits CVE-2019-13574, a command injection vulnerability in the MiniMagick gem, by passing a malicious input to the `Image.open` method. The exploit demonstrates arbitrary command execution via shell metacharacters.

Description

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.

Exploits (1)

nomisec WORKING POC 1 stars
by masahiro331 · poc
https://github.com/masahiro331/CVE-2019-13574

This PoC exploits CVE-2019-13574, a command injection vulnerability in the MiniMagick gem, by passing a malicious input to the `Image.open` method. The exploit demonstrates arbitrary command execution via shell metacharacters.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: MiniMagick gem (versions before 4.9.4)
No auth needed
Prerequisites: Ruby environment with vulnerable MiniMagick gem installed
MITRE ATT&CK
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (7)

Core 7
Core References
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/minimagick/minimagick/releases/tag/v4.9.4
Patch, Third Party Advisory x_refsource_misc
https://github.com/minimagick/minimagick/compare/d484786...293f9bb
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2019/dsa-4481
Mailing List, Third Party Advisory mailing-list x_refsource_bugtraq
https://seclists.org/bugtraq/2019/Jul/20
Mailing List mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html

Scores

CVSS v3 7.8
EPSS 0.2912
EPSS Percentile 96.7%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-78
Status published
Products (4)
debian/debian_linux 9.0
debian/debian_linux 10.0
minimagick_project/minimagick < 4.9.4
rubygems/mini_magick 0 - 4.9.4RubyGems
Published Jul 12, 2019
Tracked Since Feb 18, 2026