---
title: "CVE-2026-40034"
canonical_url: "https://pkgseek.com/security/CVE-2026-40034"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

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

CVE-2026-40034 严重级别为 HIGH，共索引 1 条受影响软件包构建记录，涉及 1 个发行版。

- **级别 / 评分**: HIGH
- **受影响构建数**: 1
- **涉及发行版**: 1
- **已标明修复版本发行版**: 暂无已标明修复记录

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | librust-gix-submodule-dev | 0.16.0-1 | — |
