p PatchFirst

CVE-2026-40034

CVE-2026-40034 · gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule

CVSS 7.3 · High · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="rust-gix-submodule"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • gitoxide

    Versions
    • ≥ 0, < 0.5.21: Affected (semver)
    • 0.5.21: Not affected (semver)

    Update to 0.5.21

  • gix-submodule

    Versions
    • ≥ 0, < 0.29.0: Affected (semver)
    • 0.29.0: Not affected (semver)

    Update to 0.29.0

  • gix

    Versions
    • ≥ 0, < 0.84.0: Affected (semver)
    • 0.84.0: Not affected (semver)

    Update to 0.84.0

  • rust-gix-submodule Debian 13

    Versions
    • 0.16.0-1
    • 0.20.0-1
    • 0.30.0-1
    • 0.33.0-1
    • 0.34.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix-submodule Debian 14

    Versions
    • 0.16.0-1
    • 0.20.0-1
    Affected ranges
    • ECOSYSTEM: < 0.30.0-1

    Update to 0.30.0-1

  • rust-gix Ubuntu 25.10

    Versions
    • 0.69.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix-submodule Ubuntu 25.10

    Versions
    • 0.16.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix Ubuntu 26.10

    Versions
    • 0.73.0-1
    • 0.83.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix-submodule Ubuntu 26.10

    Versions
    • 0.20.0-1
    • 0.30.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix Ubuntu 26.04 LTS

    Versions
    • 0.69.1-1
    • 0.69.1-2
    • 0.73.0-1
    • 0.73.0-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • rust-gix-submodule Ubuntu 26.04 LTS

    Versions
    • 0.16.0-1
    • 0.20.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →