cve.bz

CVE-2026-40034 gitoxide

8.5 highEPSS 0.7%Fix available

High (8.5) in gitoxide. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in gix 0.83.0.

On this page
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.

Severity

CVSS 4.0

8.5 high
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

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-05-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-77 Improper Neutralization of Special Elements used in a Command
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40034 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40034?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40034?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40034 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
gitoxidebefore 0.5.21
gitoxide gix-submodulebefore 0.29.0
gitoxide gixbefore 0.84.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f26g-jm89-4g65crates.iogix>=0.31.0 <0.83.00.83.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13rust-gix-submoduleno fix listedDEBIAN-CVE-2026-40034
Debian14rust-gix-submodule0.30.0-1DEBIAN-CVE-2026-40034
Ubuntu25.10, 26.04:LTS, 26.10rust-gix, rust-gix-submoduleno fix listedUBUNTU-CVE-2026-40034
openSUSELeap 16.0gitoxide0.56.0-bp160.1.1openSUSE-SU-2026:21558-1
openSUSELeap 16.0stgit2.6.0-bp160.1.1openSUSE-SU-2026:21185-1
openSUSETumbleweedgitoxide0.56.0-1.1openSUSE-SU-2026:11474-1
openSUSETumbleweedstgit2.6.0-1.1openSUSE-SU-2026:11038-1
openSUSETumbleweedwatchexec2.8.0-1.1openSUSE-SU-2026:12338-1
Azure Linux3rust1.75.0-30AZL-89292
Azure Linux3rust1.90.0-9AZL-89295

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON