Vulnerability · Published May 26, 2026 · Assigned by VulnCheck
CVE-2026-40034gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule
High 7.8
In plain English
A high-severity command injection in gitoxide from gitoxide. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | rust-gix-submodule | no fix listed | DEBIAN-CVE-2026-40034 |
| Debian:14 | rust-gix-submodule | 0.30.0-1 | DEBIAN-CVE-2026-40034 |
| Ubuntu:25.10 | rust-gix | no fix listed | UBUNTU-CVE-2026-40034 |
| Ubuntu:26.04:LTS | rust-gix | no fix listed | UBUNTU-CVE-2026-40034 |
| Ubuntu:26.10 | rust-gix | no fix listed | UBUNTU-CVE-2026-40034 |
| Ubuntu:25.10 | rust-gix-submodule | no fix listed | UBUNTU-CVE-2026-40034 |
| Ubuntu:26.04:LTS | rust-gix-submodule | no fix listed | UBUNTU-CVE-2026-40034 |
| Ubuntu:26.10 | rust-gix-submodule | no fix listed | UBUNTU-CVE-2026-40034 |
Affected products (as reported)
Weakness: CWE-77 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- GHSA Advisory GHSA-f26g-jm89-4g65 vendor-advisory
- https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0 patch
- https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc patch
- Anthropic CVD Finding ANT-2026-6SNS6KMP third-party-advisory
- VulnCheck Advisory: gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule third-party-advisory