Vulnerability in Rust-Lang Cargo

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`.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.9 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N.

EPSS exploit prediction

EPSS: 0.007 (52.4th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 52nd percentile — 52.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2023-38497: held from 0.007 to 0.007.

EPSS over last 30 days · oldest: 0.007 · newest: 0.007 · change: 0.000

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2023-38497?
CVE-2023-38497 is a high-severity vulnerability in Rust-Lang Cargo, classified under Insecure Preserved Inherited Permissions. CVSS score: 7.9/10. Published 2023-08-04.
How severe is CVE-2023-38497?
High severity. CVSS v3 base score is 7.9 out of 10.
Is CVE-2023-38497 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.