Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2021-21300

Summary
Assigner-GitHub_M
Assigner Org ID-a0819718-46f1-4df5-94e2-005712e83aaa
Published At-09 Mar, 2021 | 00:00
Updated At-03 Aug, 2024 | 18:09
Rejected At-
Credits

malicious repositories can execute remote code while cloning

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:GitHub_M
Assigner Org ID:a0819718-46f1-4df5-94e2-005712e83aaa
Published At:09 Mar, 2021 | 00:00
Updated At:03 Aug, 2024 | 18:09
Rejected At:
▼CVE Numbering Authority (CNA)
malicious repositories can execute remote code while cloning

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.

Affected Products
Vendor
git
Product
git
Versions
Affected
  • >= 2.14.2, < 2.17.62.17.6
  • >= 2.18.0, < 2.18.5
  • >= 2.19.0, < 2.19.6
  • >= 2.20.0, < 2.20.5
  • >= 2.21.0, < 2.21.4
  • >= 2.22.0, < 2.22.5
  • >= 2.23.0, < 2.23.4
  • >= 2.24.0, < 2.24.4
  • >= 2.25.0, < 2.25.5
  • >= 2.26.0, < 2.26.3
  • >= 2.27.0, < 2.27.1
  • >= 2.28.0, < 2.28.1
  • >= 2.29.0, < 2.29.3
  • >= 2.30.0, < 2.30.1
Problem Types
TypeCWE IDDescription
CWECWE-59CWE-59 Improper Link Resolution Before File Access ('Link Following')
Type: CWE
CWE ID: CWE-59
Description: CWE-59 Improper Link Resolution Before File Access ('Link Following')
Metrics
VersionBase scoreBase severityVector
3.18.0HIGH
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.0
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm
N/A
https://lore.kernel.org/git/xmqqim6019yd.fsf%40gitster.c.googlers.com/
N/A
https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
N/A
https://git-scm.com/docs/gitattributes#_filter
N/A
https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592
N/A
http://www.openwall.com/lists/oss-security/2021/03/09/3
mailing-list
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOUZTWQLIARX/
vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7EIK6I72ERU/
vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6S5OTIF4L4/
vendor-advisory
https://support.apple.com/kb/HT212320
N/A
http://seclists.org/fulldisclosure/2021/Apr/60
mailing-list
https://security.gentoo.org/glsa/202104-01
vendor-advisory
http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.html
N/A
https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html
mailing-list
Hyperlink: https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm
Resource: N/A
Hyperlink: https://lore.kernel.org/git/xmqqim6019yd.fsf%40gitster.c.googlers.com/
Resource: N/A
Hyperlink: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
Resource: N/A
Hyperlink: https://git-scm.com/docs/gitattributes#_filter
Resource: N/A
Hyperlink: https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592
Resource: N/A
Hyperlink: http://www.openwall.com/lists/oss-security/2021/03/09/3
Resource:
mailing-list
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOUZTWQLIARX/
Resource:
vendor-advisory
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7EIK6I72ERU/
Resource:
vendor-advisory
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6S5OTIF4L4/
Resource:
vendor-advisory
Hyperlink: https://support.apple.com/kb/HT212320
Resource: N/A
Hyperlink: http://seclists.org/fulldisclosure/2021/Apr/60
Resource:
mailing-list
Hyperlink: https://security.gentoo.org/glsa/202104-01
Resource:
vendor-advisory
Hyperlink: http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.html
Resource: N/A
Hyperlink: https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html
Resource:
mailing-list
▼Authorized Data Publishers (ADP)
CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm
x_transferred
https://lore.kernel.org/git/xmqqim6019yd.fsf%40gitster.c.googlers.com/
x_transferred
https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
x_transferred
https://git-scm.com/docs/gitattributes#_filter
x_transferred
https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592
x_transferred
http://www.openwall.com/lists/oss-security/2021/03/09/3
mailing-list
x_transferred
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOUZTWQLIARX/
vendor-advisory
x_transferred
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7EIK6I72ERU/
vendor-advisory
x_transferred
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6S5OTIF4L4/
vendor-advisory
x_transferred
https://support.apple.com/kb/HT212320
x_transferred
http://seclists.org/fulldisclosure/2021/Apr/60
mailing-list
x_transferred
https://security.gentoo.org/glsa/202104-01
vendor-advisory
x_transferred
http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.html
x_transferred
https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html
mailing-list
x_transferred
Hyperlink: https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm
Resource:
x_transferred
Hyperlink: https://lore.kernel.org/git/xmqqim6019yd.fsf%40gitster.c.googlers.com/
Resource:
x_transferred
Hyperlink: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
Resource:
x_transferred
Hyperlink: https://git-scm.com/docs/gitattributes#_filter
Resource:
x_transferred
Hyperlink: https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592
Resource:
x_transferred
Hyperlink: http://www.openwall.com/lists/oss-security/2021/03/09/3
Resource:
mailing-list
x_transferred
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOUZTWQLIARX/
Resource:
vendor-advisory
x_transferred
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7EIK6I72ERU/
Resource:
vendor-advisory
x_transferred
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6S5OTIF4L4/
Resource:
vendor-advisory
x_transferred
Hyperlink: https://support.apple.com/kb/HT212320
Resource:
x_transferred
Hyperlink: http://seclists.org/fulldisclosure/2021/Apr/60
Resource:
mailing-list
x_transferred
Hyperlink: https://security.gentoo.org/glsa/202104-01
Resource:
vendor-advisory
x_transferred
Hyperlink: http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.html
Resource:
x_transferred
Hyperlink: https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html
Resource:
mailing-list
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security-advisories@github.com
Published At:09 Mar, 2021 | 20:15
Updated At:07 Nov, 2023 | 03:29

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.17.5HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Secondary3.18.0HIGH
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Primary2.05.1MEDIUM
AV:N/AC:H/Au:N/C:P/I:P/A:P
Type: Primary
Version: 3.1
Base score: 7.5
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Type: Secondary
Version: 3.1
Base score: 8.0
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Type: Primary
Version: 2.0
Base score: 5.1
Base severity: MEDIUM
Vector:
AV:N/AC:H/Au:N/C:P/I:P/A:P
CPE Matches

