Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2022-39260 Details

Description

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
http://seclists.org/fulldisclosure/2022/Nov/1 CVEMailing ListThird Party Advisory
https://github.com/git/git/security/advisories/GHSA-rjr6-wcq6-83p6 CVEMitigationThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html CVEMailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C7B6JPKX5CGGLAHXJVQMIZNNEEB72FHD/ CVE
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OHNO2FB55CPX47BAXMBWUBGWHO6N6ZZH/ CVE

see all 16 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-787Out-of-bounds Write[email protected]
CWE-122Heap-based Buffer Overflow[email protected]
CWE-787Out-of-bounds Write[email protected]

Affected Products

ProductVersions
git-scm git
< 2.30.6
>= 2.31.0, < 2.31.5
>= 2.32.0, < 2.32.4
>= 2.33.0, < 2.33.5
>= 2.34.0, < 2.34.5

CPE

  • cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
  • cpe:2.3:a:git-scm:git:2.38.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
35
36
37

CPE

  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
apple xcode
< 14.1

CPE

  • cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
debian debian linux
10.0

CPE

  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

14 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2022-39260
NVD Published Date:
Oct 19, 2022
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2022-39260 Details - Not Deferred