Vulnerability in Apple Xcode
CVE-2022-24765
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`.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.0 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS: 0.010 (62.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 63rd percentile — 62.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.010 · newest: 0.010 · change: 0.000
Affected products
- Apple Xcode
- Git-For-Windows Git — versions < 2.35.2
- Git-Scm Git
- Microsoft Windows
- Debian Linux — versions 10.0
- Fedoraproject Fedora — versions 34, 35, 36
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/git-for-windows/git/security/advisories/GHSA-vw2c-22j4-2fh2 (Third Party Advisory, Mitigation)
- git-scm.com/book/en/v2/Appendix-A:-Git-in-Other-Environments-Git-in-Bash (Vendor Advisory)
- git-scm.com/docs/git (Vendor Advisory)
- www.openwall.com/lists/oss-security/2022/04/12/7 (mailing-list, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
- support.apple.com/kb/HT213261 (Third Party Advisory)
- seclists.org/fulldisclosure/2022/May/31 (mailing-list, Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory)
Frequently asked questions
- What is CVE-2022-24765?
- CVE-2022-24765 is a medium-severity vulnerability in Apple Xcode, classified under Uncontrolled Search Path Element. CVSS score: 6.0/10. Published 2022-04-12.
- How severe is CVE-2022-24765?
- Medium severity. CVSS v3 base score is 6.0 out of 10.
- Is CVE-2022-24765 known to be exploited?
- 16 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.