{
  "id": "CVE-2026-40034",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40034",
  "published_at": "2026-05-26T14:08:48.264Z",
  "title": "gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule",
  "vendor": "gitoxide",
  "product": "gitoxide",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-77",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "gitoxide",
        "product": "gitoxide",
        "ranges": [
          "\u003c 0.5.21"
        ],
        "fixed_in": [
          "0.5.21"
        ]
      },
      {
        "vendor": "gitoxide",
        "product": "gix-submodule",
        "ranges": [
          "\u003c 0.29.0"
        ],
        "fixed_in": [
          "0.29.0"
        ]
      },
      {
        "vendor": "gitoxide",
        "product": "gix",
        "ranges": [
          "\u003c 0.84.0"
        ],
        "fixed_in": [
          "0.84.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade gitoxide to 0.5.21 or later.",
      "Upgrade gix-submodule to 0.29.0 or later.",
      "Upgrade gix to 0.84.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
