CVE-2026-40034

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

State
Published
Severity
7.3 High
Published
May 26, 2026
Updated
Oct 8, 2026
Reserved
Apr 8, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.07.3 HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HVulnCheck

Weaknesses

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

Affected Products

ProductVersions
gitoxidegitoxide
  • before 0.5.21Affected
  • 0.5.21Not affected
gix-submodulegitoxide
  • before 0.29.0Affected
  • 0.29.0Not affected
gixgitoxide
  • before 0.84.0Affected
  • 0.84.0Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.