cve.bz

CVE-2022-29187 Uncontrolled Search Path Element

7.8 highEPSS 0.4%

High (7.8). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-427 Uncontrolled Search Path Element
CWE-282 Improper Ownership Management
OWASP Top 10
A01:2025 Broken Access Control, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-29187 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29187?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29187?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-29187 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
git-scm:gitfrom 2.30.3 before 2.30.5
git-scm:gitfrom 2.31.2 before 2.31.4
git-scm:gitfrom 2.32.1 before 2.32.3
git-scm:gitfrom 2.33.2 before 2.33.4
git-scm:gitfrom 2.34.2 before 2.34.4
git-scm:gitfrom 2.35.2 before 2.35.4
git-scm:gitfrom 2.36.0 before 2.36.2
git-scm:gitfrom 2.37.0 before 2.37.1
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37
apple:xcodebefore 14.1
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10git1:2.20.1-2+deb10u5DLA-3239-1
Debian11git1:2.30.2-1+deb11u1DSA-5332-1
Debian12, 13, 14git1:2.37.2-1DEBIAN-CVE-2022-29187
Ubuntu18.04:LTSgit1:2.17.1-1ubuntu0.12UBUNTU-CVE-2022-29187 USN-5511-1
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.5UBUNTU-CVE-2022-29187 USN-5511-1
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.4UBUNTU-CVE-2022-29187 USN-5511-1
Red Hatenterprise_linux:8::appstreamgit, gitk, gitweb and 17 more0:2.39.1-1.el8RHSA-2023:2859
Red Hatenterprise_linux:9::appstreamgit, gitk, gitweb and 17 more0:2.39.1-1.el9RHSA-2023:2319
Red Hatrhel_eus:8.6::appstreamgit, gitk, gitweb and 17 more0:2.31.8-1.el8_6RHSA-2024:0407
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 moregit2.26.2-150000.41.1SUSE-SU-2022:2535-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 16 morelibgit20.26.8-150000.3.15.1SUSE-SU-2022:3495-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 morelibgit20.28.4-150200.3.3.1SUSE-SU-2022:3494-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 8 moregit2.26.2-27.57.1SUSE-SU-2022:2537-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Development Tools 15 SP3 and 1 moregit2.35.3-150300.10.15.1SUSE-SU-2022:2550-1
SUSELinux Enterprise Module for Development Tools 15 SP4libgit21.3.0-150400.3.3.1SUSE-SU-2022:3283-1
openSUSELeap 15.3, Leap 15.4git2.26.2-150000.41.1SUSE-SU-2022:2535-1
openSUSELeap 15.3, Leap 15.4git2.35.3-150300.10.15.1SUSE-SU-2022:2550-1
openSUSELeap 15.3, Leap 15.4libgit20.26.8-150000.3.15.1SUSE-SU-2022:3495-1
openSUSELeap 15.3, Leap 15.4libgit20.28.4-150200.3.3.1SUSE-SU-2022:3494-1
openSUSELeap 15.4libgit21.3.0-150400.3.3.1SUSE-SU-2022:3283-1
openSUSETumbleweedgit2.37.1-1.1openSUSE-SU-2024:12188-1
openSUSETumbleweedlibgit21.7.1-3.1openSUSE-SU-2024:13449-1
AlmaLinux8git, gitk, gitweb and 12 more2.39.1-1.el8ALSA-2023:2859
AlmaLinux9git, gitk, gitweb and 12 more2.39.1-1.el9ALSA-2023:2319
Alpinev3.13git2.30.5-r0ALPINE-CVE-2022-29187
Alpinev3.14git2.32.3-r0ALPINE-CVE-2022-29187
Alpinev3.15git2.34.4-r0ALPINE-CVE-2022-29187
Alpinev3.16git2.36.2-r0ALPINE-CVE-2022-29187
Alpinev3.17, v3.18, v3.19 and 5 moregit2.37.1-r0ALPINE-CVE-2022-29187
Alpinev3.17, v3.18, v3.19 and 5 morelibgit21.4.4-r0ALPINE-CVE-2022-29187

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw occurs due to an incomplete fix of CVE-2022-24765.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8git-0:2.39.1-1.el8Fixed 2023-05-16RHSA-2023:2859
Red Hat Enterprise Linux 8.6 Extended Update Supportgit-0:2.31.8-1.el8_6Fixed 2024-01-25RHSA-2024:0407
Red Hat Enterprise Linux 9git-0:2.39.1-1.el9Fixed 2023-05-09RHSA-2023:2319
Red Hat Enterprise Linux 6gitNot affected
Red Hat Enterprise Linux 7gitNot affected
Red Hat JBoss Data Grid 7gitOut of support scope
Red Hat Software Collectionsrh-git227-gitNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-29187.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-38 Leveraging/Manipulating Configuration File Search Paths Likelihood: High · Severity: Very High
  • CAPEC-471 Search Order Hijacking Severity: Medium
  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON