ALAS2-2023-2223

Related Vulnerabilities: CVE-2023-38497  

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)

ALAS2-2023-2223


Amazon Linux 2 Security Advisory: ALAS-2023-2223
Advisory Release Date: 2023-08-31 22:28 Pacific
Advisory Updated Date: 2023-09-07 18:50 Pacific
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 yum update rust to update your system.

New Packages:
aarch64:
    rust-1.68.2-1.amzn2.0.3.aarch64
    rust-std-static-1.68.2-1.amzn2.0.3.aarch64
    rust-doc-1.68.2-1.amzn2.0.3.aarch64
    cargo-1.68.2-1.amzn2.0.3.aarch64
    rustfmt-1.68.2-1.amzn2.0.3.aarch64
    rust-analyzer-1.68.2-1.amzn2.0.3.aarch64
    clippy-1.68.2-1.amzn2.0.3.aarch64
    rust-analysis-1.68.2-1.amzn2.0.3.aarch64
    rust-debuginfo-1.68.2-1.amzn2.0.3.aarch64

noarch:
    rust-debugger-common-1.68.2-1.amzn2.0.3.noarch
    rust-gdb-1.68.2-1.amzn2.0.3.noarch
    rust-src-1.68.2-1.amzn2.0.3.noarch
    rust-toolset-1.68.2-1.amzn2.0.3.noarch

src:
    rust-1.68.2-1.amzn2.0.3.src

x86_64:
    rust-1.68.2-1.amzn2.0.3.x86_64
    rust-std-static-1.68.2-1.amzn2.0.3.x86_64
    rust-doc-1.68.2-1.amzn2.0.3.x86_64
    cargo-1.68.2-1.amzn2.0.3.x86_64
    rustfmt-1.68.2-1.amzn2.0.3.x86_64
    rust-analyzer-1.68.2-1.amzn2.0.3.x86_64
    clippy-1.68.2-1.amzn2.0.3.x86_64
    rust-analysis-1.68.2-1.amzn2.0.3.x86_64
    rust-debuginfo-1.68.2-1.amzn2.0.3.x86_64