Description
gitoxide gix-fs before 0.23.0 contains a path validation bypass vulnerability in the worktree checkout mechanism that allows attackers to escape the worktree directory via symlink manipulation. During forced checkout with overwrite_existing enabled, attackers can craft malicious repository trees where symlink entries replace validated directories, causing subsequent files to be written outside the worktree through the symlink for code execution or file manipulation.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GitoxideLabs | gitoxide | < 0.23.0 | 0.23.0 |
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-fs | No fix yet | — |
| Debian 13 | rust-gix-fs | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rust-gix-fs | No fix yet | — |
| Ubuntu 26.04 LTS | rust-gix-fs | No fix yet | — |
| Ubuntu 24.04 LTS | rust-gix-fs | 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.98.1-1.amzn2023 | ALAS2023-2026-3170 |
| Amazon Linux 2 | rust +11 | 1.98.1-1.amzn2 | ALAS2-2026-3971 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | rust | 1.75.0-30 | — |
Advisories 3
- ALAS2023-2026-3181 Important: rust-cargo-c security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 2, 2026
- ALAS2-2026-3971 Important: rust security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 12, 2026
- ALAS2023-2026-3170 Important: rust security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 12, 2026
References
- GitHub Security Advisory (GHSA-6p9q-f2xg-6pr5) vendor-advisory
- Patch Commit patch
- gix-fs 0.22.1 stack.rs pop loop and disarmed guard technical-description
- GitHub Security Advisory (GHSA-f89h-2fjh-2r9q) related vendor-advisory
- https://github.com/GitoxideLabs/gitoxide product
- VulnCheck Advisory: gitoxide gix-fs before 0.23.0 Worktree Escape via Symlink third-party-advisory