ALAS2022-2023-278

Related Vulnerabilities: CVE-2022-46176  

Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform man-in-the-middle (MITM) attacks. This vulnerability has been assigned CVE-2022-46176. All Rust versions containing Cargo before 1.66.1 are vulnerable. Note that even if you don't explicitly use SSH for alternate registry indexes or crate dependencies, you might be affected by this vulnerability if you have configured git to replace HTTPS connections to GitHub with SSH (through git's [][1] setting), as that'd cause you to clone the crates.io index through SSH. Rust 1.66.1 will ensure Cargo checks the SSH host key and abort the connection if the server's public key is not already trusted. We recommend everyone to upgrade as soon as possible. (CVE-2022-46176)

ALAS2022-2023-278


Amazon Linux 2022 Security Advisory: ALAS-2023-278
Advisory Release Date: 2023-01-20 16:44 Pacific
Advisory Updated Date: 2023-01-24 21:14 Pacific
Severity: Medium
References: CVE-2022-46176 

Issue Overview:

Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform man-in-the-middle (MITM) attacks. This vulnerability has been assigned CVE-2022-46176. All Rust versions containing Cargo before 1.66.1 are vulnerable. Note that even if you don't explicitly use SSH for alternate registry indexes or crate dependencies, you might be affected by this vulnerability if you have configured git to replace HTTPS connections to GitHub with SSH (through git's [][1] setting), as that'd cause you to clone the crates.io index through SSH. Rust 1.66.1 will ensure Cargo checks the SSH host key and abort the connection if the server's public key is not already trusted. We recommend everyone to upgrade as soon as possible. (CVE-2022-46176)


Affected Packages:

rust


Issue Correction:
Run dnf update rust to update your system.

New Packages:
aarch64:
    rust-debuginfo-1.66.1-1.amzn2022.0.2.aarch64
    rust-analysis-1.66.1-1.amzn2022.0.2.aarch64
    rust-analyzer-debuginfo-1.66.1-1.amzn2022.0.2.aarch64
    rust-std-static-1.66.1-1.amzn2022.0.2.aarch64
    clippy-debuginfo-1.66.1-1.amzn2022.0.2.aarch64
    rust-analyzer-1.66.1-1.amzn2022.0.2.aarch64
    rustfmt-debuginfo-1.66.1-1.amzn2022.0.2.aarch64
    cargo-debuginfo-1.66.1-1.amzn2022.0.2.aarch64
    rustfmt-1.66.1-1.amzn2022.0.2.aarch64
    rust-1.66.1-1.amzn2022.0.2.aarch64
    clippy-1.66.1-1.amzn2022.0.2.aarch64
    cargo-1.66.1-1.amzn2022.0.2.aarch64
    rust-debugsource-1.66.1-1.amzn2022.0.2.aarch64
    rust-doc-1.66.1-1.amzn2022.0.2.aarch64

i686:
    rust-std-static-1.66.1-1.amzn2022.0.2.i686
    rust-debuginfo-1.66.1-1.amzn2022.0.2.i686
    rust-1.66.1-1.amzn2022.0.2.i686
    rust-doc-1.66.1-1.amzn2022.0.2.i686
    rust-analysis-1.66.1-1.amzn2022.0.2.i686
    rust-analyzer-1.66.1-1.amzn2022.0.2.i686
    rust-analyzer-debuginfo-1.66.1-1.amzn2022.0.2.i686
    cargo-debuginfo-1.66.1-1.amzn2022.0.2.i686
    cargo-1.66.1-1.amzn2022.0.2.i686
    rustfmt-debuginfo-1.66.1-1.amzn2022.0.2.i686
    rust-debugsource-1.66.1-1.amzn2022.0.2.i686
    rustfmt-1.66.1-1.amzn2022.0.2.i686
    clippy-1.66.1-1.amzn2022.0.2.i686
    clippy-debuginfo-1.66.1-1.amzn2022.0.2.i686

noarch:
    rust-lldb-1.66.1-1.amzn2022.0.2.noarch
    rust-std-static-wasm32-unknown-unknown-1.66.1-1.amzn2022.0.2.noarch
    rust-gdb-1.66.1-1.amzn2022.0.2.noarch
    rust-std-static-wasm32-wasi-1.66.1-1.amzn2022.0.2.noarch
    rust-debugger-common-1.66.1-1.amzn2022.0.2.noarch
    rust-src-1.66.1-1.amzn2022.0.2.noarch

src:
    rust-1.66.1-1.amzn2022.0.2.src

x86_64:
    rust-debuginfo-1.66.1-1.amzn2022.0.2.x86_64
    cargo-debuginfo-1.66.1-1.amzn2022.0.2.x86_64
    rustfmt-debuginfo-1.66.1-1.amzn2022.0.2.x86_64
    clippy-debuginfo-1.66.1-1.amzn2022.0.2.x86_64
    rust-1.66.1-1.amzn2022.0.2.x86_64
    rust-std-static-1.66.1-1.amzn2022.0.2.x86_64
    cargo-1.66.1-1.amzn2022.0.2.x86_64
    rust-analyzer-debuginfo-1.66.1-1.amzn2022.0.2.x86_64
    rustfmt-1.66.1-1.amzn2022.0.2.x86_64
    rust-analysis-1.66.1-1.amzn2022.0.2.x86_64
    rust-analyzer-1.66.1-1.amzn2022.0.2.x86_64
    clippy-1.66.1-1.amzn2022.0.2.x86_64
    rust-debugsource-1.66.1-1.amzn2022.0.2.x86_64
    rust-doc-1.66.1-1.amzn2022.0.2.x86_64