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

- Severity: High 7.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T19:23:45.000Z
- Modified: 2026-11-08T14:02:45.798Z
- Also known as: GHSA-f26g-jm89-4g65
- Weaknesses: CWE-77, CWE-183, CWE-349, CWE-501
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gitoxide gitoxide: before 0.5.21 (not affected: 0.5.21)
- gitoxide gix-submodule: before 0.29.0 (not affected: 0.29.0)
- gitoxide gix: before 0.84.0 (not affected: 0.84.0)
- gix (crates.io): from 0.31.0 before 0.83.0

## Every score

- VulnCheck: CVSS:4.0 7.3 High `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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65> (exploit, vendor-advisory, web)
- <https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0> (patch, web)
- <https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc> (patch, web)
- <https://red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP> (third-party-advisory, web)
- <https://www.vulncheck.com/advisories/gitoxide-command-injection-via-partial-gitmodules-override-in-gix-submodule> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40034> (advisory)
- <https://github.com/GitoxideLabs/gitoxide> (package)

## Sources

- CVE List: [CVE-2026-40034](https://www.cve.org/CVERecord?id=CVE-2026-40034), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-f26g-jm89-4g65](https://github.com/advisories/GHSA-f26g-jm89-4g65), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40034](https://nvd.nist.gov/vuln/detail/CVE-2026-40034), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-40034 · Whole record: https://cve.day/CVE-2026-40034.json · Rebuilt by cve.day 2026-11-25T22:59:22.322Z
