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
Weakness Enumerations
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
References
Reference URL | Reference Tags |
---|---|
http://seclists.org/fulldisclosure/2022/Nov/1 | Mailing List Third Party Advisory |
https://github.com/git/git/security/advisories/GHSA-rjr6-wcq6-83p6 | Mitigation Third Party Advisory |
https://lists.debian.org/debian-lts-announce/2022/12/msg00025.html | |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C7B6JPKX5CGGLAHXJVQMIZNNEEB72FHD/ | Mailing List Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OHNO2FB55CPX47BAXMBWUBGWHO6N6ZZH/ | Mailing List Third Party Advisory |
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UKFHE4KVD7EKS5J3KTDFVBEKU3CLXGVV/ | Mailing List Third Party Advisory |
https://support.apple.com/kb/HT213496 | Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2022-39260 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-39260 |
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 |