BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2022-24765 in Apple Xcode and 4 more products

High 7.8 Industrial / OT

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`.

Affects 5 products from 6 vendors. Description from NVD and MITRE.

CVSS 3.17.8
EPSS1.0%
EPSS percentile64th

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Apple Xcode < 13.4
Debian Debian Linux 10.0
Fedoraproject Fedora 34 35 36 37
Git-Scm Git < 2.35.2
Siemens — —
Phoenixcontact Plcnext Engineer ≤ 2023.3

Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Microsoft Windows

Fix and vendor advisory

  • Update PLCnext Engineer to 2023.6.

Source: VDE-2023-016

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Record details

CVE IDCVE-2022-24765
BreachSpider IDBS-2022-GLOBAL-069312-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2022-04-12
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Compensating controls AI-drafted, review before use

Create the `.git` folder on all drives where Git commands are run and remove read/write access from those folders. Alternatively, define or extend `GIT_CEILING_DIRECTORIES` to cover the parent directory of the user profile, e.g., `C:\Users`.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Check devices from your own code or AI agent: free 14-day trial

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.