Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

CVSS 8.0 · High EPSS 61.88% · P98
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2021-21300

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
malicious repositories can execute remote code while cloning
Source: NVD (National Vulnerability Database)
Vulnerability 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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Source: NVD (National Vulnerability Database)
Vulnerability Type
在文件访问前对链接解析不恰当(链接跟随)
Source: NVD (National Vulnerability Database)
Vulnerability Title
Git 后置链接漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Git是一套免费、开源的分布式版本控制系统。 Git 存在后置链接漏洞,该漏洞允许攻击者利用特别制作的存储库导致just-checked脚本执行而克隆到一个不区分大小写的文件系统。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
gitgit >= 2.14.2, < 2.17.62.17.6 -

II. Public POCs for CVE-2021-21300

#POC DescriptionSource LinkShenlong Link
1Nonehttps://github.com/AlkenePan/CVE-2021-21300POC Details
2Nonehttps://github.com/Faisal78123/CVE-2021-21300POC Details
3Nonehttps://github.com/erranfenech/CVE-2021-21300POC Details
4Nonehttps://github.com/Maskhe/CVE-2021-21300POC Details
5remote code exec for githttps://github.com/1uanWu/CVE-2021-21300POC Details
6Nonehttps://github.com/Kirill89/CVE-2021-21300POC Details
7Nonehttps://github.com/ETOCheney/cve-2021-21300POC Details
8Nonehttps://github.com/fengzhouc/CVE-2021-21300POC Details
9Nonehttps://github.com/danshuizhangyu/CVE-2021-21300POC Details
10Nonehttps://github.com/0ahu/CVE-2021-21300POC Details
11Nonehttps://github.com/Jiang59991/cve-2021-21300POC Details
12Nonehttps://github.com/Jiang59991/cve-2021-21300-plusPOC Details
13Nonehttps://github.com/macilin/CVE-2021-21300POC Details
14the payload of CVE-2021-21300https://github.com/Roboterh/CVE-2021-21300POC Details
15CVE-2021-21300https://github.com/henry861010/Network_Security_NYCUPOC Details
16Nonehttps://github.com/Saboor-Hakimi-23/CVE-2021-21300POC Details
17Nonehttps://github.com/Threekiii/Awesome-POC/blob/master/%E5%85%B6%E4%BB%96%E6%BC%8F%E6%B4%9E/Git%20for%20Visual%20Studio%E8%BF%9C%E7%A8%8B%E6%89%A7%E8%A1%8C%E4%BB%A3%E7%A0%81%E6%BC%8F%E6%B4%9E%20CVE-2021-21300.mdPOC Details
18Nonehttps://github.com/Sizvy/CVE-2021-21300POC Details
19CVE-2021-21300 testhttps://github.com/the-chivalrousZ/cve-2021-21300POC Details
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-21300

登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2021-21300

No comments yet


Leave a comment