Waitman Gobble

irc://irc.y0m4m4.com/ Radio Puke.World Wiki OOO

CVE-2021-21300 Details

Return To CVE Listing for 2021

NameCVE-2021-21300
StatusCandidate
DescriptionGit 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.
ReferencesCONFIRM: https://support.apple.com/kb/HT212320
CONFIRM: https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm
URL: https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm
FEDORA:FEDORA-2021-03e61a6647
URL: https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6S5OTIF4L4/
FEDORA:FEDORA-2021-63fcbd126e
URL: https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOUZTWQLIARX/
FEDORA:FEDORA-2021-ffd0b2108d
URL: https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7EIK6I72ERU/
FULLDISC:20210427 APPLE-SA-2021-04-26-10 Xcode 12.5
URL: http://seclists.org/fulldisclosure/2021/Apr/60
GENTOO:GLSA-202104-01
URL: https://security.gentoo.org/glsa/202104-01
MISC: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
URL: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
MISC: https://git-scm.com/docs/gitattributes#_filter
URL: https://git-scm.com/docs/gitattributes#_filter
MISC: https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592
URL: https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592
MISC: https://lore.kernel.org/git/xmqqim6019yd.fsf@gitster.c.googlers.com/
URL: https://lore.kernel.org/git/xmqqim6019yd.fsf@gitster.c.googlers.com/
MLIST:[oss-security] 20210309 git: malicious repositories can execute remote code while cloning
URL: http://www.openwall.com/lists/oss-security/2021/03/09/3
PhaseAssigned (20201222)
VotesNone (candidate not yet proposed)
Comments


Copyright © 1999–2021, The MITRE Corporation

LICENSE

Submissions: For all materials you submit to the Common Vulnerabilities and Exposures (CVE®), you hereby grant to The MITRE Corporation (MITRE) and all CVE Numbering Authorities (CNAs) a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute such materials and derivative works. Unless required by applicable law or agreed to in writing, you provide such materials on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.

CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.

DISCLAIMERS

ALL DOCUMENTS AND THE INFORMATION CONTAINED THEREIN PROVIDED BY MITRE ARE PROVIDED ON AN "AS IS" BASIS AND THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE MITRE CORPORATION, ITS BOARD OF TRUSTEES, OFFICERS, AGENTS, AND EMPLOYEES, DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION THEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Return To CVE Listing for 2021