Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3013

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3013
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:45 UTC · Revision 1

Source evidence

CVE-2021-3013

core-osv · Original source

Published 11 Jun 2021, 12:15 UTC

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.

osv:CVE-2021-3013
Complete source record
{
  "id": "bb414518da4be21d12341f54b80de946fd1159746e827d0b4632cddac5da838f",
  "url": "https://osv.dev/vulnerability/CVE-2021-3013",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3013",
    "summary": "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.",
    "evidence": "osv:CVE-2021-3013",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-3013",
      "aliases": [
        "CVE-2021-3013",
        "GHSA-g4xg-fxmg-vcg5",
        "RUSTSEC-2021-0071"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/burntsushi/ripgrep",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "af6b6c543b224d348a8876f0c06245d9ea7929c5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ripgrep_project:ripgrep:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "13.0.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "grep-0.2.8",
            "grep-printer-0.1.6",
            "grep-searcher-0.1.8",
            "grep-pcre2-0.1.5",
            "grep-regex-0.1.9",
            "grep-matcher-0.1.5",
            "grep-cli-0.1.6",
            "ignore-0.4.18",
            "globset-0.4.7",
            "ignore-0.4.17",
            "globset-0.4.6",
            "12.1.1",
            "grep-0.2.7",
            "grep-cli-0.1.5",
            "ignore-0.4.16",
            "12.1.0",
            "grep-0.2.6",
            "grep-printer-0.1.5",
            "grep-regex-0.1.8",
            "ignore-0.4.15",
            "12.0.1",
            "ignore-0.4.14",
            "ignore-0.4.13",
            "grep-regex-0.1.7",
            "12.0.0",
            "ignore-0.4.12",
            "grep-searcher-0.1.7",
            "grep-regex-0.1.6",
            "grep-printer-0.1.4",
            "grep-pcre2-0.1.4",
            "grep-matcher-0.1.4",
            "grep-cli-0.1.4",
            "grep-0.2.5",
            "globset-0.4.5",
            "ignore-0.4.11",
            "grep-regex-0.1.5",
            "grep-searcher-0.1.6",
            "ignore-0.4.10",
            "11.0.2",
            "ignore-0.4.9",
            "grep-regex-0.1.4",
            "grep-matcher-0.1.3",
            "ignore-0.4.8",
            "grep-searcher-0.1.5",
            "grep-printer-0.1.3",
            "grep-cli-0.1.3",
            "globset-0.4.4",
            "11.0.1",
            "11.0.0",
            "grep-0.2.4",
            "grep-cli-0.1.2",
            "grep-printer-0.1.2",
            "grep-searcher-0.1.4",
            "grep-pcre2-0.1.3",
            "grep-regex-0.1.3",
            "grep-matcher-0.1.2",
            "ignore-0.4.7",
            "globset-0.4.3",
            "grep-regex-0.1.2",
            "grep-searcher-0.1.3",
            "grep-searcher-0.1.2",
            "ignore-0.4.6",
            "ignore-0.4.5",
            "grep-pcre2-0.1.2",
            "grep-0.2.3",
            "0.10.0",
            "ignore-0.4.4",
            "grep-searcher-0.1.1",
            "grep-regex-0.1.1",
            "grep-printer-0.1.1",
            "grep-pcre2-0.1.1",
            "grep-matcher-0.1.1",
            "grep-cli-0.1.1",
            "grep-0.2.2",
            "globset-0.4.2",
            "grep-0.2.1",
            "grep-cli-0.1.0",
            "grep-search-0.1.0",
            "grep-regex-0.1.0",
            "grep-printer-0.1.0",
            "grep-pcre2-0.1.0",
            "grep-matcher-0.1.0",
            "grep-0.2.0",
            "0.9.0",
            "grep-0.1.9",
            "ignore-0.4.3",
            "globset-0.4.1",
            "ignore-0.4.2",
            "globset-0.4.0",
            "termcolor-0.3.6",
            "0.8.1",
            "termcolor-0.3.5",
            "ignore-0.4.1",
            "0.8.0",
            "ignore-0.4.0",
            "globset-0.3.0",
            "termcolor-0.3.4",
            "wincolor-0.1.6",
            "grep-0.1.8",
            "wincolor-0.1.5",
            "0.7.1",
            "ignore-0.3.0",
            "grep-0.1.7",
            "globset-0.2.1",
            "0.7.0",
            "termcolor-0.3.3",
            "0.6.0",
            "ignore-0.2.2",
            "ignore-0.2.1",
            "wincolor-0.1.4",
            "0.5.2",
            "0.5.1",
            "ignore-0.1.9",
            "termcolor-0.3.2",
            "0.5.0",
            "wincolor-0.1.3",
            "termcolor-0.3.1",
            "ignore-0.1.8",
            "grep-0.1.6",
            "globset-0.1.4",
            "termcolor-0.3.0",
            "wincolor-0.1.2",
            "0.4.0",
            "0.3.2",
            "ignore-0.1.6",
            "0.3.1",
            "termcolor-0.1.1",
            "0.3.0",
            "wincolor-0.1.0",
            "termcolor-0.1.0",
            "0.2.9",
            "ignore-0.1.5",
            "0.2.8",
            "0.2.7",
            "ignore-0.1.4",
            "grep-0.1.4",
            "globset-0.1.2",
            "0.2.6",
            "ignore-0.1.3",
            "0.2.5",
            "0.2.4",
            "ignore-0.1.1",
            "ignore-0.1.0",
            "globset-0.1.1",
            "0.2.3",
            "0.2.2",
            "globset-0.1.0",
            "0.2.0",
            "0.2.1",
            "0.1.17",
            "0.1.16",
            "0.1.15",
            "0.1.14",
            "0.1.13",
            "0.1.12",
            "0.1.11",
            "0.1.10",
            "0.1.9",
            "0.1.8",
            "0.1.7",
            "0.1.6",
            "0.1.5",
            "0.1.4",
            "0.1.3",
            "0.1.2",
            "0.1.1",
            "0.1.0",
            "0.0.19",
            "0.0.18",
            "0.0.17",
            "0.0.16",
            "0.0.15",
            "0.0.14",
            "0.0.13",
            "0.0.12",
            "0.0.11",
            "0.0.10",
            "0.0.9",
            "0.0.8",
            "0.0.7",
            "0.0.6",
            "0.0.5",
            "0.0.4",
            "0.0.3",
            "0.0.2",
            "0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3013.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:39.897832599Z",
      "provider": "osv",
      "references": [
        "https://github.com/BurntSushi/ripgrep/blob/e48a17e1891e1ea9dd06ba0e48d5fb140ca7c0c4/CHANGELOG.md",
        "https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-3013",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 385827,
  "published_at": "2021-06-11T12:15:12.163+00:00"
}