CVE-2021-21237
CVSS V2 Medium 4.6
CVSS V3 High 7.8
Description
Git LFS is a command line extension for managing large files with Git. On Windows, if Git LFS operates on a malicious repository with a git.bat or git.exe file in the current directory, that program would be executed, permitting the attacker to execute arbitrary code. This does not affect Unix systems. This is the result of an incomplete fix for CVE-2020-27955. This issue occurs because on Windows, Go includes (and prefers) the current directory when the name of a command run does not contain a directory separator. Other than avoiding untrusted repositories or using a different operating system, there is no workaround. This is fixed in v2.13.2.
Overview
- CVE ID
- CVE-2021-21237
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-01-15T18:15:15
- Last Modified Date
- 2021-01-29T22:18:12
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:*:*:*:*:*:*:*:* | 1 | OR | 2.13.2 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:L/AC:L/Au:N/C:P/I:P/A:P
- Access Vector
- LOCAL
- Access Compatibility
- LOW
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 4.6
- Severity
- MEDIUM
- Exploitability Score
- 3.9
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- LOCAL
- Attack Compatibility
- LOW
- Privileges Required
- LOW
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 7.8
- Base Severity
- HIGH
- Exploitability Score
- 1.8
- Impact Score
- 5.9
References
Reference URL | Reference Tags |
---|---|
https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5 | Third Party Advisory |
https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a | Patch Third Party Advisory |
https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2 | Third Party Advisory |
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955 | Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-21237 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21237 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:25:25 | Added to TrackCVE | |||
2022-12-05 20:17:24 | 2021-01-15T18:15Z | 2021-01-15T18:15:15 | CVE Published Date | updated |
2022-12-05 20:17:24 | 2021-01-29T22:18:12 | CVE Modified Date | updated | |
2022-12-05 20:17:25 | Analyzed | Vulnerability Status | updated |