CVE-2022-29187 in Apple Xcode and 9 more products
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.
Affects 10 products from 5 vendors. Description from NVD and MITRE.
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
| Vendor | Product | Affected versions |
|---|---|---|
| Apple | Xcode | < 14.1 |
| Debian | Debian Linux | 10.0 |
| Fedoraproject | Fedora | 35 36 37 |
| Git-Scm | Git | ≥ 2.30.3, < 2.30.5 ≥ 2.31.2, < 2.31.4 ≥ 2.32.1, < 2.32.3 ≥ 2.33.2, < 2.33.4 ≥ 2.34.2, < 2.34.4 ≥ 2.35.2, < 2.35.4+2 more≥ 2.36.0, < 2.36.2 ≥ 2.37.0, < 2.37.1 |
| Siemens | SCALANCE XCM328 | < 2.4 |
| Siemens | SCALANCE XCM332 | < 2.4 |
| Siemens | SCALANCE XRH334 | < 2.4 |
| Siemens | SCALANCE XRM334 | < 2.4 |
| Siemens | SCALANCE XCM324 | < 2.4 |
| Siemens | SCALANCE XCH328 | < 2.4 |
| Phoenixcontact | Axc F 1152 Firmware | < 2023.0.0 |
| Phoenixcontact | Axc F 2152 Firmware | < 2023.0.0 |
| Phoenixcontact | Axc F 3152 Firmware | < 2023.0.0 |
| Phoenixcontact | Bpc 9102S Firmware | < 2023.0.0 |
| Phoenixcontact | Plcnext Engineer | ≤ 2023.3 |
| Phoenixcontact | Rfc 4072R Firmware | < 2023.0.0 |
| Phoenixcontact | Rfc 4072S Firmware | < 2023.0.0 |
Fix and vendor advisory
- SCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 7 more: Update to V2.4 or later version
Source: ICSA-24-046-11
- Update to the latest 2023.0.0 LTS Firmware Release. PHOENIX CONTACT recommends to always use an up-to-date version of the PLCnext Engineer.
Source: VDE-2023-001
- Update PLCnext Engineer to 2023.6.
Source: VDE-2023-016
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2022-29187 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-317244-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-07-12 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Ensure that Git is not run as root or with elevated privileges. Implement strict access controls on shared directories to prevent unauthorized users from creating Git repositories.
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.