CVE-2022-39260

Updated: 2023-02-15 22:06:03.612937

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.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0
CVSS Version 3.x HIGH 8.8

Status

OS name Project name Version Score Severity Status Errata Last updated
CentOS 6 ELS git 1.7.1 8.8 HIGH Released CLSA-2023:1677231280 2023-03-02 09:37:50
CentOS 8.4 ELS git 2.27.0 8.8 HIGH Released CLSA-2023:1677095411 2023-02-22 16:03:38
CentOS 8.5 ELS git 2.27.0 8.8 HIGH Released CLSA-2023:1677095961 2023-02-22 16:03:38
CloudLinux 6 ELS git 1.7.1 8.8 HIGH Released CLSA-2023:1677231127 2023-03-02 09:37:50
Oracle Linux 6 ELS git 1.7.1 8.8 HIGH Released CLSA-2023:1677096181 2023-02-22 16:03:38
Ubuntu 16.04 ELS git 2.7.4 8.8 HIGH Released CLSA-2023:1677096675 2023-02-22 16:03:38
Ubuntu 18.04 ELS git 2.17.1 8.8 HIGH Already Fixed 2023-06-02 09:10:38