8.5

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

Deferred
AliasesUBUNTU-CVE-2026-40034DEBIAN-CVE-2026-40034CGA-58p2-rrxc-4684
Published 26-05-2026Last modified 08-11-2026

Vulnerability summary

CVE-2026-40034 is a high (CVSS 8.5) vulnerability in gitoxide. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 52.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.5/10
010
High · v4.0 (NVD)
EPSS score
0.65%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 3

Timeline

  1. 26-05-2026
    PublishedVulnerability first disclosed.
  2. 08-11-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

11 scores · 7 sources · 2 versions

EPSS trend

Probability

0.65%

Chance of exploitation in the next 30 days

Percentile

53%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.65% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard5 products
  • cargo-audit< 0.22.2-r0
  • cargo-c< 0.10.24-r0
  • codex< 0.149.0-r0 | < 0.148.0-r1
  • helixAll versions (No fix recorded)
  • jujutsu< 0.41.0-r0
Wolfi4 products
  • cargo-audit< 0.22.2-r0
  • cargo-c< 0.10.24-r0
  • codex< 0.149.0-r0 | < 0.148.0-r1
  • helixAll versions (No fix recorded)
Gitoxide3 products
Opensuse3 products
  • stgit&distro=openSUSE Leap 16.0< 2.6.0-bp160.1.1
  • stgit&distro=openSUSE Tumbleweed< 2.6.0-1.1
  • watchexec&distro=openSUSE Tumbleweed< 2.8.0-1.1
Ubuntu2 products
  • rust-gixAll versions (No fix recorded)
  • rust-gix-submoduleAll versions (No fix recorded)
Crates.Io1 product
  • gix≥ 0.31.0, < 0.83.0
Debian1 product
  • rust-gix-submoduleAll versions (No fix recorded) | < 0.30.0-1

7 vendors · 19 products

References

13 links
Show all 13 references