Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-82255: gitoxide versions from 0.25.4 contain an HTTP credential leak vulnerability in the curl-based transport backend where credentials are sent to attacker-controlled servers after HTTP redirects. The vulnerability occurs because credential validation checks the original URL instead of the effective URL after redirect, allowing attackers to steal authentication tokens through cross-domain redirects or HTTPS-to-HTTP downgrades. CVE-2026-82254: gitoxide before 0.69.0 contains unchecked array indexing in delta application and uncapped allocation from attacker-controlled size headers in gix-pack. Attackers can send crafted pack data during clone or fetch operations to trigger panics or out-of-memory process kills. CVE-2026-82253: gitoxide (Rust crates gix <= 0.72.0 and gix-validate <= 0.10.0) contains a path traversal vulnerability. The submodule name validation function in gix-validate only checks the first occurrence of '..' via name.find(b".."), allowing crafted names such as 'a..b/../../../.git/' to bypass the check; additionally this validation is never invoked in production code paths. Combined with a trust inheritance flaw in Submodule::open(), where the parent repository's git_dir_trust (Trust::Full) is cloned and the ownership verification is skipped, an attacker can craft a malicious .gitmodules file so that a victim tool built on gitoxide reads arbitrary git repository configuration (including embedded credentials) with full trust, bypassing safe-directory protections. Fixed in gix 0.82.0 and gix-validate 0.11.1. CVE-2026-82252: 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. 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.
Fixed packages 12
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | cargo | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | clippy | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-analyzer | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-debugger-common | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-doc | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-gdb | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-src | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-std-static | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-toolset | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rust-toolset-srpm-macros | 0:1.97.0-1.amzn2.0.1 |
| Amazon Linux · 2 | rustfmt | 0:1.97.0-1.amzn2.0.1 |
Vulnerabilities 5
-
High 7.8
gitoxide - Command Injection via Partial .gitmodules Override in gix-submodule
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 partia…
-
High 7.5
gitoxide before 0.52.1 Repository Boundary Violation via symlinked .gitmodules
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 rep…
-
High 7.5
gitoxide before 0.82.0 Path Traversal via Submodule Name Validation Bypass
gitoxide (Rust crates gix <= 0.72.0 and gix-validate <= 0.10.0) contains a path traversal vulnerability. The submodule name validation function in gix-validate only checks the first occurrence of '..' via name.find(b".."), allowing crafted names such as 'a..b…
-
High 7.5
gitoxide before 0.69.0 Denial of Service via gix-pack
gitoxide before 0.69.0 contains unchecked array indexing in delta application and uncapped allocation from attacker-controlled size headers in gix-pack. Attackers can send crafted pack data during clone or fetch operations to trigger panics or out-of-memory p…
-
Medium 6.8
gitoxide 0.25.4 HTTP Credential Leak via Redirect
gitoxide versions from 0.25.4 contain an HTTP credential leak vulnerability in the curl-based transport backend where credentials are sent to attacker-controlled servers after HTTP redirects. The vulnerability occurs because credential validation checks the o…
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-40034.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-82252.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-82253.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-82254.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2026-82255.html