Vulnerability Details : 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.
Exploit prediction scoring system (EPSS) score for CVE-2019-13574
Probability of exploitation activity in the next 30 days: 0.45%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 72 % EPSS Score History EPSS FAQ
CVSS scores for CVE-2019-13574
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source |
---|---|---|---|---|---|
6.8
|
MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P |
8.6
|
6.4
|
NIST |
7.8
|
HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
1.8
|
5.9
|
NIST |
CWE ids for CVE-2019-13574
-
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.Assigned by: nvd@nist.gov (Primary)
References for CVE-2019-13574
-
https://seclists.org/bugtraq/2019/Jul/20
Bugtraq: [SECURITY] [DSA 4481-1] ruby-mini-magick security updateMailing List;Third Party Advisory
-
https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html
[SECURITY] [DLA 1948-1] ruby-mini-magick security update
-
https://github.com/minimagick/minimagick/compare/d484786...293f9bb
Comparing d484786...293f9bb · minimagick/minimagick · GitHubPatch;Third Party Advisory
-
https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851
Don't allow remote shell execution · minimagick/minimagick@4cd5081 · GitHubPatch;Third Party Advisory
-
https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/
Vulnérabilité dans la gem mini_magick version < 4.9.4 – Benjamin BouchetExploit;Third Party Advisory
-
https://github.com/minimagick/minimagick/releases/tag/v4.9.4
Release v4.9.4 · minimagick/minimagick · GitHubRelease Notes;Third Party Advisory
-
https://www.debian.org/security/2019/dsa-4481
Debian -- Security Information -- DSA-4481-1 ruby-mini-magickThird Party Advisory
Products affected by CVE-2019-13574
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
- cpe:2.3:a:minimagick_project:minimagick:*:*:*:*:*:*:*:*