Patchwire CVEs, their patch status, and feeds to follow them

CVE-2022-39260

Fixed in a distro release EPSS 4%CVSS 8.5

Git is an open source, scalable, distributed revision control system. `git shell` is a restricted login shell that can be used to implement Git's push/pull functionality via SSH. In versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4, the function that splits the command arguments into an array improperly uses an `int` to represent the number of entries in the array, allowing a malicious actor to intentionally overflow the return value, leading to arbitrary heap writes. Because the resulting array is then passed to `execv()`, it is possible to leverage this attack to gain remote code execution on a victim machine. Note that a victim must first allow access to `git shell` as a login shell in order to be vulnerable to this attack. This problem is patched in versions 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 and users are advised to upgrade to the latest version. Disabling `git shell` access via remote logins is a viable short-term workaround.

Published 2022-10-19 · CVE record · OSV

Products: git

Distro releases

ReleasePackageFixed in
AlmaLinux 8git2.39.1-1.el8
AlmaLinux 8git-all2.39.1-1.el8
AlmaLinux 8git-core2.39.1-1.el8
AlmaLinux 8git-core-doc2.39.1-1.el8
AlmaLinux 8git-credential-libsecret2.39.1-1.el8
AlmaLinux 8git-daemon2.39.1-1.el8
AlmaLinux 8git-email2.39.1-1.el8
AlmaLinux 8git-gui2.39.1-1.el8
AlmaLinux 8git-instaweb2.39.1-1.el8
AlmaLinux 8git-subtree2.39.1-1.el8
AlmaLinux 8git-svn2.39.1-1.el8
AlmaLinux 8gitk2.39.1-1.el8
AlmaLinux 8gitweb2.39.1-1.el8
AlmaLinux 8perl-Git2.39.1-1.el8
AlmaLinux 8perl-Git-SVN2.39.1-1.el8
AlmaLinux 9git2.39.1-1.el9
AlmaLinux 9git-all2.39.1-1.el9
AlmaLinux 9git-core2.39.1-1.el9
AlmaLinux 9git-core-doc2.39.1-1.el9
AlmaLinux 9git-credential-libsecret2.39.1-1.el9
AlmaLinux 9git-daemon2.39.1-1.el9
AlmaLinux 9git-email2.39.1-1.el9
AlmaLinux 9git-gui2.39.1-1.el9
AlmaLinux 9git-instaweb2.39.1-1.el9
AlmaLinux 9git-subtree2.39.1-1.el9
AlmaLinux 9git-svn2.39.1-1.el9
AlmaLinux 9gitk2.39.1-1.el9
AlmaLinux 9gitweb2.39.1-1.el9
AlmaLinux 9perl-Git2.39.1-1.el9
AlmaLinux 9perl-Git-SVN2.39.1-1.el9
Alpine 3.13git2.30.6-r0
Alpine 3.14git2.32.4-r0
Alpine 3.15git2.34.5-r0
Alpine 3.16git2.36.3-r0
Alpine 3.17git2.38.1-r0
Alpine 3.18git2.38.1-r0
Alpine 3.19git2.38.1-r0
Alpine 3.20git2.38.1-r0
Alpine 3.21git2.38.1-r0
Alpine 3.22git2.38.1-r0
Alpine 3.23git2.38.1-r0
Alpine 3.24git2.38.1-r0
Amazon Linux 2git2.38.1-1.amzn2.0.1
Amazon Linux 2git-all2.38.1-1.amzn2.0.1
Amazon Linux 2git-core2.38.1-1.amzn2.0.1
Amazon Linux 2git-core-doc2.38.1-1.amzn2.0.1
Amazon Linux 2git-credential-libsecret2.38.1-1.amzn2.0.1
Amazon Linux 2git-cvs2.38.1-1.amzn2.0.1
Amazon Linux 2git-daemon2.38.1-1.amzn2.0.1
Amazon Linux 2git-email2.38.1-1.amzn2.0.1
Amazon Linux 2git-gui2.38.1-1.amzn2.0.1
Amazon Linux 2git-instaweb2.38.1-1.amzn2.0.1
Amazon Linux 2git-p42.38.1-1.amzn2.0.1
Amazon Linux 2git-subtree2.38.1-1.amzn2.0.1
Amazon Linux 2git-svn2.38.1-1.amzn2.0.1
Amazon Linux 2gitk2.38.1-1.amzn2.0.1
Amazon Linux 2gitweb2.38.1-1.amzn2.0.1
Amazon Linux 2perl-Git2.38.1-1.amzn2.0.1
Amazon Linux 2perl-Git-SVN2.38.1-1.amzn2.0.1
Amazon Linux 2023git2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-all2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-core2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-core-doc2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-credential-libsecret2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-cvs2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-daemon2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-email2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-gui2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-instaweb2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-p42.39.1-1.amzn2023.0.2
Amazon Linux 2023git-subtree2.39.1-1.amzn2023.0.2
Amazon Linux 2023git-svn2.39.1-1.amzn2023.0.2
Amazon Linux 2023gitk2.39.1-1.amzn2023.0.2
Amazon Linux 2023gitweb2.39.1-1.amzn2023.0.2
Amazon Linux 2023perl-Git2.39.1-1.amzn2023.0.2
Amazon Linux 2023perl-Git-SVN2.39.1-1.amzn2023.0.2
Chainguardgit2.38.1-r0
Debian 10git1:2.20.1-2+deb10u5
Debian 11git1:2.30.2-1+deb11u1
Debian 12git1:2.38.1-1
Debian 13git1:2.38.1-1
Debian 14git1:2.38.1-1
Red Hat Enterprise Linux 8git0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-all0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-core0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-core-debuginfo0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-core-doc0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-credential-libsecret0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-credential-libsecret-debuginfo0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-daemon0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-daemon-debuginfo0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-debuginfo0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-debugsource0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-email0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-gui0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-instaweb0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-subtree0:2.39.1-1.el8
Red Hat Enterprise Linux 8git-svn0:2.39.1-1.el8
Red Hat Enterprise Linux 8gitk0:2.39.1-1.el8
Red Hat Enterprise Linux 8gitweb0:2.39.1-1.el8
Red Hat Enterprise Linux 8perl-Git0:2.39.1-1.el8
Red Hat Enterprise Linux 8perl-Git-SVN0:2.39.1-1.el8
Red Hat Enterprise Linux 9git0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-all0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-core0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-core-debuginfo0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-core-doc0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-credential-libsecret0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-credential-libsecret-debuginfo0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-daemon0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-daemon-debuginfo0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-debuginfo0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-debugsource0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-email0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-gui0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-instaweb0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-subtree0:2.39.1-1.el9
Red Hat Enterprise Linux 9git-svn0:2.39.1-1.el9
Red Hat Enterprise Linux 9gitk0:2.39.1-1.el9
Red Hat Enterprise Linux 9gitweb0:2.39.1-1.el9
Red Hat Enterprise Linux 9perl-Git0:2.39.1-1.el9
Red Hat Enterprise Linux 9perl-Git-SVN0:2.39.1-1.el9
Red Hat rhel eus 8.6git0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-all0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-core0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-core-debuginfo0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-core-doc0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-credential-libsecret0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-credential-libsecret-debuginfo0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-daemon0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-daemon-debuginfo0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-debuginfo0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-debugsource0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-email0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-gui0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-instaweb0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-subtree0:2.31.8-1.el8_6
Red Hat rhel eus 8.6git-svn0:2.31.8-1.el8_6
Red Hat rhel eus 8.6gitk0:2.31.8-1.el8_6
Red Hat rhel eus 8.6gitweb0:2.31.8-1.el8_6
Red Hat rhel eus 8.6perl-Git0:2.31.8-1.el8_6
Red Hat rhel eus 8.6perl-Git-SVN0:2.31.8-1.el8_6
SUSE Enterprise Storage 7git2.26.2-150000.47.1
SUSE HPE Helion OpenStack 8git2.26.2-27.60.1
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSSgit2.26.2-150000.47.1
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSSgit2.26.2-150000.47.1
SUSE Linux Enterprise Module for Basesystem 15 SP3git2.35.3-150300.10.18.1
SUSE Linux Enterprise Module for Basesystem 15 SP4git2.35.3-150300.10.18.1
SUSE Linux Enterprise Module for Development Tools 15 SP3git2.35.3-150300.10.18.1
SUSE Linux Enterprise Module for Development Tools 15 SP4git2.35.3-150300.10.18.1
SUSE Linux Enterprise Server 12 SP5git2.26.2-27.60.1
SUSE Linux Enterprise Server 15 SP1-LTSSgit2.26.2-150000.47.1
SUSE Linux Enterprise Server 15 SP2-LTSSgit2.26.2-150000.47.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5git2.26.2-27.60.1
SUSE Linux Enterprise Server for SAP Applications 15 SP1git2.26.2-150000.47.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2git2.26.2-150000.47.1
SUSE Linux Enterprise Software Development Kit 12 SP5git2.26.2-27.60.1
SUSE OpenStack Cloud 8git2.26.2-27.60.1
Ubuntu 18.04 LTSgit1:2.17.1-1ubuntu0.13
Ubuntu 20.04 LTSgit1:2.25.1-1ubuntu3.6
Ubuntu 22.04 LTSgit1:2.34.1-1ubuntu1.5
Ubuntu Pro 16.04 LTSgit1:2.7.4-0ubuntu1.10+esm3
Wolfigit2.38.1-r0
openSUSE Leap 15.3git2.35.3-150300.10.18.1
openSUSE Leap 15.4git2.35.3-150300.10.18.1
openSUSE Leap 15.4git2.26.2-150000.47.1
openSUSE Tumbleweedgit2.38.1-1.1