{"id":"CVE-2026-40034","published":"2026-05-26T14:08:48Z","modified":"2026-11-08T14:02:45Z","title":"gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule","vendor":"gitoxide","product":"gitoxide","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00651,"percentile":0.52151,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65","tags":["vendor-advisory"]},{"url":"https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0","tags":["patch"]},{"url":"https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc","tags":["patch"]},{"url":"https://red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP","tags":["third-party-advisory"]},{"url":"https://www.vulncheck.com/advisories/gitoxide-command-injection-via-partial-gitmodules-override-in-gix-submodule","tags":["third-party-advisory"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":10.43},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"gitoxide","affectedVersions":[{"vendor":"gitoxide","product":"gitoxide","versions":["< 0.5.21"]},{"vendor":"gitoxide","product":"gix-submodule","versions":["< 0.29.0"]},{"vendor":"gitoxide","product":"gix","versions":["< 0.84.0"]}],"fixedVersions":[{"vendor":"gitoxide","product":"gitoxide","versions":["0.5.21"]},{"vendor":"gitoxide","product":"gix-submodule","versions":["0.29.0"]},{"vendor":"gitoxide","product":"gix","versions":["0.84.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-26T15:00:27.629890Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"gix","vulnerableRanges":[">=0.31.0, <0.83.0"],"patched":["0.83.0"],"from":["GHSA-f26g-jm89-4g65"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-31831","exploited":false,"provenance":"source"}}