Quick answers
- Is This vulnerability exploited in the wild?
- No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
- How severe is This vulnerability?
- High severity, with a CVSS score of 7.8, published 26 May 2026.
- Which products and versions are affected?
- gix (crates.io) >= 0.31.0, < 0.83.0.
- Is there a fix for This vulnerability?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is This vulnerability attacked?
- It is attacked with local access, in a software library.
- Am I affected?
- Check whether you run gix (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A command injection vulnerability exists in gix-submodule due to an incorrect validation logic in the CommandForbiddenInModulesConfiguration guard. The `gix_submodule::File::update()` function fails to verify that a submodule's 'update' command originates from a trusted local configuration (.git/config) rather than the attacker-controlled .gitmodules file. If a submodule is partially initialized in the local config, the guard is disarmed, allowing the library to execute arbitrary shell commands defined in the .gitmodules file when Submodule::update() is called. This bypasses the security mechanism intended to prevent remote code execution from untrusted repository metadata. The issue is addressed in version 0.83.0.
Affected products
- gitoxide gix-submodule >= 0.31.0, < 0.83.0
- gitoxide gix >= 0.31.0, < 0.83.0
Timeline
- 2026-04-25: advisory: Original advisory GHSA-f26g-jm89-4g65 published by maintainer
- 2026-05-26: disclosed: NVD publication of CVE-2026-40034
- 2026-06-30: other: Duplicate advisory GHSA-m4f9-c775-wg56 withdrawn
References
- https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65
- https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0
- https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc
- https://red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP
- https://www.vulncheck.com/advisories/gitoxide-command-injection-via-partial-gitmodules-override-in-gix-submodule