CVE-2019-13574
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 accept...
Public exploit available. Not confirmed exploited in the wild yet. Fixed in 4.9.4.
What to do
Find your product and version, then upgrade to the build on the right.
- RubyGems mini_magickAffected: < 4.9.4Upgrade to: 4.9.4Stated by: GitHub advisory
- Minimagick Project MinimagickAffected: < 4.9.4Upgrade to: 4.9.4Stated by: NVD
- Сообщество свободного программного обеспечения Debian GNU/LinuxAffected: 9Upgrade to: not statedStated by: BDU
- Novell Inc. SUSE Linux Enterprise Module for BasesystemAffected: 15Upgrade to: not statedStated by: BDU
- Novell Inc. OpenSUSE LeapAffected: 15.0Upgrade to: not statedStated by: BDU
Versions as the sources state them. 1 more product has version data. Full version matrix after sign-in
Steps
Written by AI from the record- Check which MiniMagick version your application uses, and whether it is older than 4.9.4.
- Identify any code paths that fetch and process remote images (not uploaded files) where an untrusted party can influence the remote image filename.
- Upgrade MiniMagick to 4.9.4 or later.
- If you can’t upgrade right away, block or strictly sanitize remote image fetching so untrusted users cannot control the remote image filename being processed, and restrict remote image sources to allowlisted hosts.
gem install mini_magick -v 4.9.4What it is
From the CVE record
OS Command Injection in MiniMagick
In plain language
Written by AI from the recordIf you use MiniMagick older than 4.9.4, an attacker who can control the filename of a remote image your app fetches could run commands on your server. This only matters if your app lets untrusted users influence which remote image (and its filename) is processed.
CVE-2019-13574 is an OS command injection in MiniMagick when remote image filenames are passed into `Kernel#open` via `Image.open` without sufficient sanitization; in MiniMagick before 4.9.4, filename control from untrusted input can lead to arbitrary command execution on the host.
If you're affected
- Full server compromise
- Ransomware or data theft risk
- Customer/employee data exposure
- Downtime from attacker control
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
1 source with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in- EPSS
7.6% chance of exploitation activity in the next 30 days, which ranks it in the 95th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
The patch came 471 days before any public exploit.
- EPSS band changemoderate → lowepss band change
- EPSS band changelow → moderateepss band change
- EPSS band changemoderate → 0epss band change
- EPSS band change0 → moderateepss band change
- EPSS band changemoderate → 0epss band change
- EPSS band change0 → moderateepss band change
Affected products
And 1 more affected product. See all after sign-in
Technical detail
CVSS 3.0 vector
Open in the CVSS calculatorCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Scored 7.8 by NVD.
How it is reached
- Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction RequiredA user must click a link, open a file, or perform some action
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Debian GNU/Linux, not every advisory. This one: public exploit.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI