Home / git / git / CVE-2022-39260
CVE-2022-39260: is it exploited, and which versions of git are affected and fixed?
CVE-2022-39260 is an out-of-bounds write (memory corruption) vulnerability in git. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: git < 2.30.6, git > 2.31.0, < 2.31.5, git > 2.32.0, < 2.32.4 and 5 more (CVE record by GitHub_M). Fixed in 2.30.6, 2.31.5, 2.32.4, 2.33.5 and 2 more (NVD). Severity: High (8.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:44 UTC.
What is 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 upgrade to the latest version. Disabling `git shell` access via remote logins is a viable short-term workaround.
From the CVE record by GitHub_M, last updated August 3, 2024, 12:00 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| git | git | < 2.30.6 > 2.31.0, < 2.31.5 > 2.32.0, < 2.32.4 > 2.33.0, < 2.33.5 > 2.34.0, < 2.34.5 > 2.34.0, < 2.35.5 > 2.35.0, < 2.36.3 > 2.37.0, < 2.37.4 |
As the CVE record by GitHub_M states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| git-scm | git | before 2.30.6 | application |
| git-scm | git | from 2.31.0 before 2.31.5 | application |
| git-scm | git | from 2.32.0 before 2.32.4 | application |
| git-scm | git | from 2.33.0 before 2.33.5 | application |
| git-scm | git | from 2.34.0 before 2.34.5 | application |
| git-scm | git | from 2.35.0 before 2.35.5 | application |
| git-scm | git | from 2.36.0 before 2.36.3 | application |
| git-scm | git | from 2.37.0 before 2.37.4 | application |
| git-scm | git | 2.38.0 | application |
| fedoraproject | fedora | 35 | operating system |
| fedoraproject | fedora | 36 | operating system |
| fedoraproject | fedora | 37 | operating system |
| apple | xcode | before 14.1 | application |
| debian | debian linux | 10.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:58 UTC.
How severe is CVE-2022-39260?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | GitHub_M |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-39260 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 3.96% probability of exploitation activity in the next 30 days, percentile 90.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/git/git/security/advisories/GHSA-rjr6-wcq6-83p6
- FEDORA-2022-8b58806840 vendor-advisory
- https://support.apple.com/kb/HT213496
- FEDORA-2022-53aadd995f vendor-advisory
- 20221107 APPLE-SA-2022-11-01-1 Xcode 14.1 mailing-list
- FEDORA-2022-fb088df94c vendor-advisory
- [debian-lts-announce] 20221213 [SECURITY] [DLA 3239-1] git security update mailing-list
- GLSA-202312-15 vendor-advisory
When was it published, and where is the official record?
- Reserved
- September 2, 2022
- Published
- October 19, 2022, 00:00 UTC
- CVE record updated
- August 3, 2024, 12:00 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:58 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:44 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect git?
- Jul 8, 2025CVE-2025-48384 git: interpretation Conflict exploited
- Nov 16, 2026CVE-2026-111760 git: link following (a symlink lets an attacker reach other files)
- Nov 12, 2026CVE-2026-114467 Git: out-of-bounds write (memory corruption)
- Nov 12, 2026CVE-2026-114466 Git: insufficient Granularity of Access Control
- Nov 12, 2026CVE-2026-114469 Git: out-of-bounds read
- Nov 12, 2026CVE-2026-113408 Git: path traversal (reading or writing files outside the intended folder)
- Nov 10, 2026CVE-2026-105437 Git: heap buffer overflow
- Jul 8, 2025CVE-2025-48385 git: argument injection
Questions about CVE-2022-39260
Is CVE-2022-39260 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 3.96% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of git are affected by CVE-2022-39260?
git < 2.30.6, git > 2.31.0, < 2.31.5, git > 2.32.0, < 2.32.4, git > 2.33.0, < 2.33.5, git > 2.34.0, < 2.34.5, git > 2.34.0, < 2.35.5 and 2 more, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2022-39260?
2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5 and 2.35.5, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-39260?
High (8.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-39260?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.