CVE-2022-39260

CVSS V2 None CVSS V3 High 8.8
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.
Overview
  • CVE ID
  • CVE-2022-39260
  • Assigner
  • security-advisories@github.com
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2022-10-19T12:15:10
  • Last Modified Date
  • 2023-02-16T02:41:25
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* 1 OR 2.30.6
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* 1 OR 2.31.0 2.31.5
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* 1 OR 2.32.0 2.32.4
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* 1 OR 2.33.0 2.33.5
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* 1 OR 2.34.0 2.34.5
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* 1 OR 2.35.0 2.35.5
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* 1 OR 2.36.0 2.36.3
cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:* 1 OR 2.37.0 2.37.4
cpe:2.3:a:git-scm:git:2.38.0:*:*:*:*:*:*:* 1 OR
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* 1 OR
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* 1 OR
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* 1 OR
cpe:2.3:a:apple:xcode:*:*:*:*:*:*:*:* 1 OR 14.1
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Attack Vector
  • NETWORK
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • REQUIRED
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • HIGH
  • Availability Impact
  • HIGH
  • Base Score
  • 8.8
  • Base Severity
  • HIGH
  • Exploitability Score
  • 2.8
  • Impact Score
  • 5.9
History
Created Old Value New Value Data Type Notes
2022-10-19 13:00:18 Added to TrackCVE
2022-12-07 09:41:13 2022-10-19T12:15Z 2022-10-19T12:15:10 CVE Published Date updated
2022-12-07 09:41:13 2022-11-16T18:30:10 CVE Modified Date updated
2022-12-07 09:41:13 Analyzed Vulnerability Status updated
2022-12-07 09:41:37 References updated
2022-12-14 02:14:23 2022-12-14T01:15:10 CVE Modified Date updated
2022-12-14 02:14:23 Analyzed Modified Vulnerability Status updated
2022-12-14 02:14:24 CWE-122 Weakness Enumeration updated
2022-12-14 02:14:25 References updated
2022-12-19 18:16:16 Modified Undergoing Analysis Vulnerability Status updated
2023-02-16 03:16:49 2023-02-16T02:41:25 CVE Modified Date updated
2023-02-16 03:16:49 Undergoing Analysis Analyzed Vulnerability Status updated
2023-02-16 03:16:52 Weakness Enumeration update