一、 漏洞 CVE-2021-21300 基础信息
漏洞信息
                                        # 恶意存储库可以在克隆时执行远程代码

N/A
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
malicious repositories can execute remote code while cloning
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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.
来源:美国国家漏洞数据库 NVD
CVSS信息
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
来源:美国国家漏洞数据库 NVD
漏洞类别
在文件访问前对链接解析不恰当(链接跟随)
来源:美国国家漏洞数据库 NVD
漏洞标题
Git 后置链接漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Git是一套免费、开源的分布式版本控制系统。 Git 存在后置链接漏洞,该漏洞允许攻击者利用特别制作的存储库导致just-checked脚本执行而克隆到一个不区分大小写的文件系统。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
后置链接
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2021-21300 的公开POC
# POC 描述 源链接 神龙链接
1 None https://github.com/AlkenePan/CVE-2021-21300 POC详情
2 None https://github.com/Faisal78123/CVE-2021-21300 POC详情
3 None https://github.com/erranfenech/CVE-2021-21300 POC详情
4 None https://github.com/Maskhe/CVE-2021-21300 POC详情
5 remote code exec for git https://github.com/1uanWu/CVE-2021-21300 POC详情
6 None https://github.com/Kirill89/CVE-2021-21300 POC详情
7 None https://github.com/ETOCheney/cve-2021-21300 POC详情
8 None https://github.com/fengzhouc/CVE-2021-21300 POC详情
9 None https://github.com/danshuizhangyu/CVE-2021-21300 POC详情
10 None https://github.com/0ahu/CVE-2021-21300 POC详情
11 None https://github.com/Jiang59991/cve-2021-21300 POC详情
12 None https://github.com/Jiang59991/cve-2021-21300-plus POC详情
13 None https://github.com/macilin/CVE-2021-21300 POC详情
14 the payload of CVE-2021-21300 https://github.com/Roboterh/CVE-2021-21300 POC详情
15 CVE-2021-21300 https://github.com/henry861010/Network_Security_NYCU POC详情
16 None https://github.com/Saboor-Hakimi-23/CVE-2021-21300 POC详情
17 None https://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.md POC详情
三、漏洞 CVE-2021-21300 的情报信息