git-scm
git-scm
>>git>>Versions up to 2.14.2(inclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.17.0(inclusive) to 2.17.6(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.18.0(inclusive) to 2.18.5(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.19.0(inclusive) to 2.19.6(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.20.0(inclusive) to 2.20.5(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.21.0(inclusive) to 2.21.4(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.22.0(inclusive) to 2.22.5(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.23.0(inclusive) to 2.23.4(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.24.0(inclusive) to 2.24.4(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.25.0(inclusive) to 2.25.5(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.26.0(inclusive) to 2.26.3(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.29.0(inclusive) to 2.29.3(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>Versions from 2.30.0(inclusive) to 2.30.2(exclusive)
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>2.27.0
cpe:2.3:a:git-scm:git:2.27.0:*:*:*:*:*:*:*
git-scm
git-scm
>>git>>2.28.0
cpe:2.3:a:git-scm:git:2.28.0:*:*:*:*:*:*:*
Fedora Project
fedoraproject
>>fedora>>32
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
Fedora Project
fedoraproject
>>fedora>>33
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
Fedora Project
fedoraproject
>>fedora>>34
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
Apple Inc.
apple
>>macos>>Versions from 11.0(inclusive)
cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
Apple Inc.
apple
>>xcode>>Versions before 12.5(exclusive)
cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:*
Debian GNU/Linux
debian
>>debian_linux>>10.0
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-59Primarysecurity-advisories@github.com
CWE-59Secondarynvd@nist.gov
CWE ID: CWE-59
Type: Primary
Source: security-advisories@github.com
CWE ID: CWE-59
Type: Secondary
Source: nvd@nist.gov
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.htmlsecurity-advisories@github.com
Exploit
Third Party Advisory
VDB Entry
http://seclists.org/fulldisclosure/2021/Apr/60security-advisories@github.com
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/03/09/3security-advisories@github.com
Exploit
Mailing List
Third Party Advisory
https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinkssecurity-advisories@github.com
Vendor Advisory
https://git-scm.com/docs/gitattributes#_filtersecurity-advisories@github.com
Vendor Advisory
https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592security-advisories@github.com
Patch
Third Party Advisory
https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghmsecurity-advisories@github.com
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/10/msg00014.htmlsecurity-advisories@github.com
Mailing List
Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6S5OTIF4L4/security-advisories@github.com
N/A
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOUZTWQLIARX/security-advisories@github.com
N/A
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7EIK6I72ERU/security-advisories@github.com
N/A
https://lore.kernel.org/git/xmqqim6019yd.fsf%40gitster.c.googlers.com/security-advisories@github.com
N/A
https://security.gentoo.org/glsa/202104-01security-advisories@github.com
Third Party Advisory
https://support.apple.com/kb/HT212320security-advisories@github.com
Third Party Advisory
Hyperlink: http://packetstormsecurity.com/files/163978/Git-LFS-Clone-Command-Execution.html
Source: security-advisories@github.com
Resource:
Exploit
Third Party Advisory
VDB Entry
Hyperlink: http://seclists.org/fulldisclosure/2021/Apr/60
Source: security-advisories@github.com
Resource:
Mailing List
Third Party Advisory
Hyperlink: http://www.openwall.com/lists/oss-security/2021/03/09/3
Source: security-advisories@github.com
Resource:
Exploit
Mailing List
Third Party Advisory
Hyperlink: https://git-scm.com/docs/git-config#Documentation/git-config.txt-coresymlinks
Source: security-advisories@github.com
Resource:
Vendor Advisory
Hyperlink: https://git-scm.com/docs/gitattributes#_filter
Source: security-advisories@github.com
Resource:
Vendor Advisory
Hyperlink: https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592
Source: security-advisories@github.com
Resource:
Patch
Third Party Advisory
Hyperlink: https://github.com/git/git/security/advisories/GHSA-8prw-h3cq-mghm
Source: security-advisories@github.com
Resource:
Third Party Advisory
Hyperlink: https://lists.debian.org/debian-lts-announce/2022/10/msg00014.html
Source: security-advisories@github.com
Resource:
Mailing List
Third Party Advisory
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BBPNGLQSYJHLZZ37BO42YY6S5OTIF4L4/
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LCLJJLKKMS5WRFO6C475AOUZTWQLIARX/
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LMXX2POK5X576BSDWSXGU7EIK6I72ERU/
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://lore.kernel.org/git/xmqqim6019yd.fsf%40gitster.c.googlers.com/
Source: security-advisories@github.com
Resource: N/A
Hyperlink: https://security.gentoo.org/glsa/202104-01
Source: security-advisories@github.com
Resource:
Third Party Advisory
Hyperlink: https://support.apple.com/kb/HT212320
Source: security-advisories@github.com
Resource:
Third Party Advisory

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found