CVE-2022-24765
CVSS V2 Medium 6.9
CVSS V3 High 7.8
Description
Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\.git\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\Users` if the user profile is located in `C:\Users\my-user-name`.
Overview
- CVE ID
- CVE-2022-24765
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2022-04-12T18:15:09
- Last Modified Date
- 2023-02-27T14:27:16
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
AND | ||||
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* | 1 | OR | 2.35.2 | |
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* | 0 | OR | ||
AND | ||||
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 1 | OR | ||
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 1 | OR | ||
AND | ||||
cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:* | 1 | OR | 13.4 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:L/AC:M/Au:N/C:C/I:C/A:C
- Access Vector
- LOCAL
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- COMPLETE
- Integrity Impact
- COMPLETE
- Availability Impact
- COMPLETE
- Base Score
- 6.9
- Severity
- MEDIUM
- Exploitability Score
- 3.4
- Impact Score
- 10
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
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2022-24765 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24765 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-08 06:06:45 | Added to TrackCVE | |||
2022-12-14 02:13:18 | 2022-12-14T01:15:10 | CVE Modified Date | updated | |
2022-12-14 02:13:18 | Analyzed | Modified | Vulnerability Status | updated |
2022-12-14 02:13:20 | References | updated | ||
2022-12-19 18:14:55 | Modified | Undergoing Analysis | Vulnerability Status | updated |
2023-01-27 11:15:35 | 2023-01-27T11:15:08 | CVE Modified Date | updated | |
2023-01-27 11:15:35 | References | updated | ||
2023-01-29 05:13:36 | 2023-01-29T03:15:08 | CVE Modified Date | updated | |
2023-01-29 05:13:36 | References | updated | ||
2023-01-30 03:15:55 | 2023-01-30T03:15:08 | CVE Modified Date | updated | |
2023-01-30 03:15:56 | References | updated | ||
2023-01-31 04:13:58 | 2023-01-31T03:15:09 | CVE Modified Date | updated | |
2023-01-31 04:13:59 | References | updated | ||
2023-02-27 15:14:44 | 2023-02-27T14:27:16 | CVE Modified Date | updated | |
2023-02-27 15:14:44 | Undergoing Analysis | Analyzed | Vulnerability Status | updated |