LiveActive security incident?Get immediate response
CVE Record

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

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.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This flaw affects Gitoxide components that process Git submodules. A malicious repository can place unsafe instructions in submodule metadata that may run commands when an application updates an already-initialized submodule. The business risk is code execution in developer tools, CI jobs, or automation that handles untrusted repositories.

Executive priority

Treat this as high priority for engineering environments that ingest third-party code. Patch affected dependencies promptly because compromise could execute commands inside build, analysis, or developer automation contexts.

Technical view

gix-submodule before 0.29.0, gitoxide before 0.5.21, and gix before 0.84.0 incompletely validate the .gitmodules update field. With partial submodule configuration in .git/config, the CommandForbiddenInModulesConfiguration guard can be bypassed, leading to command execution when Submodule::update() is invoked.

Likely exposure

Exposure is most likely in applications, developer tooling, or CI systems that use affected gitoxide, gix, or gix-submodule versions and call Submodule::update() on repositories containing previously initialized submodules, especially from external or user-controlled sources.

Exploitation context

The source bundle reports remote code execution potential but does not show confirmed active exploitation. KEV is false. Exploitation requires user or workflow interaction with a crafted repository state and a vulnerable submodule update path.

Researcher notes

The key condition is a previously initialized submodule with only partial configuration in .git/config, allowing .gitmodules update validation bypass. Do not assume general Git exposure; focus on gitoxide-based submodule update paths and affected library versions.

Mitigation direction

  • Upgrade gitoxide to 0.5.21 or later where used.
  • Upgrade gix to 0.84.0 or later where used.
  • Upgrade gix-submodule to 0.29.0 or later where used.
  • Avoid processing untrusted repositories with vulnerable submodule update workflows until upgraded.
  • Review the vendor GHSA and patch commits for project-specific guidance.

Validation and detection

  • Inventory Rust dependencies and lockfiles for gitoxide, gix, and gix-submodule versions.
  • Identify services or CI jobs that call Submodule::update().
  • Check whether those workflows process external or user-supplied repositories.
  • Review repository ingestion controls for submodule handling and initialization state.
  • Confirm patched versions are deployed in developer workstations and automation images.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-77: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-40034 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
3Timeline events
1ADP providers
6Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: noTechnical Impact: total

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H1.85.9VulnCheck
7.3CVSS 4.0HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck

Vulnerability scoring details

Base CVSS 4.0 score

7.3High
CVSS 4.0 vector shape for CVE-2026-40034Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: 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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
gitoxidegitoxide0, 0.5.21unaffected
gitoxidegix-submodule0, 0.29.0unaffected
gitoxidegix0, 0.84.0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-77 · source CWE mapping

Improper Neutralization of Special Elements used in a Command ('Command Injection')

Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.