Skip to main content
← All vulnerabilities
CVE-2026-40034GHSA-F26G-JM89-4G65

gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.5.21, 0.29.0, 0.84.0, 0.83.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • gitoxide gitoxide

    fixed in 0.5.21

  • gitoxide gix-submodule

    fixed in 0.29.0

  • gitoxide gix

    fixed in 0.84.0

  • gixcrates.io

    From 0.31.0 · fixed in 0.83.0

References 5

GitHub · GitoxideLabs/gitoxide

red.anthropic.com

vulncheck.com