CVE-2026-40034 PUBLISHED

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

Assigner: VulnCheck
Reserved: 08.04.2026 Published: 26.05.2026 Updated: 26.05.2026

gix-submodule before 0.82.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.

Metrics

CVSS 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
CVSS Score: 7.3

Product Status

Vendor gitoxide
Product gitoxide
Versions Default: unaffected
  • affected from 0 to 0.82.0 (excl.)
  • Version 0.82.0 is unaffected

References

Problem Types

  • Improper Neutralization of Special Elements used in a Command ('Command Injection') CWE