Git is a distributed revision control system. Git prior to versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5, is vulnerable to privilege escalation in all platforms. An unsuspecting user could still be affected by the issue reported in CVE-2022-24765, for example when navigating as root into a shared tmp directory that is owned by them, but where an attacker could create a git repository. Versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5 contain a patch for this issue. The simplest way to avoid being affected by the exploit described in the example is to avoid running git as root (or an Administrator in Windows), and if needed to reduce its use to a minimum. While a generic workaround is not possible, a system could be hardened from the exploit described in the example by removing any such repository if it exists already and creating one as root to block any future attacks.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade gitwebUpgrade git-core-docUpgrade gitUpgrade gitkUpgrade git-allUpgrade git-svnUpgrade git-subtreeUpgrade git-guiUpgrade perl-GitUpgrade git-coreUpgrade git-credential-libsecretUpgrade git-daemonUpgrade perl-Git-SVNUpgrade git-emailUpgrade git-instaweb | May 15, 2023 | Jul 12, 2022 |
| Alpine Linux | — | Upgrade libgit2Upgrade git | Aug 22, 2024 | Jul 12, 2022 |
| Amazon Linux Ami 2 | — | Upgrade git-core-docUpgrade git-coreUpgrade gitUpgrade git-credential-libsecretUpgrade gitwebUpgrade git-allUpgrade perl-Git-SVNUpgrade git-svnUpgrade git-instawebUpgrade gitkUpgrade git-daemonUpgrade git-cvsUpgrade git-emailUpgrade git-subtreeUpgrade git-debuginfoUpgrade git-guiUpgrade git-p4Upgrade perl-Git | Sep 30, 2022 | Jul 12, 2022 |
| Amazon_linux | — | Upgrade git | Aug 5, 2022 | Jul 12, 2022 |
| Amazon_linux_2023 | — | Upgrade perl-GitUpgrade git-subtreeUpgrade git-instawebUpgrade git-cvsUpgrade git-p4Upgrade git-core-debuginfoUpgrade git-coreUpgrade git-daemonUpgrade git-svnUpgrade git-guiUpgrade git-emailUpgrade git-credential-libsecret-debuginfoUpgrade perl-Git-SVNUpgrade git-debuginfoUpgrade git-debugsourceUpgrade gitwebUpgrade git-credential-libsecretUpgrade gitkUpgrade gitUpgrade git-core-docUpgrade git-daemon-debuginfoUpgrade git-all | Feb 17, 2025 | Jul 12, 2022 |
| Arch Linux | — | Upgrade to the latest version of Arch Linux | Jul 11, 2025 | Jul 12, 2022 |
| Centos_linux | — | Upgrade git-core-docUpgrade git-debuginfoUpgrade gitUpgrade git-core-debuginfoUpgrade gitkUpgrade git-allUpgrade git-credential-libsecret-debuginfoUpgrade gitwebUpgrade git-coreUpgrade git-instawebUpgrade git-credential-libsecretUpgrade perl-GitUpgrade git-guiUpgrade git-debugsourceUpgrade perl-Git-SVNUpgrade git-daemon-debuginfoUpgrade git-svnUpgrade git-subtreeUpgrade git-daemonUpgrade git-email | May 15, 2023 | Jul 12, 2022 |
| Debian | — | Upgrade git | Dec 15, 2022 | Jul 12, 2022 |
| Freebsd | — | Upgrade git | Nov 4, 2022 | Jul 12, 2022 |
| Gentoo Linux | — | Upgrade dev-libs/libgit2.Upgrade dev-vcs/git. | Dec 28, 2023 | Jul 12, 2022 |
| Huawei Euleros 2_0_sp10 | — | Upgrade gitUpgrade git-help | Nov 3, 2022 | Jul 12, 2022 |
| Huawei Euleros 2_0_sp8 | — | Upgrade git-core-docUpgrade gitUpgrade git-core | Oct 11, 2022 | Jul 12, 2022 |
| Huawei Euleros 2_0_sp9 | — | Upgrade git-helpUpgrade git | Sep 14, 2022 | Jul 12, 2022 |
| Oracle_linux | — | Upgrade git-daemonUpgrade git-guiUpgrade perl-Git-SVNUpgrade git-instawebUpgrade git-core-docUpgrade gitkUpgrade perl-GitUpgrade git-coreUpgrade git-allUpgrade git-svnUpgrade git-credential-libsecretUpgrade gitwebUpgrade git-emailUpgrade gitUpgrade git-subtree | Jul 22, 2024 | Jul 12, 2022 |
| Redhat_linux | — | Upgrade git-svnUpgrade git-instawebUpgrade git-coreUpgrade git-debuginfoUpgrade git-debugsourceUpgrade git-allUpgrade perl-GitUpgrade git-guiUpgrade git-core-debuginfoUpgrade git-emailUpgrade git-daemonUpgrade gitwebUpgrade git-subtreeUpgrade gitkUpgrade git-core-docUpgrade git-daemon-debuginfoUpgrade perl-Git-SVNUpgrade git-credential-libsecretUpgrade git-credential-libsecret-debuginfoUpgrade git | May 15, 2023 | Jul 12, 2022 |
| Suse | — | Upgrade git-credential-libsecretUpgrade git-docUpgrade libgit2-develUpgrade git-coreUpgrade git-archUpgrade libgit2-1_3Upgrade git-svnUpgrade git-credential-gnome-keyringUpgrade git-daemonUpgrade git-guiUpgrade libgit2-26Upgrade perl-GitUpgrade git-emailUpgrade git-cvsUpgrade git-p4Upgrade gitkUpgrade gitUpgrade libgit2-1_3-32bitUpgrade libgit2-28-32bitUpgrade libgit2-26-32bitUpgrade libgit2-28Upgrade git-web | Oct 26, 2022 | Jul 12, 2022 |
| Ubuntu | — | Upgrade git | Mar 22, 2023 | Jul 12, 2022 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Jul 12, 2022 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub