GSD-2019-13574

Vulnerability from gsd - Updated: 2019-07-12 00:00
Details
A remote shell execution vulnerability when using MiniMagick::Image.open with URL coming from unsanitized user input. e.g. `MiniMagick::Image.open("| touch.txt")`
Aliases

{
  "GSD": {
    "alias": "CVE-2019-13574",
    "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 \u0027|\u0027 character followed by a command.",
    "id": "GSD-2019-13574",
    "references": [
      "https://www.debian.org/security/2019/dsa-4481"
    ]
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "mini_magick",
            "purl": "pkg:gem/mini_magick"
          }
        }
      ],
      "aliases": [
        "CVE-2019-13574",
        "GHSA-r7j3-vvh2-xrpj"
      ],
      "details": "A remote shell execution vulnerability when using MiniMagick::Image.open with URL coming from unsanitized user input.\ne.g. `MiniMagick::Image.open(\"| touch.txt\")`\n",
      "id": "GSD-2019-13574",
      "modified": "2019-07-12T00:00:00.000Z",
      "published": "2019-07-12T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/"
        },
        {
          "type": "WEB",
          "url": "https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 7.5,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Remote command execution via filename"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2019-13574",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "n/a",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "n/a"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "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 \u0027|\u0027 character followed by a command."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/minimagick/minimagick/releases/tag/v4.9.4",
            "refsource": "MISC",
            "url": "https://github.com/minimagick/minimagick/releases/tag/v4.9.4"
          },
          {
            "name": "https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851",
            "refsource": "MISC",
            "url": "https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851"
          },
          {
            "name": "https://github.com/minimagick/minimagick/compare/d484786...293f9bb",
            "refsource": "MISC",
            "url": "https://github.com/minimagick/minimagick/compare/d484786...293f9bb"
          },
          {
            "name": "https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/",
            "refsource": "MISC",
            "url": "https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/"
          },
          {
            "name": "DSA-4481",
            "refsource": "DEBIAN",
            "url": "https://www.debian.org/security/2019/dsa-4481"
          },
          {
            "name": "20190715 [SECURITY] [DSA 4481-1] ruby-mini-magick security update",
            "refsource": "BUGTRAQ",
            "url": "https://seclists.org/bugtraq/2019/Jul/20"
          },
          {
            "name": "[debian-lts-announce] 20191007 [SECURITY] [DLA 1948-1] ruby-mini-magick security update",
            "refsource": "MLIST",
            "url": "https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2019-13574",
      "cvss_v3": 7.5,
      "date": "2019-07-12",
      "description": "A remote shell execution vulnerability when using MiniMagick::Image.open with URL coming from unsanitized user input.\ne.g. `MiniMagick::Image.open(\"| touch.txt\")`\n",
      "gem": "mini_magick",
      "ghsa": "r7j3-vvh2-xrpj",
      "patched_versions": [
        "\u003e= 4.9.4"
      ],
      "related": {
        "url": [
          "https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851"
        ]
      },
      "title": "Remote command execution via filename",
      "url": "https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c4.9.4",
          "affected_versions": "All versions before 4.9.4, version 10.0, version 9.0",
          "cvss_v2": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
          "cvss_v3": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-78",
            "CWE-937"
          ],
          "date": "2020-08-24",
          "description": "In lib/mini_magick/image.rb in MiniMagick, a fetched remote image filename could cause remote command execution.",
          "fixed_versions": [
            "4.9.4"
          ],
          "identifier": "CVE-2019-13574",
          "identifiers": [
            "CVE-2019-13574"
          ],
          "not_impacted": "All versions starting from 4.9.4 before 10.0, all versions after 10.0, all versions before 9.0, all versions after 9.0",
          "package_slug": "gem/mini_magick",
          "pubdate": "2019-07-12",
          "solution": "Upgrade to versions 1.0.1, 4.9.4 or above.",
          "title": "Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2019-13574",
            "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"
          ],
          "uuid": "d71416c8-3616-4179-9c9d-bcd88c446a16"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:minimagick_project:minimagick:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndExcluding": "4.9.4",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          },
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2019-13574"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "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 \u0027|\u0027 character followed by a command."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-78"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/minimagick/minimagick/releases/tag/v4.9.4",
              "refsource": "MISC",
              "tags": [
                "Release Notes",
                "Third Party Advisory"
              ],
              "url": "https://github.com/minimagick/minimagick/releases/tag/v4.9.4"
            },
            {
              "name": "https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/minimagick/minimagick/commit/4cd5081e58810d3394d27a67219e8e4e0445d851"
            },
            {
              "name": "https://github.com/minimagick/minimagick/compare/d484786...293f9bb",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/minimagick/minimagick/compare/d484786...293f9bb"
            },
            {
              "name": "https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Third Party Advisory"
              ],
              "url": "https://benjamin-bouchet.com/blog/vulnerabilite-dans-la-gem-mini_magick-version-4-9-4/"
            },
            {
              "name": "DSA-4481",
              "refsource": "DEBIAN",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://www.debian.org/security/2019/dsa-4481"
            },
            {
              "name": "20190715 [SECURITY] [DSA 4481-1] ruby-mini-magick security update",
              "refsource": "BUGTRAQ",
              "tags": [
                "Mailing List",
                "Third Party Advisory"
              ],
              "url": "https://seclists.org/bugtraq/2019/Jul/20"
            },
            {
              "name": "[debian-lts-announce] 20191007 [SECURITY] [DLA 1948-1] ruby-mini-magick security update",
              "refsource": "MLIST",
              "tags": [],
              "url": "https://lists.debian.org/debian-lts-announce/2019/10/msg00007.html"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 6.8,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 8.6,
          "impactScore": 6.4,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": true
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.0"
          },
          "exploitabilityScore": 1.8,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2020-08-24T17:37Z",
      "publishedDate": "2019-07-12T03:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…