CVE & CISA-KEV Catalog

CVE-2022-29187

HIGH
7.8
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
gitAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-allAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
git-coreAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-core-debuginfoAmazon
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-core-docAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
git-credential-libsecretAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-credential-libsecret-debuginfoAmazon
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-cvsAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
git-daemonAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-daemon-debuginfoAmazon
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-debuginfoAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-debugsourceAmazon
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
Fixed in:0:2.39.1-1.amzn2023.0.2
git-emailAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
git-guiAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
git-instawebAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
git-p4Amazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
git-subtreeAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
git-svnAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
gitkAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
gitwebAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
perl-GitAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
perl-Git-SVNAmazon
Fixed in:0:2.37.1-1.amzn2.0.1
Fixed in:0:2.39.1-1.amzn2023.0.2
gitDebian
Fixed in:1:2.37.2-1CVE-2022-29187
Fixed in:1:2.37.2-1CVE-2022-29187
Fixed in:1:2.37.2-1CVE-2022-29187
gitRocky
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
gitRed Hat / RHEL
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
git-allRed Hat / RHEL
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.39.1-1.el9RHSA-2023:2319
git-allRocky
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el9RHSA-2023:2319
git-coreRed Hat / RHEL
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
git-coreRocky
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
git-core-debuginfoRocky
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.31.8-1.el8_6RHSA-2024:0407
Fixed in:0:2.39.1-1.el8RHSA-2023:2859
Fixed in:0:2.39.1-1.el8RHSA-2023:2859

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.45%probability of exploitation in 30 days
38thpercentile

Low risk: more likely to be exploited than 38% of all known CVEs.

References

Related Vulnerabilities

Other CWE-282 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-0386High7.87.9%KEVFix
CVE-2026-23514High8.81.0%--
CVE-2024-8949Medium6.30.7%--
CVE-2024-3383High7.40.6%-Fix
CVE-2020-10632High8.80.5%--
CVE-2023-7226Medium6.30.4%--

Common questions

How do I fix CVE-2022-29187?

Published advisories record a fix for 64 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-29187 being actively exploited?

Not that we know of. CVE-2022-29187 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.45% is the estimated probability that it will be exploited in the next 30 days. That is higher than 38% of all scored CVEs.

How severe is CVE-2022-29187?

CVE-2022-29187 has a CVSS v3 base score of 7.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-29187 affect?

Published advisories record a fix for git (Amazon), git-all (Amazon), git-core (Amazon), git-core-debuginfo (Amazon), and 60 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-29187
CVE-2022-29187 severity badge

Markdown

[![CVE-2022-29187](https://tridentstack.com/cve/badge/CVE-2022-29187.svg)](https://tridentstack.com/cve/CVE-2022-29187)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-29187"><img src="https://tridentstack.com/cve/badge/CVE-2022-29187.svg" alt="CVE-2022-29187"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.