CVE-2026-40034 HIGH

CVE-2026-40034: gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule

Vendor Gitoxide
Product gitoxide
Weakness CWE-77
Published May 26, 2026
Last update May 28, 2026

CVSS base score

7.3/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 26, 2026 CVE published
May 28, 2026 Record updated