Buffer overflow in Apple Xcode
CVE-2022-39260
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.033 (88.0th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 88th percentile — 88.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.033 · newest: 0.033 · change: +0.000
Affected products
- Apple Xcode
- Git — versions < 2.30.6, > 2.31.0, < 2.31.5, > 2.32.0, < 2.32.4
- Git-Scm Git — versions 2.38.0
- Debian Linux — versions 10.0
- Fedoraproject Fedora — versions 35, 36, 37
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/git/git/security/advisories/GHSA-rjr6-wcq6-83p6 (Third Party Advisory, Mitigation)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- support.apple.com/kb/HT213496 (Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- seclists.org/fulldisclosure/2022/Nov/1 (mailing-list, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.debian.org/debian-lts-announce/2022/12/msg00025.html (mailing-list, Mailing List, Third Party Advisory)
- security.gentoo.org/glsa/202312-15 (vendor-advisory)
Frequently asked questions
- What is CVE-2022-39260?
- CVE-2022-39260 is a high-severity vulnerability in Apple Xcode, classified under Heap-based Buffer Overflow. CVSS score: 8.5/10. Published 2022-10-19.
- How severe is CVE-2022-39260?
- High severity. CVSS v3 base score is 8.5 out of 10.
- Is CVE-2022-39260 known to be exploited?
- 3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.