CVE-2022-29187
Fixed in a distro release EPSS <1%CVSS 7.8
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.
Products: git
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | git | 2.39.1-1.el8 |
| AlmaLinux 8 | git-all | 2.39.1-1.el8 |
| AlmaLinux 8 | git-core | 2.39.1-1.el8 |
| AlmaLinux 8 | git-core-doc | 2.39.1-1.el8 |
| AlmaLinux 8 | git-credential-libsecret | 2.39.1-1.el8 |
| AlmaLinux 8 | git-daemon | 2.39.1-1.el8 |
| AlmaLinux 8 | git-email | 2.39.1-1.el8 |
| AlmaLinux 8 | git-gui | 2.39.1-1.el8 |
| AlmaLinux 8 | git-instaweb | 2.39.1-1.el8 |
| AlmaLinux 8 | git-subtree | 2.39.1-1.el8 |
| AlmaLinux 8 | git-svn | 2.39.1-1.el8 |
| AlmaLinux 8 | gitk | 2.39.1-1.el8 |
| AlmaLinux 8 | gitweb | 2.39.1-1.el8 |
| AlmaLinux 8 | perl-Git | 2.39.1-1.el8 |
| AlmaLinux 8 | perl-Git-SVN | 2.39.1-1.el8 |
| AlmaLinux 9 | git | 2.39.1-1.el9 |
| AlmaLinux 9 | git-all | 2.39.1-1.el9 |
| AlmaLinux 9 | git-core | 2.39.1-1.el9 |
| AlmaLinux 9 | git-core-doc | 2.39.1-1.el9 |
| AlmaLinux 9 | git-credential-libsecret | 2.39.1-1.el9 |
| AlmaLinux 9 | git-daemon | 2.39.1-1.el9 |
| AlmaLinux 9 | git-email | 2.39.1-1.el9 |
| AlmaLinux 9 | git-gui | 2.39.1-1.el9 |
| AlmaLinux 9 | git-instaweb | 2.39.1-1.el9 |
| AlmaLinux 9 | git-subtree | 2.39.1-1.el9 |
| AlmaLinux 9 | git-svn | 2.39.1-1.el9 |
| AlmaLinux 9 | gitk | 2.39.1-1.el9 |
| AlmaLinux 9 | gitweb | 2.39.1-1.el9 |
| AlmaLinux 9 | perl-Git | 2.39.1-1.el9 |
| AlmaLinux 9 | perl-Git-SVN | 2.39.1-1.el9 |
| Alpine 3.13 | git | 2.30.5-r0 |
| Alpine 3.14 | git | 2.32.3-r0 |
| Alpine 3.15 | git | 2.34.4-r0 |
| Alpine 3.16 | git | 2.36.2-r0 |
| Alpine 3.17 | git | 2.37.1-r0 |
| Alpine 3.18 | git | 2.37.1-r0 |
| Alpine 3.19 | git | 2.37.1-r0 |
| Alpine 3.20 | git | 2.37.1-r0 |
| Alpine 3.21 | git | 2.37.1-r0 |
| Alpine 3.22 | git | 2.37.1-r0 |
| Alpine 3.23 | git | 2.37.1-r0 |
| Alpine 3.24 | git | 2.37.1-r0 |
| Amazon Linux 2 | git | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-all | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-core | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-core-doc | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-credential-libsecret | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-cvs | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-daemon | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-email | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-gui | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-instaweb | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-p4 | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-subtree | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | git-svn | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | gitk | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | gitweb | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | perl-Git | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2 | perl-Git-SVN | 2.37.1-1.amzn2.0.1 |
| Amazon Linux 2023 | git | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-all | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-core | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-core-doc | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-credential-libsecret | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-cvs | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-daemon | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-email | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-gui | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-instaweb | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-p4 | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-subtree | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | git-svn | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | gitk | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | gitweb | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | perl-Git | 2.39.1-1.amzn2023.0.2 |
| Amazon Linux 2023 | perl-Git-SVN | 2.39.1-1.amzn2023.0.2 |
| Arch Linux | git | 2.37.1-1 |
| Debian 10 | git | 1:2.20.1-2+deb10u5 |
| Debian 11 | git | 1:2.30.2-1+deb11u1 |
| Debian 12 | git | 1:2.37.2-1 |
| Debian 13 | git | 1:2.37.2-1 |
| Debian 14 | git | 1:2.37.2-1 |
| Red Hat Enterprise Linux 8 | git | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-all | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-core | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-core-debuginfo | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-core-doc | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-credential-libsecret | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-credential-libsecret-debuginfo | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-daemon | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-daemon-debuginfo | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-debuginfo | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-debugsource | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-email | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-gui | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-instaweb | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-subtree | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | git-svn | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | gitk | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | gitweb | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | perl-Git | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 8 | perl-Git-SVN | 0:2.39.1-1.el8 |
| Red Hat Enterprise Linux 9 | git | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-all | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-core | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-core-debuginfo | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-core-doc | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-credential-libsecret | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-credential-libsecret-debuginfo | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-daemon | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-daemon-debuginfo | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-debuginfo | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-debugsource | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-email | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-gui | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-instaweb | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-subtree | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | git-svn | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | gitk | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | gitweb | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | perl-Git | 0:2.39.1-1.el9 |
| Red Hat Enterprise Linux 9 | perl-Git-SVN | 0:2.39.1-1.el9 |
| Red Hat rhel eus 8.6 | git | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-all | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-core | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-core-debuginfo | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-core-doc | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-credential-libsecret | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-credential-libsecret-debuginfo | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-daemon | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-daemon-debuginfo | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-debuginfo | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-debugsource | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-email | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-gui | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-instaweb | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-subtree | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | git-svn | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | gitk | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | gitweb | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | perl-Git | 0:2.31.8-1.el8_6 |
| Red Hat rhel eus 8.6 | perl-Git-SVN | 0:2.31.8-1.el8_6 |
| SUSE Enterprise Storage 6 | git | 2.26.2-150000.41.1 |
| SUSE Enterprise Storage 6 | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Enterprise Storage 7 | git | 2.26.2-150000.41.1 |
| SUSE Enterprise Storage 7 | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Enterprise Storage 7 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE HPE Helion OpenStack 8 | git | 2.26.2-27.57.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise High Performance Computing 15-ESPOS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise High Performance Computing 15-ESPOS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise High Performance Computing 15-LTSS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise High Performance Computing 15-LTSS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP3 | git | 2.35.3-150300.10.15.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP4 | git | 2.35.3-150300.10.15.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | git | 2.35.3-150300.10.15.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP3 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | git | 2.35.3-150300.10.15.1 |
| SUSE Linux Enterprise Module for Development Tools 15 SP4 | libgit2 | 1.3.0-150400.3.3.1 |
| SUSE Linux Enterprise Server 12 SP2-BCL | git | 2.26.2-27.57.1 |
| SUSE Linux Enterprise Server 12 SP3-BCL | git | 2.26.2-27.57.1 |
| SUSE Linux Enterprise Server 12 SP4-LTSS | git | 2.26.2-27.57.1 |
| SUSE Linux Enterprise Server 12 SP5 | git | 2.26.2-27.57.1 |
| SUSE Linux Enterprise Server 15 SP1-BCL | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise Server 15 SP1-BCL | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Server 15 SP2-BCL | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise Server 15 SP2-BCL | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Linux Enterprise Server 15 SP2-BCL | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Linux Enterprise Server 15 SP2-LTSS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Server 15-LTSS | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise Server 15-LTSS | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | git | 2.26.2-27.57.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | git | 2.26.2-27.57.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | git | 2.26.2-150000.41.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP2 | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP5 | git | 2.26.2-27.57.1 |
| SUSE Manager Proxy 4.1 | git | 2.26.2-150000.41.1 |
| SUSE Manager Proxy 4.1 | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Manager Proxy 4.1 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Manager Retail Branch Server 4.1 | git | 2.26.2-150000.41.1 |
| SUSE Manager Retail Branch Server 4.1 | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Manager Retail Branch Server 4.1 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Manager Server 4.1 | git | 2.26.2-150000.41.1 |
| SUSE Manager Server 4.1 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Manager Server 4.1 | libgit2 | 0.26.8-150000.3.15.1 |
| SUSE Manager Server Module 4.1 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Manager Server Module 4.2 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE Manager Server Module 4.3 | libgit2 | 0.28.4-150200.3.3.1 |
| SUSE OpenStack Cloud 8 | git | 2.26.2-27.57.1 |
| SUSE OpenStack Cloud 9 | git | 2.26.2-27.57.1 |
| SUSE OpenStack Cloud Crowbar 9 | git | 2.26.2-27.57.1 |
| Ubuntu 18.04 LTS | git | 1:2.17.1-1ubuntu0.12 |
| Ubuntu 20.04 LTS | git | 1:2.25.1-1ubuntu3.5 |
| Ubuntu 22.04 LTS | git | 1:2.34.1-1ubuntu1.4 |
| openSUSE Leap 15.3 | git | 2.35.3-150300.10.15.1 |
| openSUSE Leap 15.3 | git | 2.26.2-150000.41.1 |
| openSUSE Leap 15.3 | libgit2 | 0.28.4-150200.3.3.1 |
| openSUSE Leap 15.3 | libgit2 | 0.26.8-150000.3.15.1 |
| openSUSE Leap 15.4 | git | 2.26.2-150000.41.1 |
| openSUSE Leap 15.4 | git | 2.35.3-150300.10.15.1 |
| openSUSE Leap 15.4 | libgit2 | 0.26.8-150000.3.15.1 |
| openSUSE Leap 15.4 | libgit2 | 0.28.4-150200.3.3.1 |
| openSUSE Leap 15.4 | libgit2 | 1.3.0-150400.3.3.1 |
| openSUSE Tumbleweed | git | 2.37.1-1.1 |
| openSUSE Tumbleweed | libgit2 | 1.7.1-3.1 |