CVE-2026-40034: gix-submodule - Command Injection
- Cve: CVE-2026-40034
- Name: gix-submodule - Command Injection
- 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.
- Impact: Attackers can execute arbitrary shell commands remotely, potentially leading to full system compromise.
- Remediation: Update to version 0.82.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00651
- Epss percentile: 0.52166
- Assignee: [email protected]
- Published at: 2026-05-26T15:16:35Z
- Age in days: 182
- Modified at: 2026-10-08T16:17:14Z
- Patch available: yes
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40034
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gitoxidelabs:gitoxide | < 0.5.21 | no | cna | /v1/products/gitoxidelabs/gitoxide |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| GitoxideLabs/gitoxide | commit, package, security_advisory | yes | /v1/repositories/GitoxideLabs/gitoxide |
Index
- Repositories: 14
- Repositories high signal: 7
- Packages: 1
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts