PT-2022-7597

CVE-2022-39260

·

Published

2022-10-06

·

Updated

2026-09-30

Description by

CVSS 2.0
10
High
MetricsAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Git versions prior to 2.30.6 Git versions prior to 2.31.5 Git versions prior to 2.32.4 Git versions prior to 2.33.5 Git versions prior to 2.34.5 Git versions prior to 2.35.5 Git versions prior to 2.36.3 Git versions prior to 2.37.4
Description The issue is related to the function that splits the command arguments into an array in Git's git shell, which improperly uses an int to represent the number of entries in the array. This allows a malicious actor to intentionally overflow the return value, leading to arbitrary heap writes and potentially gaining remote code execution on a victim machine. The victim must first allow access to git shell as a login shell to be vulnerable to this attack.
Recommendations Upgrade to version 2.30.6 or later for Git versions prior to 2.30.6. Upgrade to version 2.31.5 or later for Git versions prior to 2.31.5. Upgrade to version 2.32.4 or later for Git versions prior to 2.32.4. Upgrade to version 2.33.5 or later for Git versions prior to 2.33.5. Upgrade to version 2.34.5 or later for Git versions prior to 2.34.5. Upgrade to version 2.35.5 or later for Git versions prior to 2.35.5. Upgrade to version 2.36.3 or later for Git versions prior to 2.36.3. Upgrade to version 2.37.4 or later for Git versions prior to 2.37.4. As a temporary workaround, consider disabling git shell access via remote logins.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-RJR6-WCQ6-83P6
ALSA-2023:2319
ALSA-2023:2859
ALT-PU-2022-2876
ALT-PU-2022-2906
ALT-PU-2023-4135
CESA-2023_2859
CLEANSTART-2026-BE06900
DLA-3239-1
DLA-3239-2
DSA-5332-1
MGASA-2022-0396
OESA-2022-2029
OPENSUSE-SU-2022_3931-1
OPENSUSE-SU-2023_0418-1
OPENSUSE-SU-2024:12487-1
RHSA-2023:2319
RHSA-2023_2319
RHSA-2023:2859
RHSA-2023_2859
RHSA-2024:0407
ROSA-SA-2024-2398
SUSE-SU-2022:3931-1
SUSE-SU-2022:4271-1
SUSE-SU-2023:0418-1
USN-5686-1
USN-5686-2
USN-5686-3
Found an issue in the description? Have something to add? Feel free to write us 👾