← CVE Intelligence

CVE-2026-40034

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

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
gitoxide / gitoxideaffected 0 before 0.5.21; unaffected 0.5.21
gitoxide / gix-submoduleaffected 0 before 0.29.0; unaffected 0.29.0
gitoxide / gixaffected 0 before 0.84.0; unaffected 0.84.0

CWE

CWE-77

References

ADP enrichment

CISA-ADP

No English description supplied.