CVE-2022-39260
CVE-2022-39260 — Git vulnerable to Remote Code Execution via Heap overflow in `git shell`
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…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
4%
chance of exploitation in 30 days
CVSS base
8.5
HIGH
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 8.5 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-787
- CWE-122
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /pull.
References
8 on the record
- github.com/git/git/security/advisories/GHSA-rjr6-wcq6-83p6
reference
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKFHE4KVD7EKS5J3KTDFVBEKU3CLXGVV/
vendor-advisory
- support.apple.com/kb/HT213496
reference
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OHNO2FB55CPX47BAXMBWUBGWHO6N6ZZH/
vendor-advisory
- seclists.org/fulldisclosure/2022/Nov/1
mailing-list
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C7B6JPKX5CGGLAHXJVQMIZNNEEB72FHD/
vendor-advisory
- lists.debian.org/debian-lts-announce/2022/12/msg00025.html
mailing-list
- security.gentoo.org/glsa/202312-15
vendor-advisory
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-48384 Git allows arbitrary code execution through broken config quotingCVSS 8.0 · CISA KEV
- CVE-2026-111760 Git: Recursive clones are susceptible to Remote Code ExecutionCVSS 8.0
- CVE-2026-100408 Git for Windows: git-credential-wincred Erase Path Heap OverflowCVSS 4.4
- CVE-2026-100407 Git for Windows: git-credential-wincred OAuth Store Heap OverflowCVSS 4.4
- CVE-2025-43300 Apple iOS, iPadOS, and macOS Out-of-Bounds Write VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-24201 Apple Multiple Products WebKit Out-of-Bounds Write VulnerabilityCVSS 10.0 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.