7.8

CVE-2022-24765: apple xcode Uncontrolled Search Path Element

CVSS: 7.8v3.1HighModified
AliasesALPINE-CVE-2022-24765MGASA-2022-0147SUSE-SU-2022:1260-1
Published 12-04-2022Last modified 16-12-2025

Vulnerability summary

CVE-2022-24765 is a high (CVSS 7.8) Uncontrolled Search Path Element vulnerability in apple xcode. EPSS estimates a 1.01% chance of exploitation in the next 30 days, higher than 62.5% of scored vulnerabilities.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
1.01%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 8 · Related 4

Timeline

  1. 12-04-2022
    PublishedVulnerability first disclosed.
  2. 16-12-2025
    Last modifiedVulnerability information updated.

Description

Git for Windows is a fork of Git containing Windows-specific patches. This vulnerability affects users working on multi-user machines, where untrusted parties have write access to the same hard disk. Those untrusted parties could create the folder `C:\.git`, which would be picked up by Git operations run supposedly outside a repository while searching for a Git directory. Git would then respect any config in said Git directory. Git Bash users who set `GIT_PS1_SHOWDIRTYSTATE` are vulnerable as well. Users who installed posh-gitare vulnerable simply by starting a PowerShell. Users of IDEs such as Visual Studio are vulnerable: simply creating a new project would already read and respect the config specified in `C:\.git\config`. Users of the Microsoft fork of Git are vulnerable simply by starting a Git Bash. The problem has been patched in Git for Windows v2.35.2. Users unable to upgrade may create the folder `.git` on all drives where Git commands are run, and remove read/write access from those folders as a workaround. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the _parent_ directory of the user profile, e.g. `C:\Users` if the user profile is located in `C:\Users\my-user-name`.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.01%

Chance of exploitation in the next 30 days

Percentile

63%

Versus all other CVEs

30-day change

0.00 pp

From 1.01% on 18-09-2026

18-09-202618-10-2026
EPSS score
1.01%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Suse36 products
  • git&distro=HPE Helion OpenStack 8< 2.26.2-27.52.1
  • git&distro=SUSE Enterprise Storage 6< 2.26.2-150000.36.1
  • git&distro=SUSE Enterprise Storage 7< 2.26.2-150000.36.1
  • git&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 2.26.2-150000.36.1
  • git&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 2.26.2-150000.36.1
Opensuse5 products
  • git-annex&distro=openSUSE Tumbleweed< 10.20220624-1.1
  • git&distro=openSUSE Leap 15.3< 2.26.2-150000.36.1 | < 2.35.3-150300.10.12.1
  • git&distro=openSUSE Leap 15.4< 2.35.3-150300.10.12.1
  • git&distro=openSUSE Tumbleweed< 2.35.3-1.1
  • libgit2&distro=openSUSE Tumbleweed< 1.4.3-1.1
Debian2 products
Alpine1 product
  • git< 2.30.3-r0 | < 2.32.1-r0 | < 2.34.2-r0 | < 2.35.2-r0
Apple1 product
Fedoraproject1 product
Git-for-windows1 product
Git-scm1 product
Mageia1 product
  • git< 2.30.4-1.mga8
Ubuntu1 product
  • git< 1:2.17.1-1ubuntu0.11 | < 1:2.25.1-1ubuntu3.4 | < 1:2.34.1-1ubuntu1.2 | < 1:2.17.1-1ubuntu0.10 | < 1:2.25.1-1ubuntu3.3 | < 1:2.34.1-1ubuntu1.1

10 vendors · 50 products

References

34 links
Show all 34 references