# CVE-2026-40034: rust-gix-submodule: gix-submodule before 0.29.0 (gitoxide before 0.5.21, gix before 0.84.0) incorrectly validates the update field in .gi...

CVE-2026-40034 is fixed in 27 products on 1 platform, first by DEBIAN-CVE-2026-40034, released May 26, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-40034
- Priority: High
- CVSS: n/a (important)
- EPSS: 0.0065
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 26, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | cargo amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | cargo-c amzn 2023 | 0.10.19-1.amzn2023.0.4 | [ALAS2023-2026-2024](https://patchblox.com/security/data/fix/linux/alas2023-2026-2024.md) | Aug 3, 2026 |
| Linux | cargo-c-debuginfo amzn 2023 | 0.10.19-1.amzn2023.0.4 | [ALAS2023-2026-2024](https://patchblox.com/security/data/fix/linux/alas2023-2026-2024.md) | Aug 3, 2026 |
| Linux | cargo-debuginfo amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | clippy amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | clippy-debuginfo amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | gitoxide opensuse-leap 16.0 | 0.56.0-bp160.1.1 | [OPENSUSE-SU-2026:21558-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21558-1.md) | Aug 10, 2026 |
| Linux | rust amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-analyzer amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-analyzer-debuginfo amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-cargo-c-debugsource amzn 2023 | 0.10.19-1.amzn2023.0.4 | [ALAS2023-2026-2024](https://patchblox.com/security/data/fix/linux/alas2023-2026-2024.md) | Aug 3, 2026 |
| Linux | rust-debugger-common amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-debuginfo amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-debugsource amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-doc amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-gdb amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-gix-submodule Debian 14 | 0.30.0-1 | [DEBIAN-CVE-2026-40034](https://patchblox.com/security/data/fix/linux/debian-cve-2026-40034.md) | May 26, 2026 |
| Linux | rust-lldb amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-src amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-std-static amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-std-static-wasm32-unknown-unknown amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-std-static-wasm32-wasip1 amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-toolset amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rust-toolset-srpm-macros amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rustfmt amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | rustfmt-debuginfo amzn 2023 | 1.97.0-1.amzn2023.0.1 | [ALAS2023-2026-1951](https://patchblox.com/security/data/fix/linux/alas2023-2026-1951.md) | Jul 20, 2026 |
| Linux | stgit opensuse-leap 16.0 | 2.6.0-bp160.1.1 | [OPENSUSE-SU-2026:21185-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21185-1.md) | Jun 30, 2026 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
