SecurityContext

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

IdName
CWE-77Improper Neutralization of Special Elements used in a Command

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0
https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc
https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65
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

Products

ProductAffectedPlatform boundSourcesUrl
gitoxidelabs:gitoxide< 0.5.21nocna/v1/products/gitoxidelabs/gitoxide

Projects

RepositoryLink kindsIndexedUrl
GitoxideLabs/gitoxidecommit, package, security_advisoryyes/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