CVE-2026-40034
gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule
- State
- Published
- Severity
- 7.3 High
- Published
- May 26, 2026
- Updated
- Oct 8, 2026
- Reserved
- Apr 8, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.3 High | 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 | VulnCheck |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Products
| Product | Versions |
|---|---|
gitoxidegitoxide |
|
gix-submodulegitoxide |
|
gixgitoxide |
|
References
- GHSA Advisory GHSA-f26g-jm89-4g65vendor-advisory
- https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0patch
- https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dcpatch
- Anthropic CVD Finding ANT-2026-6SNS6KMPthird-party-advisory
- VulnCheck Advisory: gitoxide - Command Injection via Partial .gitmodules Override in gix-submodulethird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.