{
  "id": "cve-2026-40034",
  "title": "gitoxide submodule command restriction bypass",
  "product": "gitoxide",
  "ai_system": "Claude Mythos Preview",
  "organization": "Anthropic",
  "summary": "A partially initialized trusted submodule override passes a guard that checks only for a trusted section, while the update value falls through to attacker-controlled .gitmodules. A downstream gitoxide consumer that executes the returned Command value can run attacker-supplied shell commands; gitoxide itself has no submodule-update command.",
  "ai_role": "Item CVD ANT-2026-6SNS6KMP explicitly identifies Claude Mythos Preview as discoverer. The vendor GHSA confirms the exact distinct gitoxide flaw and fix but does not itself credit AI; CVD timeline gives first public AI account on 2026-05-20. Its timeline dates discovery/logging March 10 and maintainer report March 29, before the April 24 patch.",
  "disclosure_date": "2026-04-25",
  "ai_attribution_date": "2026-05-20",
  "classification": "disclosure",
  "classification_note": "Public disclosure is documented. Sources do not establish exploitation in the wild or zero-day status. CVD says finding was static-analysis-only and not dynamically reproduced.",
  "cves": [
    "CVE-2026-40034"
  ],
  "source_url": "https://github.com/advisories/GHSA-f26g-jm89-4g65",
  "ai_source_url": "https://red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP",
  "remediation": "fix documented",
  "remediation_note": "Affected gix versions >=0.31.0 and <0.83.0; fixed in 0.83.0. This is an unsafe API result for downstream gitoxide-based submodule-update consumers: the gix CLI itself does not currently implement submodule update, so do not claim direct RCE in that CLI. The vendor advisory demonstrates the bug with a unit test and an end-to-end comparison against Git.",
  "advisory_url": "https://github.com/advisories/GHSA-f26g-jm89-4g65",
  "checked_date": "2026-11-15",
  "cvss": [
    {
      "cve": "CVE-2026-40034",
      "version": "4.0",
      "score": 7.3,
      "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",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/40xxx/CVE-2026-40034.json",
      "source_name": "VulnCheck (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    },
    {
      "cve": "CVE-2026-40034",
      "version": "3.1",
      "score": 7.8,
      "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/40xxx/CVE-2026-40034.json",
      "source_name": "VulnCheck (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-40034"
      ],
      "consequences": [
        "code execution"
      ],
      "conditions": "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. Improper Neutralization of Special Elements used in a Command ('Command Injection')",
      "exploitation": "The cited source does not state whether this issue was exploited in the wild.",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/40xxx/CVE-2026-40034.json",
      "checked_date": "2026-11-16"
    }
  ]
}
