CVE-2026-40034
CVE-2026-40034 · gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule
CVSS 7.3 · High · EPSS 0.4% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- gitoxideUpdate to 0.5.21
- gix-submoduleUpdate to 0.29.0
- gixUpdate to 0.84.0
- rust-gix-submodule Debian 13No fix published
- and 7 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-gix-submodule"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- openSUSE-SU-2026:12338-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21558-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11474-1 · openSUSE Tumbleweed ·
- openSUSE-SU-2026:21185-1 · openSUSE Leap 16.0 ·
- openSUSE-SU-2026:11038-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
gitoxide
- Versions
- ≥ 0, < 0.5.21: Affected (semver)
- 0.5.21: Not affected (semver)
Update to 0.5.21
gix-submodule
- Versions
- ≥ 0, < 0.29.0: Affected (semver)
- 0.29.0: Not affected (semver)
Update to 0.29.0
gix
- Versions
- ≥ 0, < 0.84.0: Affected (semver)
- 0.84.0: Not affected (semver)
Update to 0.84.0
rust-gix-submodule Debian 13
- Versions
- 0.16.0-1
- 0.20.0-1
- 0.30.0-1
- 0.33.0-1
- 0.34.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-gix-submodule Debian 14
- Versions
- 0.16.0-1
- 0.20.0-1
- Affected ranges
- ECOSYSTEM: < 0.30.0-1
Update to 0.30.0-1
rust-gix Ubuntu 25.10
- Versions
- 0.69.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-gix-submodule Ubuntu 25.10
- Versions
- 0.16.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-gix Ubuntu 26.10
- Versions
- 0.73.0-1
- 0.83.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-gix-submodule Ubuntu 26.10
- Versions
- 0.20.0-1
- 0.30.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-gix Ubuntu 26.04 LTS
- Versions
- 0.69.1-1
- 0.69.1-2
- 0.73.0-1
- 0.73.0-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-gix-submodule Ubuntu 26.04 LTS
- Versions
- 0.16.0-1
- 0.20.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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://nvd.nist.gov/vuln/detail/CVE-2026-40034