{
  "schema_version": "1.4.0",
  "id": "GHSA-g4xg-fxmg-vcg5",
  "modified": "2021-09-07T21:16:08Z",
  "published": "2021-08-05T19:31:55Z",
  "aliases": [
    "CVE-2021-3013"
  ],
  "summary": "OS command injection in ripgrep",
  "details": "ripgrep before 13 on Windows allows attackers to trigger execution of arbitrary programs from the current working directory via the -z/--search-zip or --pre flag.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "ripgrep"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "13.0.0"
            }
          ]
        }
      ]
    },
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "grep-cli"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.1.6"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-3013"
    },
    {
      "type": "WEB",
      "url": "https://github.com/BurntSushi/ripgrep/issues/1773"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/BurntSushi/ripgrep"
    },
    {
      "type": "WEB",
      "url": "https://github.com/BurntSushi/ripgrep/blob/e48a17e1891e1ea9dd06ba0e48d5fb140ca7c0c4/CHANGELOG.md"
    },
    {
      "type": "WEB",
      "url": "https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md"
    },
    {
      "type": "WEB",
      "url": "https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md#1300-2021-06-12"
    },
    {
      "type": "WEB",
      "url": "https://rustsec.org/advisories/RUSTSEC-2021-0071.html"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-78"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-06-14T19:32:57Z",
    "nvd_published_at": "2021-06-11T12:15:00Z"
  }
}