Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2023-38497 Details

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

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://en.wikipedia.org/wiki/Umask CVENot Applicable
https://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff CVEPatch
https://github.com/rust-lang/cargo/pull/12443 CVEMailing ListPatch
https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87 CVEVendor Advisory
https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497 CVEThird Party Advisory

see all 16 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-732Incorrect Permission Assignment for Critical Resource[email protected]
CWE-278Insecure Preserved Inherited Permissions[email protected]

Affected Products

ProductVersions
rust-lang cargo
< 0.72.2

CPE

  • cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
38

CPE

  • cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

7 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2023-38497
NVD Published Date:
Aug 4, 2023
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]