ADVISORIES

Vulnerability

CVE-2026-40034

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.

30 advisories report this vulnerability, across 9 ecosystems.

Advisories

  • ALAS2-2026-3808

    Amazon Linux 2 2017.12 - ALAS2-2026-3808: important priority package update for rust

    Important CVE-2026-40034CVE-2026-82252CVE-2026-82253CVE-2026-82254 Amazon Linux Updated 2 November 2026
  • ALAS2023-2026-1951

    Amazon Linux 2023 - ALAS2023-2026-1951: Important priority package update for rust

    Important CVE-2026-40034CVE-2026-82252CVE-2026-82254CVE-2026-82255 Amazon Linux Updated 2 November 2026
  • ALAS2023-2026-2024

    Amazon Linux 2023 - ALAS2023-2026-2024: Important priority package update for rust-cargo-c

    Important CVE-2026-40034 Amazon Linux Updated 4 August 2026
  • AZL-89292

    CVE-2026-40034 affecting package rust for versions less than 1.75.0-30

    CVE-2026-40034 Azure Linux Updated 23 November 2026
  • AZL-89295

    CVE-2026-40034 affecting package rust for versions less than 1.90.0-9

    CVE-2026-40034 Azure Linux Updated 23 November 2026
  • CGA-58p2-rrxc-4684
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-5m9x-q33w-r393
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-6pc5-6m95-vmc2
    CVE-2026-40034 Chainguard Updated 5 November 2026
  • CGA-7989-3xgp-hj53
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-973m-vm8r-jpj5
    CVE-2026-40034 Chainguard Updated 5 November 2026
  • CGA-97qv-3pjp-pcm8
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-c9xh-hp65-hpcr
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-jcp4-rr22-4rjq
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-jfqf-hm3c-r49w
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-jjh4-65x9-vg36
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-qqpq-m54f-734c
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-rm8v-p2cf-82j5
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-vpmp-jmvj-wjw9
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-w4gq-x5qf-9vwj
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-wv7c-c4vq-6fc3
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • CGA-xm76-pff3-fp99
    CVE-2026-40034 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2026-40034

    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…

    CVE-2026-40034 Debian Updated 9 October 2026
  • GHSA-f26g-jm89-4g65

    gitoxide: CommandForbiddenInModulesConfiguration Bypass in gix_submodule::File::update() Enables Arbitrary Command Execution via .gitmodules

    High CVE-2026-40034 crates.io Updated 10 September 2026
  • SUSEVEX-CVE-2026-40034

    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…

    Important CVE-2026-40034 SUSEopenSUSE Updated 14 November 2026
  • UBUNTU-CVE-2026-40034

    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…

    CVE-2026-40034 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:11038-1

    stgit-2.6.0-1.1 on GA media

    CVE-2026-40034 openSUSE Updated 16 June 2026
  • openSUSE-SU-2026:11474-1

    gitoxide-0.56.0-1.1 on GA media

    CVE-2026-25541CVE-2026-40034 openSUSE Updated 10 August 2026
  • openSUSE-SU-2026:12338-1

    watchexec-2.8.0-1.1 on GA media

    CVE-2026-40034 openSUSE Updated 29 October 2026
  • openSUSE-SU-2026:21185-1

    Security update for stgit

    CVE-2026-40034 openSUSE Updated 2 July 2026
  • openSUSE-SU-2026:21558-1

    Security update for gitoxide

    CVE-2024-32650CVE-2025-22620CVE-2025-31130CVE-2026-25541 openSUSE Updated 12 August 2026

References