GHSA-m4f9-c775-wg56: Duplicate Advisory Gitoxide: CommandForbiddenInModulesConfiguration Bypass Vulnerability

HIGH
CVSS 7.8
CWE-77
Published
Advisory Summary

GHSA-m4f9-c775-wg56 is a HIGH (CVSS 7.8) gitoxide: commandforbiddeninmodulesconfiguration bypass vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Duplicate Advisory libraries in the crates.io ecosystem. The issue involves gitoxide: commandforbiddeninmodulesconfiguration bypass in gix_submodule::file::update() enables arbitrary command execution via .gitmodules. Remediation is available by upgrading affected packages to version 0.83.0.

GHSA-m4f9-c775-wg56 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-m4f9-c775-wg56
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Duplicate Advisory
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-m4f9-c775-wg56

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gix fixed: 0.83.0
Upgrade gix to 0.83.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for gix

How to Check if You Are Affected

To determine whether your application is affected by GHSA-m4f9-c775-wg56, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for gix

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.83.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-f26g-jm89-4g65. This link is maintained to preserve external references. ### Original Description gix-submodule before 0.82.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.

GHSA-m4f9-c775-wg56 Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
0.83.0
Product / Package Ecosystem Affected Versions Fixed Version
gix
crates.io
≥ 0.31.0
< 0.83.0
0.83.0

References

Frequently Asked Questions

What is GHSA-m4f9-c775-wg56?
GHSA-m4f9-c775-wg56 is a security vulnerability in Duplicate Advisory involving gitoxide: CommandForbiddenInModulesConfiguration Bypass in gix_submodule::File::update() Enables Arbitrary Command Execution via .gitmodules under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 0.83.0 across affected packages: gix.
What version fixes GHSA-m4f9-c775-wg56?
Upgrading to 0.83.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gix affected?
Yes, gix is affected in releases prior to 0.83.0. Upgrade your dependency to 0.83.0 or later.
What is the CVSS score of GHSA-m4f9-c775-wg56?
GHSA-m4f9-c775-wg56 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-m4f9-c775-wg56?
GHSA-m4f9-c775-wg56 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check crates.io dependencies for GHSA-m4f9-c775-wg56?
Run the dependency tree command: 'inspect dependencies for gix'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m4f9-c775-wg56",
  "modified" : "2026-06-30T17:40:48Z",
  "published" : "2026-05-26T15:32:10Z",
  "withdrawn" : "2026-06-30T17:40:48Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: gitoxide: CommandForbiddenInModulesConfiguration Bypass in gix_submodule::File::update() Enables Arbitrary Command Execution via .gitmodules",
  "details" : "### Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-f26g-jm89-4g65. This link is maintained to preserve external references.\n\n### Original Description\ngix-submodule before 0.82.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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "gix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.31.0"
      }, {
        "fixed" : "0.83.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-40034"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc"
  }, {
    "type" : "WEB",
    "url" : "https://red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/gitoxide-command-injection-via-partial-gitmodules-override-in-gix-submodule"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-30T17:40:48Z",
    "nvd_published_at" : "2026-05-26T15:16:35Z"
  }
}