nday
CVE-2021-21300 GHSA-8prw-h3cq-mghm

malicious repositories can execute remote code while cloning

git / git

に公開されました。nday はまだ修正の根拠を取得していません。修正がないという意味ではありません。PoC ソース 4 件中 1 件(metasploit)に掲載されています。CISA KEV には現時点で未掲載です。

tags weakness typelink following accessnetworkno authentication required exploitationMetasploit
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

link following
CWE-59, stated by the CNA GitHub_M、NVD's analysts、NVD, republishing [email protected]
network
AV:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N (CVSS 3.1) from the CNA GitHub_M
no authentication required
PR:N in CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N (CVSS 3.1) from the CNA GitHub_M
Metasploit
Metasploit modules exploit/multi/http/git_lfs_clone_command_exec
現在の段階
POC
公開日時
CVSS 基本値
8.0 HIGH v3.1

ライフサイクル

横軸は UTC。点=分単位、幅広の帯=日付のみ、白抜き=不明または推定。
日時不明
DIS公開
2021-03-09T00:00Z
PAT修正
記録なし
ANA解析
記録なし
POCPoC
metasploit
ITW悪用
記録なし
KEVKEV
記録なし

概要

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:H
High: success depends on conditions outside the attacker's control, such as gathering details of the target or winning a race
Privileges required PR:N
None: no account or authorization needed
User interaction UI:R
Required: a user must do something, such as open a file or click a link

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

CVSS 3.1 vector from the CVE record, scored by the CNA GitHub_M.

イベント履歴

+DIS公開

GitHub_M が CVE レコードを公開。CVSS 基本値 8(重要)。

出典 cvelist · nday が に一括取り込み · 生データ
{
  "id": 62893,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2021-21300",
  "occurred_at": "2021-03-09T00:00:00Z",
  "observed_at": "2026-11-12T20:03:12.555163Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N",
      "version": "3.1",
      "base_score": 8,
      "base_severity": "HIGH"
    },
    "state": "PUBLISHED",
    "date_published": "2021-03-09T00:00:00.000Z",
    "assigner_short_name": "GitHub_M"
  }
}
日時不明ソースに時刻なし
+POCPoC 公開

Metasploit がモジュール exploit/multi/http/git_lfs_clone_command_exec(Git LFS Clone Command Exec)を収録。モジュールの公開日時はソースに記載なし。

出典 metasploit exploit/multi/http/git_lfs_clone_command_exec · nday が に一括取り込み · 生データ
{
  "id": 51184,
  "type": "poc_published",
  "source": "metasploit",
  "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/git_lfs_clone_command_exec.rb",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:24:51.477477Z",
  "is_backfill": true,
  "dedupe_key": "exploit/multi/http/git_lfs_clone_command_exec",
  "detail": {
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/git_lfs_clone_command_exec.rb",
    "kind": "msf_module",
    "path": "/modules/exploits/multi/http/git_lfs_clone_command_exec.rb",
    "rank": 600,
    "check": false,
    "title": "Git LFS Clone Command Exec",
    "cve_ids": [
      "CVE-2021-21300"
    ],
    "fullname": "exploit/multi/http/git_lfs_clone_command_exec",
    "rank_name": "excellent",
    "confidence": "curated",
    "module_type": "exploit",
    "module_last_modified": "2025-12-17 16:12:31 +0000",
    "vuln_disclosure_date": "2021-04-26"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

研究者の投稿

過去 7 日間に 0 人の研究者が言及

リストの研究者が X でこの CVE に触れた投稿です。原文のまま表示し、nday は検証していません。

リストの研究者が X でこの CVE に触れた投稿は、まだ収集していません。

Discussion

0 comments

No comments yet.