CVE-2022-24765: apple xcode Uncontrolled Search Path Element
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.
Advisory lineage
Upstream 0 · Downstream 8 · Related 4Timeline
- 12-04-2022PublishedVulnerability first disclosed.
- 16-12-2025Last 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- CVE.orgCNA6.0MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated6.0MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:NDiffers
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected 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
- git< 1:2.35.2-1
- debian_linuxEOL10.0
Alpine1 product
- git< 2.30.3-r0 | < 2.32.1-r0 | < 2.34.2-r0 | < 2.35.2-r0
Apple1 product
- xcode< 13.4
Fedoraproject1 product
- fedoraEOL34 | 35 | 36 | 37
Git-for-windows1 product
- git< 2.35.2
Git-scm1 product
- git< 2.35.2
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- github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2MitigationThird Party Advisory
- git-scm.com/docs/gitVendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- support.apple.com/kb/HT213261Third Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
Show all 34 references
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- security.gentoo.org/glsa/202312-15Vendor Advisory