Untrusted search path in Git - CVE-2022-24765
Published: April 12, 2022
Vulnerability details
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.
Affected software
Amazon Linux AMI
Arch Linux
Oracle Linux
Gentoo Linux
Debian Linux
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Linux Enterprise Module for SUSE Manager Server
SUSE Enterprise Storage
SUSE Linux Enterprise Storage
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Fedora
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Server for SAP Applications
Slackware Linux
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Development Tools
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
Ubuntu
openEuler
cflinuxfs3
ObjectScale
EMC ECS
Platform Automation Toolkit
libgit2
Apple Xcode
Visual Studio
rust-bat
libgit2-devel
libgit2-debugsource
libgit2-26-32bit-debuginfo
libgit2-26-32bit
libgit2-26-debuginfo
libgit2-26
libgit2-28-32bit
libgit2-28-32bit-debuginfo
libgit2-28-debuginfo
libgit2-28
libgit2-1_3
libgit2-1_3-32bit-debuginfo
libgit2-1_3-32bit
libgit2-1_3-debuginfo
libgit2
rust-exa-0.10.1-9.el9 rust-pore-0.1.8-2.el9 rust-resctl-bench-2.1.2-8.el9 rust-resctl-demo
git (Ubuntu package)
git
git-daemon
git-daemon-debuginfo
git-debugsource
git-email
git-gui
git-svn
git-web
gitk
git-arch
git-svn-debuginfo
git-doc
git-cvs
git-core-debuginfo
git-core
git-debuginfo
perl-Git
git-help
perl-Git-SVN
git (Debian package)
git-credential-gnome-keyring
git-credential-gnome-keyring-debuginfo
git-credential-libsecret
git-credential-libsecret-debuginfo
git-p4
git (Red Hat package)
dev-vcs/git
gitweb
git-instaweb
git-core-doc
git-all
git-subtree
rust-bat-0.21.0-6.fc36 rust-cargo-c-0.9.12-3.fc36 rust-exa-0.10.1-9.fc36 rust-git-delta-0.13.0-4.fc36 rust-gitui-0.20.1-6.fc36 rust-pore-0.1.8-2.fc36 rust-pretty-git-prompt-0.2.1-15.fc36 rust-rd-agent-2.1.2-7.fc36 rust-rd-hashd-2.1.2-7.fc36 rust-resctl-be
rust-bat-0.21.0-6.fc37 rust-cargo-c-0.9.12-3.fc37 rust-exa-0.10.1-9.fc37 rust-git-delta-0.13.0-4.fc37 rust-gitui-0.20.1-6.fc37 rust-pore-0.1.8-2.fc37 rust-pretty-git-prompt-0.2.1-15.fc37 rust-rd-agent-2.1.2-7.fc37 rust-rd-hashd-2.1.2-7.fc37 rust-resctl-be
Isolation Segment
VMware Tanzu Application Service for VMs
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
How to mitigate CVE-2022-24765
cflinuxfs3 - addressed in versions 0.284.0, 0.310.0
ObjectScale - update to 1.3.0
libgit2 - addressed in versions 1.3.2, 1.4.4
Apple Xcode - update to 13.4
rust-bat - update to 0.21.0-7.el9
libgit2-devel - addressed in versions 0.26.8-150000.3.15.1, 0.28.4-150200.3.3.1, 1.3.0-150400.3.3.1
libgit2-debugsource - addressed in versions 0.26.8-150000.3.15.1, 0.28.4-150200.3.3.1, 1.3.0-150400.3.3.1
libgit2-26-32bit-debuginfo - update to 0.26.8-150000.3.15.1
libgit2-26-32bit - update to 0.26.8-150000.3.15.1
libgit2-26-debuginfo - update to 0.26.8-150000.3.15.1
libgit2-26 - update to 0.26.8-150000.3.15.1
libgit2-28-32bit - update to 0.28.4-150200.3.3.1
libgit2-28-32bit-debuginfo - update to 0.28.4-150200.3.3.1
libgit2-28-debuginfo - update to 0.28.4-150200.3.3.1
libgit2-28 - update to 0.28.4-150200.3.3.1
libgit2-1_3 - update to 1.3.0-150400.3.3.1
libgit2-1_3-32bit-debuginfo - update to 1.3.0-150400.3.3.1
libgit2-1_3-32bit - update to 1.3.0-150400.3.3.1
libgit2-1_3-debuginfo - update to 1.3.0-150400.3.3.1
libgit2 - addressed in versions 1.3.2-1.fc36, 1.3.2-1.fc37, 1.3.2-2.el9
rust-exa-0.10.1-9.el9 rust-pore-0.1.8-2.el9 rust-resctl-bench-2.1.2-8.el9 rust-resctl-demo - update to 2.1.2-8.el9
Isolation Segment - addressed in versions 2.7.44, 2.10.24, 2.11.13, 2.12.7
VMware Tanzu Application Service for VMs - addressed in versions 2.7.49, 2.10.31, 2.11.19, 2.12.12, 2.13.4
git (Ubuntu package) - addressed in versions 1:2.17.1-1ubuntu0.10, 1:2.17.1-1ubuntu0.12, 1:2.25.1-1ubuntu3.3, 1:2.25.1-1ubuntu3.5, 1:2.32.0-1ubuntu1.1, 1:2.32.0-1ubuntu1.3, 1:2.34.1-1ubuntu1.1, 1:2.34.1-1ubuntu1.4
git - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-daemon - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-daemon-debuginfo - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-debugsource - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-email - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-gui - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-svn - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-web - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
gitk - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-arch - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-svn-debuginfo - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1
git-doc - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-cvs - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-core-debuginfo - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-core - addressed in versions 2.26.2-27.52.1, 2.26.2-27.57.1, 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-debuginfo - addressed in versions 2.26.2-150000.36.1, 2.26.2-150000.41.1, 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-debuginfo - addressed in versions 2.27.0-7, 2.27.0-8
git - addressed in versions 2.27.0-7, 2.27.0-8
git-svn - addressed in versions 2.27.0-7, 2.27.0-8
perl-Git - addressed in versions 2.27.0-7, 2.27.0-8
git-help - addressed in versions 2.27.0-7, 2.27.0-8
git-email - addressed in versions 2.27.0-7, 2.27.0-8
git-gui - addressed in versions 2.27.0-7, 2.27.0-8
gitk - addressed in versions 2.27.0-7, 2.27.0-8
perl-Git-SVN - addressed in versions 2.27.0-7, 2.27.0-8
git-debugsource - addressed in versions 2.27.0-7, 2.27.0-8
git-daemon - addressed in versions 2.27.0-7, 2.27.0-8
git-web - addressed in versions 2.27.0-7, 2.27.0-8
git (Debian package) - update to 1:2.30.2-1+deb11u1
git - addressed in versions 2.34.3-1.fc34, 2.35.3-1.fc35, 2.36.0-1.fc36, 2.37.1-1.fc35, 2.37.1-1.fc36
git-credential-gnome-keyring - addressed in versions 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-credential-gnome-keyring-debuginfo - addressed in versions 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-credential-libsecret - addressed in versions 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-credential-libsecret-debuginfo - addressed in versions 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git-p4 - addressed in versions 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
perl-Git - addressed in versions 2.35.3-150300.10.12.1, 2.35.3-150300.10.15.1
git - update to 2.39.1-1
git (Red Hat package) - addressed in versions 2.39.1-1.el8, 2.39.1-1.el9
dev-vcs/git - update to 2.39.3
git-credential-libsecret - update to 2.39.3-1.0.1
perl-Git-SVN - update to 2.39.3-1.0.1
perl-Git - update to 2.39.3-1.0.1
gitweb - update to 2.39.3-1.0.1
gitk - update to 2.39.3-1.0.1
git-svn - update to 2.39.3-1.0.1
git-instaweb - update to 2.39.3-1.0.1
git-gui - update to 2.39.3-1.0.1
git-email - update to 2.39.3-1.0.1
git-core-doc - update to 2.39.3-1.0.1
git-all - update to 2.39.3-1.0.1
git-subtree - update to 2.39.3-1.0.1
git-daemon - update to 2.39.3-1.0.1
git-core - update to 2.39.3-1.0.1
git - update to 2.39.3-1.0.1
EMC ECS - update to 3.7.0.3
Platform Automation Toolkit - addressed in versions 4.4.29, 5.0.22
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 4.5.1
rust-bat-0.21.0-6.fc36 rust-cargo-c-0.9.12-3.fc36 rust-exa-0.10.1-9.fc36 rust-git-delta-0.13.0-4.fc36 rust-gitui-0.20.1-6.fc36 rust-pore-0.1.8-2.fc36 rust-pretty-git-prompt-0.2.1-15.fc36 rust-rd-agent-2.1.2-7.fc36 rust-rd-hashd-2.1.2-7.fc36 rust-resctl-be - update to 12.1.2-4.fc36
rust-bat-0.21.0-6.fc37 rust-cargo-c-0.9.12-3.fc37 rust-exa-0.10.1-9.fc37 rust-git-delta-0.13.0-4.fc37 rust-gitui-0.20.1-6.fc37 rust-pore-0.1.8-2.fc37 rust-pretty-git-prompt-0.2.1-15.fc37 rust-rd-agent-2.1.2-7.fc37 rust-rd-hashd-2.1.2-7.fc37 rust-resctl-be - update to 12.1.2-4.fc37
External References
Related Security Bulletins
- Multiple vulnerabilities in Git
- Ubuntu update for git
- Untrusted search path in Git for Microsoft Windows
- Cloud Foundry Foundation cflinuxfs3 update for Git
- Slackware Linux update for git
- Ubuntu update for git
- Multiple vulnerabilities in Apple Xcode
- Arch Linux update for git
- Amazon Linux AMI update for git
- libgit2 update for Git
- Ubuntu update for git
- Cloud Foundry Foundation cflinuxfs3 update for Git
- SUSE update for git
- SUSE update for git
- SUSE update for git
- SUSE update for libgit2
- Multiple vulnerabilities in Dell ECS
- SUSE update for libgit2
- SUSE update for libgit2
- Untrusted search path in IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
- Untrusted search path in IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
- SUSE update for git
- SUSE update for git
- SUSE update for git
- Red Hat Enterprise Linux 9 update for git
- Red Hat Enterprise Linux 8 update for git
- Multiple vulnerabilities in Oracle Linux
- VMware Tanzu products update for Git
- Fedora 36 update for libgit2
- Fedora 37 update for libgit2
- Fedora EPEL 9 update for libgit2
- Fedora 37 update for rust-bat-0.21.0-6.fc37 rust-cargo-c-0.9.12-3.fc37 rust-exa-0.10.1-9.fc37 rust-git-delta-0.13.0-4.fc37 rust-gitui-0.20.1-6.fc37 rust-pore-0.1.8-2.fc37 rust-pretty-git-prompt-0.2.1-15.fc37 rust-rd-agent-2.1.2-7.fc37 rust-rd-hashd-2.1.2-
- Fedora 36 update for rust-bat-0.21.0-6.fc36 rust-cargo-c-0.9.12-3.fc36 rust-exa-0.10.1-9.fc36 rust-git-delta-0.13.0-4.fc36 rust-gitui-0.20.1-6.fc36 rust-pore-0.1.8-2.fc36 rust-pretty-git-prompt-0.2.1-15.fc36 rust-rd-agent-2.1.2-7.fc36 rust-rd-hashd-2.1.2-
- Fedora EPEL 9 update for rust-exa-0.10.1-9.el9 rust-pore-0.1.8-2.el9 rust-resctl-bench-2.1.2-8.el9 rust-resctl-demo
- Fedora EPEL 9 update for rust-bat
- Debian update for git
- Gentoo update for Git
- openEuler update for git
- openEuler update for git
- Amazon Linux AMI update for git
- Fedora 36 update for git
- Fedora 35 update for git
- Fedora 34 update for git
- Fedora 36 update for git
- Fedora 35 update for git
- Anolis OS update for git
- Multiple vulnerabilities in Dell ObjectScale