CVE-2023-23946 in Git-Scm Git and 6 more products
Git, a revision control system, is vulnerable to path traversal prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8. By feeding a crafted input to `git apply`, a path outside the working tree can be overwritten as the user who is running `git apply`. A fix has been prepared and will appear in v2.39.2, v2.38.4, v2.37.6, v2.36.5, v2.35.7, v2.34.7, v2.33.7, v2.32.6, v2.31.7, and v2.30.8. As a workaround, use `git apply --stat` to inspect a patch before applying; avoid applying one that creates a symbolic link and then creates a file beyond the symbolic link.
Affects 7 products from 2 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Git-Scm | Git | < 2.30.8 ≥ 2.31.0, < 2.31.7 ≥ 2.32.0, < 2.32.6 ≥ 2.33.0, < 2.33.7 ≥ 2.34.0, < 2.34.7 ≥ 2.35.0, < 2.35.7+4 more≥ 2.36.0, < 2.36.5 ≥ 2.37.0, < 2.37.6 ≥ 2.38.0, < 2.38.4 ≥ 2.39.0, < 2.39.2 |
| Siemens | SCALANCE XCM324 | < 2.4 |
| Siemens | SCALANCE XCM328 | < 2.4 |
| Siemens | SCALANCE XCH328 | < 2.4 |
| Siemens | SCALANCE XRH334 | < 2.4 |
| Siemens | SCALANCE XRM334 | < 2.4 |
| Siemens | SCALANCE XCM332 | < 2.4 |
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
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2023-23946 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-061844-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2023-02-14 |
| Last modified | 2026-10-08 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement file system permissions and access controls to restrict write access to sensitive directories. Regularly audit and monitor Git operations to detect and respond to suspicious activities.
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-10-08.