Skip to content
Noroxi
CVE-2021-21300· NVD / CVE Program· CNA GitHub_M

malicious repositories can execute remote code while cloning

Git is an open-source distributed revision control system. In affected versions of Git a specially crafted repository that contains symbolic links as well as files using a clean/smudge filter such as Git LFS, may cause just-checked out script to be executed while cloning onto a case-insensitive file system such as NTFS, HFS+ or APFS (i.e. the default file systems on Windows and macOS). Note that clean/smudge filters have to be configured for that. Git for Windows configures Git LFS by default, and is therefore vulnerable. The problem has been patched in the versions published on Tuesday, March 9th, 2021. As a workaound, if symbolic link support is disabled in Git (e.g. via `git config --global core.symlinks false`), the described attack won't work. Likewise, if no clean/smudge filters such as Git LFS are configured globally (i.e. _before_ cloning), the attack is foiled. As always, it is best to avoid cloning repositories from untrusted sources. The earliest impacted version is 2.14.2. The fix versions are: 2.30.1, 2.29.3, 2.28.1, 2.27.1, 2.26.3, 2.25.5, 2.24.4, 2.23.4, 2.22.5, 2.21.4, 2.20.5, 2.19.6, 2.18.5, 2.17.62.17.6.

HighCVSS 7.5 · v3.1—Weaponized Fix available
Published
Mar 9, 2021
Updated
Jun 16, 2026
EPSS
88.5% · 100th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

57

Plan

Add it to your regular patch cycle.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
27 / 30 · 88.5%

CNA vs NVD score

NVD
7.5
CNA · GitHub_M
8.0
0.5 point gap

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
git-scmgit
fedoraprojectfedora
applexcode
applemacos
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • apple xcodebefore 12.5
  • debian debian linux10.0
  • fedoraproject fedora32
  • fedoraproject fedora33
  • fedoraproject fedora34
  • git-scm git2.21.0 and later · before 2.21.4
  • git-scm git2.22.0 and later · before 2.22.5
  • git-scm git2.23.0 and later · before 2.23.4
  • git-scm git2.24.0 and later · before 2.24.4
  • git-scm git2.25.0 and later · before 2.25.5
  • git-scm gitup to 2.14.2 inclusive
  • git-scm git2.29.0 and later · before 2.29.3
  • git-scm git2.30.0 and later · before 2.30.2
  • git-scm git2.26.0 and later · before 2.26.3
  • git-scm git2.17.0 and later · before 2.17.6
  • git-scm git2.18.0 and later · before 2.18.5
  • git-scm git2.19.0 and later · before 2.19.6
  • git-scm git2.20.0 and later · before 2.20.5
  • git-scm git2.27.0
  • git-scm git2.28.0

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • git git

    • >= 2.14.2, < 2.17.62.17.6, >= 2.18.0, < 2.18.5, >= 2.19.0, < 2.19.6, >= 2.20.0, < 2.20.5, >= 2.21.0, < 2.21.4, >= 2.22.0, < 2.22.5, >= 2.23.0, < 2.23.4, >= 2.24.0, < 2.24.4, >= 2.25.0, < 2.25.5, >= 2.26.0, < 2.26.3, >= 2.27.0, < 2.27.1, >= 2.28.0, < 2.28.1 … (+2)affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.10gitfrom 2.17.0 · before 2.22.5-r02.22.5-r0
Alpine:v3.11gitfrom 2.17.0 · before 2.24.4-r02.24.4-r0
Alpine:v3.12gitfrom 2.17.0 · before 2.26.3-r02.26.3-r0
Alpine:v3.13gitfrom 2.17.0 · before 2.30.2-r02.30.2-r0
Debian:10gitbefore 1:2.20.1-2+deb10u41:2.20.1-2+deb10u4
Debian:12gitbefore 1:2.30.2-11:2.30.2-1
openSUSE:Leap 15.2gitbefore 2.26.2-lp152.2.6.12.26.2-lp152.2.6.1
openSUSE:Leap 15.3gitbefore 2.31.1-10.3.12.31.1-10.3.1
openSUSE:Tumbleweedgit-annexbefore 8.20210903-1.28.20210903-1.2
SUSE:HPE Helion OpenStack 8gitbefore 2.26.2-27.43.12.26.2-27.43.1
SUSE:Linux Enterprise Module for Basesystem 15 SP2gitbefore 2.26.2-3.31.12.26.2-3.31.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3gitbefore 2.31.1-10.3.12.31.1-10.3.1

Other highest-scoring records for the same primary product.

  • CVE-2018-17456Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows r
    68This week
  • CVE-2025-48384Git allows arbitrary code execution through broken config quotingKEV
    63This week
  • CVE-2017-1000117A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL can result in any prog
    58Plan
  • CVE-2022-23521gitattributes parsing integer overflow in git
    56Plan
  • CVE-2022-41903Integer overflow in `git archive`, `git log --format` leading to RCE in git
    52Plan
  • CVE-2023-25652"git apply --reject" partially-controlled arbitrary file write
    46Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Alpine:git2.22.5-r0 · Alpine:v3.10Package registry (OSV)
Debian:git1:2.30.2-1 · Debian:12Package registry (OSV)
openSUSE:git2.26.2-lp152.2.6.1 · openSUSE:Leap 15.2Package registry (OSV)
openSUSE:git-annex8.20210903-1.2 · openSUSE:TumbleweedPackage registry (OSV)
SUSE:git2.26.2-27.43.1 · SUSE:HPE Helion OpenStack 8Package registry (OSV)

Exploit status

Weaponized

A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.

Evidence

  • Metasploit module ×1
  • Proof-of-concept repository on GitHub ×14

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Metasploit moduleexploit/multi/http/git_lfs_clone_command_execGit LFS Clone Command Execexploit2021-04-26
Proof-of-concept repository on GitHubstars:02021-03-10
Proof-of-concept repository on GitHubstars:02021-03-10
Proof-of-concept repository on GitHubstars:02021-03-10
Proof-of-concept repository on GitHubstars:12021-03-11
Proof-of-concept repository on GitHubstars:02021-03-11
Proof-of-concept repository on GitHubstars:02021-03-11
Proof-of-concept repository on GitHubstars:02021-03-15
Proof-of-concept repository on GitHubstars:02021-04-06
Proof-of-concept repository on GitHubstars:02021-04-07
Proof-of-concept repository on GitHubstars:02022-08-13
Proof-of-concept repository on GitHubstars:02023-05-04

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoCsame day
  3. Metasploit+47 d
  4. TodaySep 29, 2026+2030 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

nvd-primary

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records