CVE-2026-40034: gitoxide Command Injection
Vulnerability summary
CVE-2026-40034 is a high (CVSS 8.5) Command Injection vulnerability in gitoxide. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 50.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 3Timeline
- 26-05-2026PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
11 scores · 7 sources · 2 versions- CVE.orgCNA7.3HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NDiffers
- OSV · UbuntuEcosystem advisory · calculated8.5HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated8.5HighCVSS: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
- OSV · WolfiEcosystem advisory · calculated8.5HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.5HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · Crates.ioEcosystem advisory · calculated8.5HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · Crates.ioEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.65%
Chance of exploitation in the next 30 days
Percentile
50%
Versus all other CVEs
30-day change
+0.30 pp
From 0.35% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard5 products
- cargo-audit< 0.22.2-r0
- cargo-c< 0.10.24-r0
- codex< 0.149.0-r0 | < 0.148.0-r1
- helixAll versions (No fix recorded)
- jujutsu< 0.41.0-r0
Gitoxide3 products
- gitoxide< 0.5.21
- gix< 0.84.0
- gix-submodule< 0.29.0
Wolfi3 products
- cargo-audit< 0.22.2-r0
- cargo-c< 0.10.24-r0
- helixAll versions (No fix recorded)
Opensuse2 products
- stgit&distro=openSUSE Leap 16.0< 2.6.0-bp160.1.1
- stgit&distro=openSUSE Tumbleweed< 2.6.0-1.1
Ubuntu2 products
- rust-gixAll versions (No fix recorded)
- rust-gix-submoduleAll versions (No fix recorded)
Crates.Io1 product
- gix≥ 0.31.0, < 0.83.0
Debian1 product
- rust-gix-submoduleAll versions (No fix recorded) | < 0.30.0-1
7 vendors · 17 products
References
13 links- github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65Vendor AdvisoryREPORTAdvisoryWEB