Lucene search

K
amazonAmazonALAS2-2023-2223
HistoryAug 31, 2023 - 10:28 p.m.

Important: rust

2023-08-3122:28:00
alas.aws.amazon.com
6
cargo
rust
umask
exploit
update
directory restriction
cve-2023-38497

7.9 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

7.1 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

5.1%

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

Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.

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  

Additional References

Red Hat: CVE-2023-38497

Mitre: CVE-2023-38497

7.9 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

NONE

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

7.1 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

5.1%