CVE-2021-21300 | malicious repositories can execute remote code while cloning

Exp

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.

公開: 2021-03-09 最終更新: 2026-06-16 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2021-21300 は悪用リスクが高い(86.9/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 88.64%、100 パーセンタイル) 根拠: 公開エクスプロイトが 2 件参照されています(Exploit-DB)。 直近 1 日で EPSS が +30.36% 上昇。悪用への関心が高まっている可能性があります。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2021-21300 に関する公開 exploit 参照(Exploit-DB)

EDB-ID ソース 種別 公開 リンク
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

CVE-2021-21300 の EPSS(Exploit Prediction Scoring System)スコア

EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。

# 日付 旧 EPSS スコア 新 EPSS スコア Δ(新 − 旧)
1 2026-06-15 58.28% 88.64% +30.36%
2 2026-06-08 61.88% 58.28% -3.60%
3 2026-05-10 61.88%

EPSS の全履歴 (全 84 件)

CVE-2021-21300 の CVSS(Common Vulnerability Scoring System)指標

この CVE の CVSS 指標。

ベーススコア バージョン 深刻度 ベクトル 悪用しやすさ 影響 スコアの出典
8.0 3.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:R)
インストールの許可、設定変更、悪意あるファイルの実行など、人の一度の判断がトリガーになる。
スコープ (S:C)
脆弱箇所を足がかりに、別コンポーネントや別権限域まで影響が広がりうる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:N)
業務継続に支障が出るレベルの停止や劣化は想定されない。
1.6 5.8 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H クリックして展開
攻撃ベクター (AV:N)
インターネットなど、ルーティングされたネットワーク越しに遠隔から悪用しうる。端末の前にいる必要はない。
攻撃の複雑さ (AC:H)
到達できても、タイミング・負荷・周辺設定など、揃わないと成功しない局面が多い。
必要な権限 (PR:N)
事前のログインや昇格は不要で、匿名アクセスのまま踏み台にしうる。
ユーザーの関与 (UI:R)
インストールの許可、設定変更、悪意あるファイルの実行など、人の一度の判断がトリガーになる。
スコープ (S:U)
影響は脆弱コンポーネントと同一のセキュリティ権限・信頼境界の内側に収まる。
機密性への影響 (C:H)
広範な機微データの読み取りや持ち出しが現実的。
完全性への影響 (I:H)
権限の奪取や広範なログ改竄など、システムの信頼根拠を揺るがす改ざんが現実的。
可用性への影響 (A:H)
長時間のサービス停止、データ損壊による復旧不能に近い状態など、利用者に著しい不便を与えうる。
1.6 5.9 [email protected]
5.1 2.0 MEDIUM
AV:N/AC:H/Au:N/C:P/I:P/A:P クリックして展開
アクセス経路 (AV:N)
ルーティング可能なネットワーク越しに、遠隔から到達・悪用しうる。
アクセスの複雑さ (AC:H)
ごく限られた構成・タイミングでしか成立しない。
認証 (AU:N)
認証を経ずに攻撃を完結できる。
機密性への影響 (C:P)
機密性は部分的に損なわれる。
完全性への影響 (I:P)
完全性は部分的に損なわれる。
可用性への影響 (A:P)
可用性は部分的に損なわれる。
4.9 6.4 [email protected]

CVE-2021-21300 の弱点分類(列挙)

CVE-2021-21300 の OS トラッカー

vendor priority summary link
alpine high CVE-2021-21300: 1 source package rows (git); 41 state rows across 10 repos (3.10-main, 3.11-main, 3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 11, open 30. https://security.alpinelinux.org/vuln/CVE-2021-21300
debian not yet assigned CVE-2021-21300 not yet assigned priority: Debian including 1 source packages (git), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2021-21300
gentoo normal CVE-2021-21300: 1 GLSA(s) (202104-01), 1 atom(s) (dev-vcs/git); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-21300
redhat medium https://access.redhat.com/security/cve/CVE-2021-21300
suse high CVE-2021-21300 severity important: SUSE including 148 source package names (1.16-13.3:git-core-2.31.1-10.3.1, 1.17-12.3:git-core-2.31.1-10.3.1, …), 625 product×package rows across 77 product lines (Container bci/golang, Container bci/node, … (77 product lines)): Fixed 529, Known Not Affected 96. https://www.suse.com/security/cve/CVE-2021-21300/
ubuntu medium CVE-2021-21300 medium priority: Ubuntu including 1 source packages (git), 6 status rows across 6 suites (bionic, focal, groovy, trusty, upstream, xenial): released 4, DNE 1, needs-triage 1. https://ubuntu.com/security/CVE-2021-21300

CVE-2021-21300 の影響を受けるソフトウェア/構成

ベンダー 製品 バージョン 生の CPE
git-scm git <= 2.14.2 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.17.0, < 2.17.6 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.18.0, < 2.18.5 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.19.0, < 2.19.6 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.20.0, < 2.20.5 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.21.0, < 2.21.4 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.22.0, < 2.22.5 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.23.0, < 2.23.4 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.24.0, < 2.24.4 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.25.0, < 2.25.5 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.26.0, < 2.26.3 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.29.0, < 2.29.3 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git >= 2.30.0, < 2.30.2 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm git 2.27.0 cpe:2.3:a:git-scm:git:2.27.0:*:*:*:*:*:*:*
git-scm git 2.28.0 cpe:2.3:a:git-scm:git:2.28.0:*:*:*:*:*:*:*
fedoraproject fedora 32 cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
fedoraproject fedora 33 cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
apple xcode < 12.5 cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

CVE-2021-21300 の参考情報

URL タグ
http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.html Exploit Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2021/Apr/60 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/03/09/3 Exploit Mailing List Third 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 Patch Third 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 List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6S5OTIF4L4/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOUZTWQLIARX/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7EIK6I72ERU/
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
cvelogic Threat Intelligence