{"id":"CVE-2026-40034","revision":"4db98188a48f42659bbfecc2f12463e4","records":[{"revision":"4db98188a48f42659bbfecc2f12463e4","observedAt":"2026-11-08T16:11:25.944+00:00","statement":{"source":"cve-program","id":"CVE-2026-40034","aliases":[],"title":"gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule","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.","state":0,"publishedAt":"2026-05-26T14:08:48.264+00:00","modifiedAt":"2026-11-08T14:02:45.798+00:00","affected":[{"ecosystem":"Vendor product","name":"gitoxide","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gitoxide\",\n                    \"product\": \"gitoxide\",\n                    \"packageURL\": \"pkg:cargo/gitoxide\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"0.5.21\"\n                        },\n                        {\n                            \"version\": \"0.5.21\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"gix-submodule","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gitoxide\",\n                    \"product\": \"gix-submodule\",\n                    \"packageURL\": \"pkg:cargo/gix\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"0.29.0\"\n                        },\n                        {\n                            \"version\": \"0.29.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"gix","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gitoxide\",\n                    \"product\": \"gix\",\n                    \"packageURL\": \"pkg:cargo/gix\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"0.84.0\"\n                        },\n                        {\n                            \"version\": \"0.84.0\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":7.3,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-40034","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-40034","identifiers":["CVE-2026-40034"]},"retained":false,"historicalAffected":[]}],"coverage":[]}