CVE catalog

CVE-2021-3013

rust-ripgrep affected and fixed versions

[CVE catalog]

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
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.93% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Opensusetumbleweedripgrep13.0.0-2.2Fixed[OPENSUSE-SU-2024:11300-1]

Showing 1 fix observations. All 16 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
Debianbookwormrust-ripgrepNot reportedNot affectedDistribution reports not affected[CVE-2021-3013]
Debianbookwormrust-ripgrep13.0.0-4Not affected[CVE-2021-3013]
Debianforkyrust-ripgrepNot reportedNot affectedDistribution reports not affected[CVE-2021-3013]
Debianforkyrust-ripgrep15.2.0-1Not affected[CVE-2021-3013]
Debiansidrust-ripgrepNot reportedNot affectedDistribution reports not affected[CVE-2021-3013]
Debiansidrust-ripgrep15.2.0-1Not affected[CVE-2021-3013]
Debiantrixierust-ripgrepNot reportedNot affectedDistribution reports not affected[CVE-2021-3013]
Debiantrixierust-ripgrep14.1.1-1Not affected[CVE-2021-3013]
Opensusetumbleweedripgrep13.0.0-2.2Fixed[OPENSUSE-SU-2024:11300-1]
Ubuntu20.04rust-ripgrep0.10.0-2build1Affected[UBUNTU-CVE-2021-3013]
Ubuntu20.04rust-ripgrep11.0.2-1Affected[UBUNTU-CVE-2021-3013]
Ubuntu20.04rust-ripgrep11.0.2-1build1Affected[UBUNTU-CVE-2021-3013]
Ubuntu20.04rust-ripgrep11.0.2-1ubuntu0.1Affected[UBUNTU-CVE-2021-3013]
Ubuntu22.04rust-ripgrep12.1.1-1Affected[UBUNTU-CVE-2021-3013]
Ubuntu22.04rust-ripgrep13.0.0-2Affected[UBUNTU-CVE-2021-3013]
Ubuntu22.04rust-ripgrep13.0.0-2ubuntu0.1Affected[UBUNTU-CVE-2021-3013]
Original provider fields
{
  "package_releases": [
    {
      "name": "rust-ripgrep",
      "status": "not affected",
      "release": "sid",
      "version": "15.2.0-1"
    },
    {
      "name": "rust-ripgrep",
      "status": "not affected",
      "release": "forky",
      "version": "15.2.0-1"
    },
    {
      "name": "rust-ripgrep",
      "status": "not affected",
      "release": "trixie",
      "version": "14.1.1-1"
    },
    {
      "name": "rust-ripgrep",
      "status": "not affected",
      "release": "bookworm",
      "version": "13.0.0-4"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "rust-ripgrep",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "unimportant",
      "fixed_version": "0"
    },
    {
      "bug": null,
      "name": "rust-ripgrep",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "unimportant",
      "fixed_version": "0"
    },
    {
      "bug": null,
      "name": "rust-ripgrep",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "unimportant",
      "fixed_version": "0"
    },
    {
      "bug": null,
      "name": "rust-ripgrep",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "unimportant",
      "fixed_version": "0"
    }
  ],
  "distribution_packages": [
    {
      "name": "ripgrep",
      "distro": "opensuse",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "13.0.0-2.2"
            }
          ]
        }
      ],
      "release": "tumbleweed",
      "versions": [],
      "ecosystem": "rpm",
      "provider_url": "https://osv.dev/vulnerability/openSUSE-SU-2024:11300-1",
      "fixed_version": "13.0.0-2.2",
      "provider_source": "pypi",
      "provider_record_id": "OPENSUSE-SU-2024:11300-1",
      "provider_updated_at": "2026-02-04T02:16:14.009692Z"
    },
    {
      "name": "rust-ripgrep",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "20.04",
      "versions": [
        "0.10.0-2build1",
        "11.0.2-1",
        "11.0.2-1build1",
        "11.0.2-1ubuntu0.1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-3013",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-3013",
      "provider_updated_at": "2025-10-24T04:49:10Z"
    },
    {
      "name": "rust-ripgrep",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [
        "12.1.1-1",
        "13.0.0-2",
        "13.0.0-2ubuntu0.1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-3013",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2021-3013",
      "provider_updated_at": "2025-10-24T04:49:10Z"
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [ripgrep]Unknown

    Source package: [rust-ripgrep]

    Details (2)
    • 13.0.0-4+b2 · amd64 · bookworm

      Not affected

      dsa · rust-ripgrep · debian · bookworm

    • 13.0.0-4+b2 · arm64 · bookworm

      Not affected

      dsa · rust-ripgrep · debian · bookworm

[openSUSE Tumbleweed]

  • [ripgrep]Unknown

    Source package: [ripgrep]

    Details (1)
    • 15.2.0-1.2 · x86_64 · tumbleweed

      Fixed · Fixed: 13.0.0-2.2

      dsa · ripgrep · opensuse · tumbleweed

  • Source package: [ripgrep]

    Details (1)
    • 15.2.0-1.2 · noarch · tumbleweed

      Unknown · Fixed: 13.0.0-2.2

      Version impact unknown

      dsa · ripgrep · opensuse · tumbleweed

  • Source package: [ripgrep]

    Details (1)
    • 15.2.0-1.2 · noarch · tumbleweed

      Unknown · Fixed: 13.0.0-2.2

      Version impact unknown

      dsa · ripgrep · opensuse · tumbleweed

  • Source package: [ripgrep]

    Details (1)
    • 15.2.0-1.2 · noarch · tumbleweed

      Unknown · Fixed: 13.0.0-2.2

      Version impact unknown

      dsa · ripgrep · opensuse · tumbleweed

Observed:

References