ALAS2023-2023-323


Amazon Linux 2023 Security Advisory: ALAS2023-2023-323
Advisory Released Date: 2023-09-07
Advisory Updated Date: 2023-09-07
Severity: Important

Issue Overview:

Cargo downloads the Rust project's dependencies and compiles the project. Cargo prior to version 0.72.2, bundled with Rust prior to version 1.71.1, did not respect the umask when extracting crate archives on UNIX-like systems. If the user downloaded a crate containing files writeable by any local user, another local user could exploit this to change the source code compiled and executed by the current user. To prevent existing cached extractions from being exploitable, the Cargo binary version 0.72.2 included in Rust 1.71.1 or later will purge caches generated by older Cargo versions automatically. As a workaround, configure one's system to prevent other local users from accessing the Cargo directory, usually located in `~/.cargo`. (CVE-2023-38497)


Affected Packages:

rust


Issue Correction:
Run dnf update rust --releasever 2023.1.20230906 or dnf update --advisory ALAS2023-2023-323 --releasever 2023.1.20230906 to update your system.
More information on how to update your system can be found on this page: Amazon Linux 2023 documentation

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

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

src:
    rust-1.68.2-1.amzn2023.0.2.src

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