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

Published May 26, 2026
·
Updated

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

Other sources

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.

MITRE

Affected Software

5 affected componentsFixes available
gix-submodule<0.29.0
gitoxide<0.5.21
gix<0.84.0
Microsoft azl3 rust 1.75.0-29<1.75.0-30
1.75.0-30
Microsoft azl3 rust 1.90.0-8<1.90.0-9
1.90.0-9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.75.0-30
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.90.0-9
  3. Upgrade

    Upgrade gitoxide to a version that resolves this vulnerability.

    Fixed in 0.5.21
  4. Upgrade

    Upgrade gix-submodule to a version that resolves this vulnerability.

    Fixed in 0.29.0
  5. Upgrade

    Upgrade gix to a version that resolves this vulnerability.

    Fixed in 0.84.0

Event History

May 26, 2026
CVE Published
via MITRE·02:08 PM
Data Sourced
via MITRE·02:08 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
May 31, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:04 AM
Affected Software
Updated
via Microsoft·08:04 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-40034?

CVE-2026-40034 has a severity rating of high, with a score of 7.8.

2

How do I fix CVE-2026-40034?

To fix CVE-2026-40034, upgrade to gix-submodule version 0.82.0 or later.

3

What type of vulnerability is CVE-2026-40034?

CVE-2026-40034 is a command injection vulnerability.

4

What can an attacker achieve with CVE-2026-40034?

An attacker can inject arbitrary shell commands through a partial override in the .gitmodules configuration.

5

In which software is CVE-2026-40034 found?

CVE-2026-40034 is found in the gix-submodule software package.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203