{"schemaVersion":3,"id":"CVE-2026-40034","aliases":["UBUNTU-CVE-2026-40034","DEBIAN-CVE-2026-40034","CGA-58p2-rrxc-4684","CGA-5m9x-q33w-r393","CGA-7989-3xgp-hj53","CGA-97qv-3pjp-pcm8","CGA-jcp4-rr22-4rjq","CGA-jfqf-hm3c-r49w","CGA-jjh4-65x9-vg36","CGA-qqpq-m54f-734c","CGA-rm8v-p2cf-82j5","CGA-vpmp-jmvj-wjw9","CGA-w4gq-x5qf-9vwj","CGA-xm76-pff3-fp99","openSUSE-SU-2026:11038-1","openSUSE-SU-2026:21185-1","CGA-6pc5-6m95-vmc2","CGA-973m-vm8r-jpj5","CGA-c9xh-hp65-hpcr","GHSA-f26g-jm89-4g65","CGA-wv7c-c4vq-6fc3"],"status":"published","duplicateOf":null,"title":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.","dates":{"published":"2026-05-26T14:08:48.264Z","modified":"2026-10-08T15:22:34.992Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.5,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"NVD","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/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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.3,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.5,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":8.5,"severity":"high","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/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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":8.5,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":8.5,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Crates.io","score":8.5,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Crates.io","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.5,"severity":"high","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/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00651,"percentile":0.50308,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.3,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00351},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00651,"percentile":0.50308}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00359,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00651,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00651,"percentile":0.50308}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","description":"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.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/77.html"}],"affected":[{"vendor":"chainguard","product":"cargo-audit","name":"cargo-audit","label":"cargo-audit","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cargo-audit","purlType":"apk","versions":[{"text":"< 0.22.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.22.2-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cargo-c","name":"cargo-c","label":"cargo-c","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cargo-c","purlType":"apk","versions":[{"text":"< 0.10.24-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.10.24-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"codex","name":"codex","label":"codex","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/codex","purlType":"apk","versions":[{"text":"< 0.149.0-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 0.148.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.149.0-r0 | < 0.148.0-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"helix","name":"helix","label":"helix","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/helix","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jujutsu","name":"jujutsu","label":"jujutsu","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jujutsu","purlType":"apk","versions":[{"text":"< 0.41.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.41.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"cargo-audit","name":"cargo-audit","label":"cargo-audit","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/cargo-audit","purlType":"apk","versions":[{"text":"< 0.22.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.22.2-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"cargo-c","name":"cargo-c","label":"cargo-c","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/cargo-c","purlType":"apk","versions":[{"text":"< 0.10.24-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.10.24-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"helix","name":"helix","label":"helix","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/helix","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"gix","name":"gix","label":"gix","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/gix","purlType":"cargo","versions":[{"text":"≥ 0.31.0, < 0.83.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.31.0, < 0.83.0","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-gix-submodule","name":"rust-gix-submodule","label":"rust-gix-submodule","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-gix-submodule","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 0.30.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 0.30.0-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rust-gix","name":"rust-gix","label":"rust-gix","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rust-gix","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rust-gix-submodule","name":"rust-gix-submodule","label":"rust-gix-submodule","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rust-gix-submodule","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gitoxide","product":"gitoxide","name":"gitoxide","label":"gitoxide","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.5.21","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.5.21","eol":null,"hubHref":"/vendor/gitoxide/gitoxide"},{"vendor":"gitoxide","product":"gix","name":"gix","label":"gix","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.84.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.84.0","eol":null,"hubHref":"/vendor/gitoxide/gix"},{"vendor":"gitoxide","product":"gix-submodule","name":"gix-submodule","label":"gix-submodule","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.29.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.29.0","eol":null,"hubHref":"/vendor/gitoxide/gix-submodule"},{"vendor":"opensuse","product":"stgit&distro=openSUSE Leap 16.0","name":"stgit","label":"stgit&distro=openSUSE Leap 16.0","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/stgit&distro=openSUSE Leap 16.0","purlType":"rpm","versions":[{"text":"< 2.6.0-bp160.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.6.0-bp160.1.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"stgit&distro=openSUSE Tumbleweed","name":"stgit","label":"stgit&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/stgit&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 2.6.0-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.6.0-1.1","eol":null,"hubHref":null}],"affectedCount":17,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65","label":"github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-f26g-jm89-4g65","hostname":"github.com","tags":["Vendor Advisory","REPORT","Advisory","WEB"]},{"url":"https://github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0","label":"github.com/GitoxideLabs/gitoxide/commit/6a2e6a436f76c8bbf2487f9967413a51356667a0","hostname":"github.com","tags":["Patch","REPORT","FIX","WEB"]},{"url":"https://github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc","label":"github.com/GitoxideLabs/gitoxide/commit/dd5c18d9e526e8de462fa40aa047acd097cfa7dc","hostname":"github.com","tags":["Patch","REPORT","FIX","WEB"]},{"url":"https://red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP","label":"red.anthropic.com/2026/cvd/findings/ANT-2026-6SNS6KMP","hostname":"red.anthropic.com","tags":["Third Party Advisory","REPORT","Advisory","WEB"]},{"url":"https://www.vulncheck.com/advisories/gitoxide-command-injection-via-partial-gitmodules-override-in-gix-submodule","label":"www.vulncheck.com/advisories/…","hostname":"www.vulncheck.com","tags":["Third Party Advisory","REPORT","Advisory","WEB"]},{"url":"https://ubuntu.com/security/CVE-2026-40034","label":"ubuntu.com/security/CVE-2026-40034","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40034","label":"www.cve.org/CVERecord?id=CVE-2026-40034","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-40034","label":"security-tracker.debian.org/tracker/CVE-2026-40034","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40034.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40034.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40034","label":"nvd.nist.gov/vuln/detail/CVE-2026-40034","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://www.suse.com/security/cve/CVE-2026-40034","label":"www.suse.com/security/cve/CVE-2026-40034","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://bugzilla.suse.com/1266429","label":"bugzilla.suse.com/1266429","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://github.com/GitoxideLabs/gitoxide","label":"github.com/GitoxideLabs/gitoxide","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:11474-1","OPENSUSE-SU-2026:21558-1"],"duplicates":[],"related":["CGA-WJ34-G2VR-PXXH","OPENSUSE-SU-2026:11474-1","OPENSUSE-SU-2026:21558-1"]},"timeline":[{"kind":"published","date":"2026-05-26T14:08:48.264Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T15:22:34.992Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:26:37.138Z","stale":false,"partial":false}}