Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
gitoxide gitoxide
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

gitoxide是Sebastian Thiel个人开发者的一个用 Rust 编写的 git 实现。 gitoxide 0.82.0之前版本存在安全漏洞,该漏洞源于对.gitmodules中update字段的验证不当,可能导致攻击者绕过CommandForbiddenInModulesConfiguration防护,在调用Submodule::update时执行任意shell命令。

CVSS 7.8 · High EPSS 0.35% · P28

Affected Version Matrix 6

VendorProduct Version RangeStatus
gitoxide gitoxide < 0.5.21 affected
0.5.21 unaffected
gitoxide gix < 0.84.0 affected
0.84.0 unaffected
gitoxide gix-submodule < 0.29.0 affected
0.29.0 unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40034

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
在命令中使用的特殊元素转义处理不恰当(命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
gitoxide 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
gitoxide是Sebastian Thiel个人开发者的一个用 Rust 编写的 git 实现。 gitoxide 0.82.0之前版本存在安全漏洞,该漏洞源于对.gitmodules中update字段的验证不当,可能导致攻击者绕过CommandForbiddenInModulesConfiguration防护,在调用Submodule::update时执行任意shell命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gitoxide gitoxide 0 ~ 0.5.21 -
gitoxide gix-submodule 0 ~ 0.29.0 -
gitoxide gix 0 ~ 0.84.0 -

II. Public POCs for CVE-2026-40034

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8195 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-40034

登录查看更多情报信息。

Vendor Advisories for CVE-2026-40034 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-40034

No comments yet


Leave a comment