#VU75483 Untrusted search path in Git for Windows - CVE-2023-29012


| Updated: 2023-06-14

Vulnerability identifier: #VU75483

Vulnerability risk: Medium

CVSSv4.0: 4.8 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2023-29012

CWE-ID: CWE-426

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Git for Windows
Other software / Other software solutions

Vendor: Git for Windows

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to insecure implementation of the Git CMD function, which automatically searches and  executes the doskey.exe file from the current working directory. A remote attacker can trick the victim into placing a malicious file and tricking the victim into executing the CMD command in the directory with malicious file.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Git for Windows: 2.40.0 - 2.40.0.1


External links
https://github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g
https://github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

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


Latest bulletins with this vulnerability