# CVE-2026-40034: gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-26 · Modified: 2026-11-08
- Aliases: UBUNTU-CVE-2026-40034, DEBIAN-CVE-2026-40034, CGA-58p2-rrxc-4684, CGA-5m9x-q33w-r393, CGA-7989-3xgp-hj53, CGA-97qv-3pjp-pcm8, CGA-jcp4-rr22-4rjq, CGA-jfqf-hm3c-r49w, CGA-jjh4-65x9-vg36, CGA-qqpq-m54f-734c, CGA-rm8v-p2cf-82j5, CGA-vpmp-jmvj-wjw9, CGA-w4gq-x5qf-9vwj, CGA-xm76-pff3-fp99, openSUSE-SU-2026:11038-1, openSUSE-SU-2026:21185-1, CGA-6pc5-6m95-vmc2, CGA-973m-vm8r-jpj5, CGA-c9xh-hp65-hpcr, GHSA-f26g-jm89-4g65, CGA-wv7c-c4vq-6fc3, openSUSE-SU-2026:12338-1
- Record: https://cvemate.com/vulnerability/CVE-2026-40034 · JSON: https://cvemate.com/vulnerability/CVE-2026-40034/json

## Description

```text
gix-submodule before 0.29.0 (gitoxide before 0.5.21, gix before 0.84.0) incorrectly validates the update field in .gitmodules, allowing attackers to bypass the CommandForbiddenInModulesConfiguration guard when a submodule has been initialized with only partial configuration in .git/config. An attacker can inject arbitrary shell commands via the update field in .gitmodules that will be executed when Submodule::update() is called on a previously-initialized submodule, enabling remote code execution.
```

## Signals

- CVSS: 8.5 high (v4.0, NVD) CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- EPSS: 0.651%, percentile 52.621%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard cargo-audit (Chainguard): \< 0.22.2-r0
- chainguard cargo-c (Chainguard): \< 0.10.24-r0
- chainguard codex (Chainguard): \< 0.149.0-r0 \| \< 0.148.0-r1
- chainguard helix (Chainguard): All versions (No fix recorded)
- chainguard jujutsu (Chainguard): \< 0.41.0-r0
- wolfi cargo-audit (Wolfi): \< 0.22.2-r0
- wolfi cargo-c (Wolfi): \< 0.10.24-r0
- wolfi codex (Wolfi): \< 0.149.0-r0 \| \< 0.148.0-r1
- wolfi helix (Wolfi): All versions (No fix recorded)
- Crates.Io gix (Crates.Io): ≥ 0.31.0, \< 0.83.0
- debian rust-gix-submodule (Debian): All versions (No fix recorded) \| \< 0.30.0-1
- ubuntu rust-gix (Ubuntu): All versions (No fix recorded)
- ubuntu rust-gix-submodule (Ubuntu): All versions (No fix recorded)
- gitoxide gitoxide: \< 0.5.21
- gitoxide gix: \< 0.84.0
- gitoxide gix-submodule: \< 0.29.0
- opensuse stgit&distro=openSUSE Leap 16.0 (openSUSE): \< 2.6.0-bp160.1.1
- opensuse stgit&distro=openSUSE Tumbleweed (openSUSE): \< 2.6.0-1.1
- opensuse watchexec&distro=openSUSE Tumbleweed (openSUSE): \< 2.8.0-1.1

## References

- <https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65>
- <https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0>
- <https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc>
- <https://red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP>
- <https://www.vulncheck.com/advisories/gitoxide-command-injection-via-partial-gitmodules-override-in-gix-submodule>
- <https://ubuntu.com/security/CVE-2026-40034>
- <https://www.cve.org/CVERecord?id=CVE-2026-40034>
- <https://security-tracker.debian.org/tracker/CVE-2026-40034>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40034.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40034>
- <https://www.suse.com/security/cve/CVE-2026-40034>
- <https://bugzilla.suse.com/1266429>
- <https://github.com/GitoxideLabs/gitoxide>

---

Data as of 2026-12-05T07:00:11.872Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
