rust-gix-submodule — security advisory
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.
- Products
- rust-gix-submodule
- Affected versions
- 0.16.0-1, 0.20.0-1, 0.30.0-1, 0.33.0-1, 0.34.0-1
- Fixed versions
- 0.30.0-1
- CVEs
- CVE-2026-40034
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 11:07 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-40034
rust-gix-submodule
Fixed versions: Not specified
rust-gix-submodule
Fixed versions: 0.30.0-1
Complete source record
{
"id": "f752dd5fc3140c177d3a324751c9cf726e9694cd7537b1f849dd67c4e86eb174",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-40034",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-40034",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-40034",
"products": [
{
"name": {
"value": "rust-gix-submodule",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.16.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.20.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.30.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.33.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.34.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-gix-submodule",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.30.0-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "0.16.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.20.0-1",
"evidence": "/affected/1/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-40034",
"aliases": [
"DEBIAN-CVE-2026-40034"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-gix-submodule",
"purl": "pkg:deb/debian/rust-gix-submodule?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"0.16.0-1",
"0.20.0-1",
"0.30.0-1",
"0.33.0-1",
"0.34.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40034.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.30.0-1"
}
]
}
],
"package": {
"name": "rust-gix-submodule",
"purl": "pkg:deb/debian/rust-gix-submodule?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"0.16.0-1",
"0.20.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40034.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-09T09:47:24.524870820Z",
"provider": "osv",
"upstream": [
"CVE-2026-40034"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-40034"
]
},
"related_cves": [
{
"value": "CVE-2026-40034",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 111468,
"published_at": "2026-05-26T15:16:35.087+00:00"
}