#VU62258 Untrusted search path in Git


Published: 2022-04-12

Vulnerability identifier: #VU62258

Vulnerability risk: Low

CVSSv3.1: 6.8 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-24765

CWE-ID: CWE-426

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
Git
Client/Desktop applications / Software for system administration

Vendor: Git

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to application uses by default the C:\.git folder. A local user with ability to write files into the said directory can place a malicious file into it and execute it with elevated privileges.

Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Git: 2.35.0 - 2.35.1, 2.32.0


External links
http://github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2
http://github.com/git-for-windows/git/releases/tag/v2.32.1.windows.1
http://github.com/git-for-windows/git/releases/tag/v2.35.2.windows.1


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability