BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-21300 in Apple Xcode and 4 more products

High 7.5

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 N...

Affects 5 products from 4 vendors. Facts below cite their sources.

CVSS 3.17.5
EPSS90.8%
EPSS percentile100th
FixSee advisory

Remotely exploitable over the network, high complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Apple Xcode < 12.5
Debian Debian Linux 10.0
Fedoraproject Fedora 32 33 34
Git-Scm Git 2.27.0 2.28.0 ≤ 2.14.2 ≥ 2.17.0, < 2.17.6 ≥ 2.18.0, < 2.18.5 ≥ 2.19.0, < 2.19.6
+9 more≥ 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.29.0, < 2.29.3 ≥ 2.30.0, < 2.30.2

Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Apple Macos

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-21300
BreachSpider IDBS-2021-GLOBAL-080905-H
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2021-03-09
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-59: Improper Link Resolution Before File Access

Software follows symbolic links without verifying the target, allowing read, write, or delete of unintended files.

Related attack patterns (CAPEC)

CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-59

CAPEC-76 Manipulating Web Input to File System Calls via CWE-59

CAPEC-132 Symlink Attack via CWE-59

CAPEC-17 Using Malicious Files via CWE-59

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in Git allows for the execution of arbitrary scripts during the cloning of a specially crafted repository on case-insensitive file systems.

An attacker can create a repository with symbolic links and files using clean/smudge filters such as Git LFS. When this repository is cloned onto a case-insensitive file system, the scripts can be executed, potentially leading to unauthorized code execution.

Questions

What is CVE-2021-21300?

A vulnerability in Git allows for the execution of arbitrary scripts during the cloning of a specially crafted repository on case-insensitive file systems.

What is the CVSS score for CVE-2021-21300?

CVE-2021-21300 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 90.8%.

Is CVE-2021-21300 actively exploited?

No confirmed active exploitation of CVE-2021-21300 as of 2026-09-25.

How do I remediate CVE-2021-21300?

Priority: HIGH. Advisory: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks PSIRT: [email protected]

What systems are affected by CVE-2021-21300?

CVE-2021-21300 affects Apple Xcode; Debian Debian Linux; Fedoraproject Fedora; Git-Scm Git.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Apple","product":"Xcode","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.