Description
gitoxide before 0.52.1 follows symlinks when reading the worktree .gitmodules file, allowing attackers to inject out-of-repository bytes into submodule metadata. Attackers can create a malicious repository with a symlinked .gitmodules pointing outside the repository tree, causing gitoxide to parse arbitrary external files as submodule configuration and expose attacker-controlled name, path, and url values.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GitoxideLabs | gitoxide | < 0.52.1, < 0.82.0 | 0.52.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-gix | 0.83.0-1 | — |
| Debian 13 | rust-gix | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-gix | No fix yet | — |
| Ubuntu 26.04 LTS | rust-gix | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | cargo-c | 0.10.25-1.amzn2023.0.1 | ALAS2023-2026-3181 |
| Amazon Linux 2023 | rust +14 | 1.97.0-1.amzn2023.0.1 | ALAS2023-2026-1951 |
| Amazon Linux 2 | rust +11 | 1.97.0-1.amzn2.0.1 | ALAS2-2026-3808 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | rust | 1.75.0-30 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | gitoxide | < 0.52.1 | 0.52.1 | GHSA-pg4w-g64p-qwhj |
| crates.io | gix | < 0.83.0 | 0.83.0 | GHSA-pg4w-g64p-qwhj |
Advisories 3
- ALAS2-2026-3808 Important: rust security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Nov 2, 2026
- ALAS2023-2026-1951 Important: rust security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 2, 2026
- ALAS2023-2026-3181 Important: rust-cargo-c security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 2, 2026
References
- GitHub Security Advisory (GHSA-pg4w-g64p-qwhj) vendor-advisory
- VulnCheck Advisory: gitoxide before 0.52.1 Repository Boundary Violation via symlinked .gitmodules third-party-advisory