NA

CVE-2022-39260

Published: 19/10/2022 Updated: 27/12/2023
CVSS v3 Base Score: 8.8 | Impact Score: 5.9 | Exploitability Score: 2.8
VMScore: 0

Vulnerability Summary

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 before 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.

Vulnerability Trend

Vulnerable Product Search on Vulmon Subscribe to Product

git-scm git 2.38.0

git-scm git

fedoraproject fedora 35

fedoraproject fedora 36

fedoraproject fedora 37

apple xcode

debian debian linux 10.0

Vendor Advisories

Debian Bug report logs - #1022046 git: CVE-2022-39253 CVE-2022-39260 Package: src:git; Maintainer for src:git is Jonathan Nieder <jrnieder@gmailcom>; Reported by: Salvatore Bonaccorso <carnil@debianorg> Date: Wed, 19 Oct 2022 12:48:02 UTC Severity: grave Tags: security, upstream Found in versions git/1:2372-1, g ...
Synopsis Moderate: git security and bug fix update Type/Severity Security Advisory: Moderate Red Hat Insights patch analysis Identify and remediate systems affected by this advisory View affected systems Topic An update for git is now available for Red Hat Enterprise Linux 9Red Hat Product Security has rated this update as having ...
Synopsis Moderate: git security and bug fix update Type/Severity Security Advisory: Moderate Red Hat Insights patch analysis Identify and remediate systems affected by this advisory View affected systems Topic An update for git is now available for Red Hat Enterprise Linux 8Red Hat Product Security has rated this update as having ...
Several security issues were fixed in Git ...
Git could be made to crash or run programs as your login if it received specially crafted input ...
Several security issues were fixed in Git ...
Git is an open source, scalable, distributed revision control system Versions prior to 2306, 2315, 2324, 2335, 2345, 2355, 2363, and 2374 are subject to exposure of sensitive information to a malicious actor When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of ...
Git is an open source, scalable, distributed revision control system Versions prior to 2306, 2315, 2324, 2335, 2345, 2355, 2363, and 2374 are subject to exposure of sensitive information to a malicious actor When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of ...
DescriptionThe MITRE CVE dictionary describes this issue as: 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 2306, 2315, 2324, 2335, 2345, 2355, 2363, and 2374, the function that spl ...
ALAS-2022-254 Amazon Linux 2022 Security Advisory: ALAS-2022-254 Advisory Release Date: 2022-12-06 16:45 Pacific ...