Home / git / git / CVE-2022-29187
CVE-2022-29187: is it exploited, and which versions of git are affected and fixed?
CVE-2022-29187 is an improper Ownership Management 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, 14:38 UTC). Affected: git >= 2.30.3, < 2.30.5, git >= 2.31.2, < 2.31.4, git >= 2.32.1, < 2.32.3 and 5 more (CVE record by GitHub_M). Fixed in 2.30.5, 2.31.4, 2.32.3, 2.33.4 and 2 more (NVD). Severity: High (7.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:47 UTC.
What is CVE-2022-29187?
Bypass of safe.directory protections in Git
Git is a distributed revision control system. Git prior to versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5, is vulnerable to privilege escalation in all platforms. An unsuspecting user could still be affected by the issue reported in CVE-2022-24765, for example when navigating as root into a shared tmp directory that is owned by them, but where an attacker could create a git repository. Versions 2.37.1, 2.36.2, 2.35.4, 2.34.4, 2.33.4, 2.32.3, 2.31.4, and 2.30.5 contain a patch for this issue. The simplest way to avoid being affected by the exploit described in the example is to avoid running git as root (or an Administrator in Windows), and if needed to reduce its use to a minimum. While a generic workaround is not possible, a system could be hardened from the exploit described in the example by removing any such repository if it exists already and creating one as root to block any future attacks.
From the CVE record by GitHub_M, last updated August 3, 2024, 06:17 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| git | git | >= 2.30.3, < 2.30.5 >= 2.31.2, < 2.31.4 >= 2.32.1, < 2.32.3 >= 2.33.2, < 2.33.4 >= 2.34.2, < 2.34.4 >= 2.35.2, < 2.35.4 >= 2.36, < 2.36.2 >= 2.37, < 2.37.1 |
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 | from 2.30.3 before 2.30.5 | application |
| git-scm | git | from 2.31.2 before 2.31.4 | application |
| git-scm | git | from 2.32.1 before 2.32.3 | application |
| git-scm | git | from 2.33.2 before 2.33.4 | application |
| git-scm | git | from 2.34.2 before 2.34.4 | application |
| git-scm | git | from 2.35.2 before 2.35.4 | application |
| git-scm | git | from 2.36.0 before 2.36.2 | application |
| git-scm | git | from 2.37.0 before 2.37.1 | 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:39 UTC.
How severe is CVE-2022-29187?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.9 | CVSS 2.0 | AV:L/AC:M/Au:N/C:C/I:C/A:C | 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-29187 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.45% probability of exploitation activity in the next 30 days, percentile 40.5 (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-j342-m5hw-rr3v
- https://github.blog/2022-04-12-git-security-vulnerability-announced
- https://lore.kernel.org/git/xmqqv8s2fefi.fsf%40gitster.g/T/#u
- [oss-security] 20220713 Git v2.37.1 and friends for CVE-2022-29187 mailing-list
- FEDORA-2022-dfd7e7fc0e vendor-advisory
- FEDORA-2022-2a5de7cb8b vendor-advisory
- https://support.apple.com/kb/HT213496
- 20221107 APPLE-SA-2022-11-01-1 Xcode 14.1 mailing-list
- [debian-lts-announce] 20221213 [SECURITY] [DLA 3239-1] git security update mailing-list
- FEDORA-2023-470c7ea49e vendor-advisory
- FEDORA-2023-e3c8abd37e vendor-advisory
- FEDORA-2023-1068309389 vendor-advisory
- FEDORA-2023-3ec32f6d4e vendor-advisory
- GLSA-202312-15 vendor-advisory
- GLSA-202401-17 vendor-advisory
When was it published, and where is the official record?
- Reserved
- April 13, 2022
- Published
- July 12, 2022, 00:00 UTC
- CVE record updated
- August 3, 2024, 06:17 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:39 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:47 UTC; KEV December 3, 2026, 14: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-29187
Is CVE-2022-29187 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:38 UTC. FIRST's EPSS gives it a 0.45% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of git are affected by CVE-2022-29187?
git >= 2.30.3, < 2.30.5, git >= 2.31.2, < 2.31.4, git >= 2.32.1, < 2.32.3, git >= 2.33.2, < 2.33.4, git >= 2.34.2, < 2.34.4, git >= 2.35.2, < 2.35.4 and 2 more, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2022-29187?
2.30.5, 2.31.4, 2.32.3, 2.33.4, 2.34.4 and 2.35.4, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-29187?
High (7.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-29187?
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.