You are viewing this page in an unauthorized frame window.
This is a potential security issue, you are being redirected to
https://nvd.nist.gov
An official website of the United States government
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock () or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
Description
GitHub: Git for Windows' uninstaller vulnerable to DLL hijacking when run under the SYSTEM user account.
Metrics
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected].
OR
*cpe:2.3:a:microsoft:visual_studio_2017:*:*:*:*:*:*:*:* versions from (including) 15.0 up to (excluding) 15.9.46
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.0 up to (excluding) 16.7.27
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.8 up to (excluding) 16.9.19
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.10 up to (excluding) 16.11.12
*cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* versions from (including) 17.0.0 up to (excluding) 17.0.8
*cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* versions from (including) 17.1.0 up to (excluding) 17.1.4
OR
*cpe:2.3:a:microsoft:visual_studio_2017:*:*:*:*:*:*:*:* versions from (including) 15.0 up to (excluding) 15.9.46
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.0 up to (excluding) 16.7.27
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.8 up to (excluding) 16.9.19
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.10 up to (excluding) 16.11.12
*cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* versions from (including) 17.0 up to (excluding) 17.0.8
*cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* versions from (including) 17.1.0 up to (excluding) 17.1.4
Reanalysis by NIST8/02/2023 3:28:28 PM
Action
Type
Old Value
New Value
Added
CPE Configuration
OR
*cpe:2.3:a:git_for_windows_project:git_for_windows:*:*:*:*:*:*:*:* versions up to (excluding) 2.35.2
Initial Analysis by NIST4/21/2022 10:05:38 AM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Added
CVSS V2
NIST (AV:L/AC:M/Au:N/C:C/I:C/A:C)
Added
CWE
NIST CWE-427
Added
CPE Configuration
OR
*cpe:2.3:a:microsoft:visual_studio_2017:*:*:*:*:*:*:*:* versions from (including) 15.0 up to (excluding) 15.9.46
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.0 up to (excluding) 16.7.27
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.8 up to (excluding) 16.9.19
*cpe:2.3:a:microsoft:visual_studio_2019:*:*:*:*:*:*:*:* versions from (including) 16.10 up to (excluding) 16.11.12
*cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* versions from (including) 17.0.0 up to (excluding) 17.0.8
*cpe:2.3:a:microsoft:visual_studio_2022:*:*:*:*:*:*:*:* versions from (including) 17.1.0 up to (excluding) 17.1.4
Changed
Reference Type
https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-24767 No Types Assigned
Victim must voluntarily interact with attack mechanism
CVE Modified by GitHub, Inc.4/15/2022 3:15:12 PM
Action
Type
Old Value
New Value
Changed
Description
Git for Windows is a fork of Git containing Windows-specific patches. Since part of Git for Windows' uninstaller is copied into the current user's temporary directory and run in that place, it is important to ensure that there are no malicious `.dll` file in that directory that might be loaded as part of loading the executable. However, the default system settings for `TMP` and `TEMP` are to point to `C:\Windows\Temp`, a folder that is world-writable (for historical reasons), and the SYSTEM user account inherits those settings. This means that any authenticated user can place malicious `.dll` files that are loaded when Git for Windows' uninstaller is run via the SYSTEM account. Fixes are available in Git for Windows v2.35.2 or newer. Users unable to upgrade may override SYSTEM's `TMP` environment variable to point to a directory exclusively under SYSTEM's control before running the uninstaller, clear `C:\Windows\Temp` of all `.dll` files before running the uninstaller, or run the uninstaller under an admin account rather than SYSTEM as a workaround.
GitHub: Git for Windows' uninstaller vulnerable to DLL hijacking when run under the SYSTEM user account.