Git for Windows < 2.45.1 Multiple Vulnerabilities

critical Nessus Plugin ID 202262

Synopsis

The remote Windows host has a Github for Windows install that is affected by multiple vulnerabilities.

Description

The version of Git for Windows installed on the remote host is prior to 2.45.1, and therefore is affected by multiple vulnerabilities:

- Recursive clones on case-insensitive filesystems that support symbolic links are susceptible to case confusion that can be exploited to execute just-cloned code during the clone operation. (CVE-2024-32002)

- Repositories can be configured to execute arbitrary code during local clones. To address this, the ownership checks introduced in v2.30.3 are now extended to cover cloning local repositories. (CVE-2024-32004)

- Local clones may end up hardlinking files into the target repository's object database when source and target repository reside on the same disk. If the source repository is owned by a different user, then those hardlinked files may be rewritten at any point in time by the untrusted user. (CVE-2024-32020)

- When cloning a local source repository that contains symlinks via the filesystem, Git may create hardlinks to arbitrary user-readable files on the same filesystem as the target repository in the objects/ directory. (CVE-2024-32021)

- It is supposed to be safe to clone untrusted repositories, even those unpacked from zip archives or tarballs originating from untrusted sources, but Git can be tricked to run arbitrary code as part of the clone.(CVE-2024-32465)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Git for Windows 2.45.1 or later.

See Also

https://github.com/git-for-windows/git/releases/

http://www.nessus.org/u?ed7b9e75

Plugin Details

Severity: Critical

ID: 202262

File Name: git_for_windows_2_45_1.nasl

Version: 1.2

Type: local

Agent: windows

Family: Windows

Published: 7/12/2024

Updated: 7/15/2024

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.2

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-32002

CVSS v3

Risk Factor: Critical

Base Score: 9

Temporal Score: 8.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:git_for_windows_project:git_for_windows

Required KB Items: installed_sw/Git for Windows

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/25/2024

Vulnerability Publication Date: 4/25/2024

Reference Information

CVE: CVE-2024-32002, CVE-2024-32004, CVE-2024-32020, CVE-2024-32021, CVE-2024-32465