CVE-2022-41903 in Abb ARM600 and 7 more products
Git is distributed revision control system. `git log` can display commits in an arbitrary format using its `--format` specifiers. This functionality is also exposed to `git archive` via the `export-subst` gitattribute. When processing the padding operators, there is a integer overflow in `pretty.c::format_and_pad_commit()` where a `size_t` is stored improperly as an `int`, and then added as an offset to a `memcpy()`. This overflow can be triggered directly by a user running a command which invokes the commit formatting machinery (e.g., `git log --format=...`). It may also be triggered indirectly through git archive via the export-subst mechanism, which expands format specifiers inside of files within the repository during a git archive. This integer overflow can result in arbitrary heap writes, which may result in arbitrary code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade. Users who are unable to upgrade should disable `git archive` in untrusted repositories. If you expose git archive via `git daemon`, disable it by running `git config --global daemon.uploadArch false`.
Affects 8 products from 3 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, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Abb | ARM600 | ≥ 4.1.2, ≤ 5.0.3 |
| Git-Scm | Git | 2.39.0 ≤ 2.30.6 ≥ 2.31.0, ≤ 2.31.5 ≥ 2.32.0, ≤ 2.32.4 ≥ 2.33.0, ≤ 2.33.5 ≥ 2.34.0, ≤ 2.34.5+4 more≥ 2.35.0, ≤ 2.35.5 ≥ 2.36.0, ≤ 2.36.3 ≥ 2.37.0, ≤ 2.37.4 ≥ 2.38.0, ≤ 2.38.2 |
| Siemens | SCALANCE XCM328 | < 2.4 |
| Siemens | SCALANCE XCM332 | < 2.4 |
| Siemens | SCALANCE XCH328 | < 2.4 |
| Siemens | SCALANCE XRM334 | < 2.4 |
| Siemens | SCALANCE XRH334 | < 2.4 |
| Siemens | SCALANCE XCM324 | < 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-2022-41903 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-062575-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2023-01-17 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Disable `git archive` in untrusted repositories and configure `git config --global daemon.uploadArch false` if `git archive` is exposed via `git daemon`.
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.