CVE-2021-21300

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

Risk Information

Base Score
8.7
MODERATE
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
EPSS Score
Exploitation Probability
67.162

Associated Vulnerability

VulnerabilityOS Platform
Vulnerability CVE-2021-21300 are affected in Git (x64) 2.30.1Windows
Vulnerability CVE-2021-21300 are affected in Git 2.30.1Windows
Vulnerabilities CVE-2017-15298,CVE-2019-19604,CVE-2021-21300 are affected in Git (X64) 2.2.0--Windows
Vulnerabilities CVE-2017-15298,CVE-2019-19604,CVE-2021-21300 are affected in Git 2.2.0--Windows
Vulnerabilities CVE-2019-1348,CVE-2019-19604,CVE-2021-21300 are affected in Git (X64) 2.21.0--Windows
Vulnerabilities CVE-2019-1348,CVE-2019-19604,CVE-2021-21300 are affected in Git 2.21.0--Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.17.5Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.18.0--Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.19.0--Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.20.4Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.22.4Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.23.3Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.24.3Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.25.2Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.26.0-rc2Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.27.0Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.28.0Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.29.2Windows
Vulnerabilities CVE-2021-21300 are affected in Git (X64) 2.30.1Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.17.5Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.18.0--Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.19.0--Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.20.4Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.22.4Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.23.3Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.24.3Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.25.2Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.26.0-rc2Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.27.0Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.28.0Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.29.2Windows
Vulnerabilities CVE-2021-21300 are affected in Git 2.30.1Windows
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-core-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-core-debuginfo-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-cvs-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-daemon-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-daemon-debuginfo-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-debugsource-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-email-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-gui-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-svn-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) git-web-2.26.2-27.43.1.x86_64.rpmLinux
SUSE-SU-2021:0756-1(SUSE Linux Enterprise Server 12-SP5 ) gitk-2.26.2-27.43.1.x86_64.rpmLinux
fast, scalable, distributed revision control system (USN-4761-1) git_2.17.1-1ubuntu0.8_i386.debLinux
fast, scalable, distributed revision control system (USN-4761-1) git_2.17.1-1ubuntu0.8_amd64.debLinux
fast, scalable, distributed revision control system (USN-4761-1) git_2.25.1-1ubuntu3.1_i386.debLinux
fast, scalable, distributed revision control system (USN-4761-1) git_2.25.1-1ubuntu3.1_amd64.debLinux
fast, scalable, distributed revision control system (USN-4761-1) git_2.27.0-1ubuntu1.1_i386.debLinux
fast, scalable, distributed revision control system (USN-4761-1) git_2.27.0-1ubuntu1.1_amd64.debLinux
fast, scalable, distributed revision control system (USN-4761-1) git_2.7.4-0ubuntu1.10_i386.debLinux
fast, scalable, distributed revision control system (USN-4761-1) git_2.7.4-0ubuntu1.10_amd64.debLinux
SUSE-SU-2021:0757-1(SUSE Linux Enterprise Module for Development Tools 15-SP3 ) git-svn-debuginfo-2.26.2-3.31.1.x86_64_15_SP3.rpmLinux

Patch Details

Click to see the patches provided by ManageEngine for this CVE
Patch IDPatch Description
PATCH-342450Git (x64) (2.47.0.2)
PATCH-342449Git (2.47.0.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-350752Git (2.50.1)
PATCH-352878Git (x64) (2.51.2)
PATCH-350752Git (2.50.1)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-352878Git (x64) (2.51.2)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)
PATCH-350752Git (2.50.1)

References

https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234