Home/CVE/Git is an open source, scalable, distributed revision control system. `git shell` is a restricted login shell that can b
CVE

CVE-2022-39260

Git is an open source, scalable, distributed revision control system. `git shell` is a restricted login shell that can b

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.

HIGH · CVSS 8.5 EPSS 0.02232
Schedule remediation
  • CVSS base score ≥ 7.0
Sigma rules0 YARA rules0

Weakness Classification

Affected Products & Versions

12
git-scm git< 2.30.6
git-scm git>= 2.31.0 and < 2.31.5
git-scm git>= 2.32.0 and < 2.32.4
git-scm git>= 2.33.0 and < 2.33.5
git-scm git>= 2.34.0 and < 2.34.5
git-scm git>= 2.35.0 and < 2.35.5
git-scm git>= 2.36.0 and < 2.36.3
git-scm git>= 2.37.0 and < 2.37.4

Scoring & Timeline

8.5
HIGH · CVSS v3.1 · security-advisories@github.com
View on NVD
Attack Vector
Network Adjacent Local Physical
Attack Complexity
Low High
Privileges Required
None Low High
User Interaction
None Required
Scope
Unchanged Changed
Confidentiality
None Low High
Integrity
None Low High
Availability
None Low High
Published to NVD19 Oct 2022 · 12:15 PM
CVSS VectorCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Vendor Advisories

12
suse-csafopenSUSE-SU-2024:12487-1
siemens-csafSSA-806742
suse-csafSUSE-SU-2023:0418-1
rhsaRHSA-2024:0407Moderate
suse-csafSUSE-SU-2022:4271-1
Intelligence Graph · click any node to traverse
CVETechnique ActorTool Family
drag to reposition · click any node to traverse · button top-right enlarges
External lookups - second-class, for what we don’t hold ourselves
Vulnerabilities
CISA KEV catalog
CWE weaknesses
CAPEC attack patterns
Package vulnerabilities
Threat intelligence
Threat actors
Tools & malware
ATT&CK techniques
IOCs
Detection & defense
Sigma rules
YARA rules
Atomic Red Team tests
D3FEND countermeasures
Compliance
NIST 800-53
ISO 27001:2022
SOC 2 TSC
PCI-DSS v4.0
CIS Controls v8.1
About
All capabilities
Live statistics
Data sources
Privacy policy
Terms of service
threatengine.sh  ·  Open-source threat intelligence platform  ·  100+ authoritative sources  ·  Every fact traces to its origin