Amazon Linux Security Advisory
ALAS2-2026-3808
Amazon Linux 2 2017.12 - ALAS2-2026-3808: important priority package update for rust
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Amazon Linux:2 | cargo | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | clippy | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust-analyzer | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust-debugger-common | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust-doc | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust-gdb | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust-src | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust-std-static | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust-toolset | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rust-toolset-srpm-macros | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
| Amazon Linux:2 | rustfmt | All versions before 1.97.0-1.amzn2.0.1 (fixed in 1.97.0-1.amzn2.0.1) |
References
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-40034
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-82252
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-82253
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-82254
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-82255