Untrusted search path in Git for Windows - CVE-2022-41953

 

Untrusted search path in Git for Windows - CVE-2022-41953

Published: January 17, 2023 / Updated: February 15, 2023


Vulnerability identifier: #VU71240
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-41953
CWE-ID: CWE-426
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to insecure implementation of the Git GUI's Clone function, which automatically searches and  executes the aspell.exe file after cloning the repository. A remote attacker can trick the victim into cloning a malicious repository and execute arbitrary code on the system by including the malicious aspell.exe file into the repository.


Affected software

Git for Windows
Visual Studio
openEuler
git-debuginfo
git-help
git-gui
perl-Git
gitk
git-svn
perl-Git-SVN
git-email
git-web
git-debugsource
git-daemon
git

How to mitigate CVE-2022-41953

Install updates from vendor's website.

Git for Windows - update to 2.39.1.1
Visual Studio - addressed in versions 15.9.52, 16.11.24 16.11.33328.57, 17.0.19 17.0.33402.176, 17.2.13 17.2.33402.178, 17.4.5 17.4.33403.182
git-debuginfo - update to 2.27.0-11
git-help - update to 2.27.0-11
git-gui - update to 2.27.0-11
perl-Git - update to 2.27.0-11
gitk - update to 2.27.0-11
git-svn - update to 2.27.0-11
perl-Git-SVN - update to 2.27.0-11
git-email - update to 2.27.0-11
git-web - update to 2.27.0-11
git-debugsource - update to 2.27.0-11
git-daemon - update to 2.27.0-11
git - update to 2.27.0-11

External References

Related Security Bulletins