Vulnerability
CVE-2026-40034
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.
30 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
ALAS2-2026-3808
Amazon Linux 2 2017.12 - ALAS2-2026-3808: important priority package update for rust
-
ALAS2023-2026-1951
Amazon Linux 2023 - ALAS2023-2026-1951: Important priority package update for rust
-
ALAS2023-2026-2024
Amazon Linux 2023 - ALAS2023-2026-2024: Important priority package update for rust-cargo-c
-
AZL-89292
CVE-2026-40034 affecting package rust for versions less than 1.75.0-30
-
AZL-89295
CVE-2026-40034 affecting package rust for versions less than 1.90.0-9
- CGA-58p2-rrxc-4684
- CGA-5m9x-q33w-r393
- CGA-6pc5-6m95-vmc2
- CGA-7989-3xgp-hj53
- CGA-973m-vm8r-jpj5
- CGA-97qv-3pjp-pcm8
- CGA-c9xh-hp65-hpcr
- 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-wv7c-c4vq-6fc3
- CGA-xm76-pff3-fp99
-
DEBIAN-CVE-2026-40034
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…
-
GHSA-f26g-jm89-4g65
gitoxide: CommandForbiddenInModulesConfiguration Bypass in gix_submodule::File::update() Enables Arbitrary Command Execution via .gitmodules
-
SUSEVEX-CVE-2026-40034
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…
-
UBUNTU-CVE-2026-40034
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…
-
openSUSE-SU-2026:11038-1
stgit-2.6.0-1.1 on GA media
-
openSUSE-SU-2026:11474-1
gitoxide-0.56.0-1.1 on GA media
-
openSUSE-SU-2026:12338-1
watchexec-2.8.0-1.1 on GA media
-
openSUSE-SU-2026:21185-1
Security update for stgit
-
openSUSE-SU-2026:21558-1
Security update for gitoxide
References
- https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0
- https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc
- https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65
- 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