Severity
7.3HIGH
EPSS
5.7%
top 9.63%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedAug 4
Latest updateAug 8

Description

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

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:NExploitability: 1.5 | Impact: 5.8

Affected Packages4 packages

CVEListV5rust-lang/cargo< 0.72.2
NVDrust-lang/cargo< 0.72.2
Debianrust-cargo< 0.76.0-1+1
crates.iocargo< 0.72.2

Also affects: Fedora 38

Patches

🔴Vulnerability Details

4
OSV
CVE-2023-38497: Cargo downloads the Rust project’s dependencies and compiles the project2023-08-04
CVEList
Cargo not respecting umask when extracting crate archives2023-08-04
OSV
Cargo not respecting umask when extracting crate archives2023-08-03
GHSA
Cargo not respecting umask when extracting crate archives2023-08-03

📋Vendor Advisories

4
Microsoft
Cargo not respecting umask when extracting crate archives2023-08-08
Ubuntu
Cargo vulnerability2023-08-03
Red Hat
rust-cargo: cargo does not respect the umask when extracting dependencies2023-08-03
Debian
CVE-2023-38497: cargo - Cargo downloads the Rust project’s dependencies and compiles the project. Cargo ...2023
CVE-2023-38497 (HIGH CVSS 7.3) | Cargo downloads the Rust project’s | cvebase.io