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 accepts a '|' character followed by a command.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (7.64%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.0
- 7.8 HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 7.64% probability · 94th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-78
- Affected
- minimagick project/minimagick · debian/debian linux
- Source
- cve@mitre.org
References
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/Exploit, Third Party Advisory
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851Patch, Third Party Advisory
- https://github.com/minimagick/minimagick/compare/d484786...293f9bbPatch, Third Party Advisory
- https://github.com/minimagick/minimagick/releases/tag/v4.9.4Release Notes, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
- https://seclists.org/bugtraq/2019/Jul/20Mailing List, Third Party Advisory
- https://www.debian.org/security/2019/dsa-4481Third Party Advisory
- https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/Exploit, Third Party Advisory
- https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851Patch, Third Party Advisory
- https://github.com/minimagick/minimagick/compare/d484786...293f9bbPatch, Third Party Advisory
- https://github.com/minimagick/minimagick/releases/tag/v4.9.4Release Notes, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
- https://seclists.org/bugtraq/2019/Jul/20Mailing List, Third Party Advisory
- https://www.debian.org/security/2019/dsa-4481Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.