CVEfocus › CVE database › CVE-2026-40034

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

CVSS 7.8 HighEPSS 0.4% (higher than 22% of CVEs)Published 2026-05-26Updated 2026-11-08Assigner: VulnCheck

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.

CWE-77

What to do

Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
3Fix pending
2Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-gixFix pendingUBUNTU-CVE-2026-40034
Ubuntu 26.10rust-gix-submoduleFix pendingUBUNTU-CVE-2026-40034
Ubuntu 26.04rust-gixUnder investigationUBUNTU-CVE-2026-40034
Ubuntu 26.04rust-gix-submoduleUnder investigationUBUNTU-CVE-2026-40034
Ubuntu 25.10rust-gixWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40034
Ubuntu 25.10rust-gix-submoduleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40034
Debian 14rust-gix-submoduleFixed0.30.0-1DEBIAN-CVE-2026-40034
Debian 13rust-gix-submoduleFix pendingDEBIAN-CVE-2026-40034
crates.io librarygixFixed0.83.0GHSA-f26g-jm89-4g65

What the vendor says

As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.