← Vulnerability feed

Vulnerability record · CVE-2021-21300 · published 9 March 2021

CVE-2021-21300: Git clone symlink and clean/smudge filter command execution

Git Scm · Git

Git mishandles symbolic links combined with clean/smudge filters such as Git LFS when cloning onto case-insensitive file systems (NTFS, HFS+, APFS). A crafted repository can cause a just-checked-out script to execute during clone, and Git for Windows enables Git LFS by default, making it vulnerable out of the box.

7.5 CVSS 3.1 High EPSS 89% · top 0.2% CWE-59 · Link following
7.5CVSS 3.1 base score, v2 5.1
89%EPSS exploitation probability, 30 days
NoNot in CISA KEV
4Affected product versions listed by NVD
28References, 4 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityRemote code execution on clone with a very high EPSS score and public exploit references, though it requires user interaction and specific file system and filter configuration.

What it is

Git mishandles symbolic links combined with clean/smudge filters such as Git LFS when cloning onto case-insensitive file systems (NTFS, HFS+, APFS). A crafted repository can cause a just-checked-out script to execute during clone, and Git for Windows enables Git LFS by default, making it vulnerable out of the box.

Impact

An attacker who convinces a victim to clone a malicious repository can execute arbitrary code with the victim's privileges on the cloning machine.

Attack surface

Reached over the network by cloning a crafted repository; no authentication is required, but user interaction (the victim performing the clone) is needed, and the target must use a case-insensitive file system with a clean/smudge filter configured.

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.88533, 99.765th percentile) and multiple references are tagged Exploit, indicating public exploit material exists.

What to do

  • Upgrade Git to a fixed release (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, or 2.17.6) or later.
  • Set core.symlinks to false globally to disable symbolic link support and block the attack path.
  • Avoid configuring clean/smudge filters such as Git LFS globally before cloning untrusted repositories.
  • Do not clone repositories from untrusted sources.
  • Apply vendor updates for Git for Windows, Xcode, Fedora, and Debian packages that bundle affected Git versions.

Detection

  • Monitor clone operations that create symbolic links alongside filter-process activity, especially on Windows and macOS endpoints.
  • Alert on unexpected child processes spawned by git or git-lfs during clone or checkout.
  • Audit global Git configuration for core.symlinks and filter settings that enable the vulnerable path.
  • Review repository contents for symlinks paired with filter attributes in .gitattributes before cloning.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.html ExploitThird Party AdvisoryVDB Entry
http://seclists.org/fulldisclosure/2021/Apr/60 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/03/09/3 ExploitMailing ListThird Party Advisory
https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks Vendor Advisory
https://git-scm.com/docs/gitattributes#_filter Vendor Advisory
https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592 PatchThird Party Advisory
https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOU
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7E
https://lore.kernel.org/git/xmqqim6019yd.fsf%40gitster.c.googlers.com/
https://security.gentoo.org/glsa/202104-01 Third Party Advisory
https://support.apple.com/kb/HT212320 Third Party Advisory
http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.html ExploitThird Party AdvisoryVDB Entry
http://seclists.org/fulldisclosure/2021/Apr/60 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/03/09/3 ExploitMailing ListThird Party Advisory
https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks Vendor Advisory
https://git-scm.com/docs/gitattributes#_filter Vendor Advisory
https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592 PatchThird Party Advisory
https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOU
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7E
https://lore.kernel.org/git/xmqqim6019yd.fsf%40gitster.c.googlers.com/
https://security.gentoo.org/glsa/202104-01 Third Party Advisory
https://support.apple.com/kb/HT212320 Third Party Advisory

Track CVE-2021-21300 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2021-21300), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.