CVE-2026-40034 Details
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.
A command injection vulnerability has been identified in the Gitoxide gix-submodule component, affecting versions prior to 0.82.0. The issue arises from improper validation of the update field in .gitmodules files. This flaw allows attackers to bypass the CommandForbiddenInModulesConfiguration guard, particularly when a submodule has been initialized with only partial configuration in the local .git/config file. Exploitation involves injecting arbitrary shell commands through the update field in .gitmodules, which are executed during the submodule update process, leading to remote code execution.
Users can upgrade to Gitoxide version 0.82.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 26, 2026CISA-ADP
Assessed May 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65 | CISA-ADP | AdvisoryExploitRemedyTechnical AnalysisVendor |
| https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0 | [email protected] | Source CodeVendor |
| https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc | [email protected] | Source CodeVendor |
| https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65 | [email protected] | AdvisoryExploitRemedyTechnical AnalysisVendor |
| https://red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP | [email protected] | |
| https://www.vulncheck.com/advisories/gitoxide-command-injection-via-partial-gitmodules-override-in-gix-submodule | [email protected] | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| GitoxideLabs gix-submodule | >= 0, < 0.82.0 |
CPE
Remediation
| |
| GitoxideLabs gitoxide | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 28, 2026 | CVE Modified | [email protected] |
| May 26, 2026 | CVE Modified | CISA-ADP |
| May 26, 2026 | New CVE Received | [email protected] |
Volerion