CVE-2023-38497: fedoraproject fedora Insecure Preserved Inherited Permissions
Vulnerability summary
CVE-2023-38497 is a high (CVSS 7.8) Insecure Preserved Inherited Permissions vulnerability in fedoraproject fedora. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 52.3% of scored vulnerabilities.
Timeline
- 04-08-2023PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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`.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · Red hatEcosystem advisory · calculated6.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · Crates.ioEcosystem advisory · calculated7.9HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:NDiffers
- NVDNIST7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.70%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
0.00 pp
From 0.70% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-278Insecure Preserved Inherited PermissionsA product inherits a set of insecure permissions for an object, e.g. when copying from an archive file, without user awareness or involvement.
- CWE-732Incorrect Permission Assignment for Critical ResourceThe product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.
Affected systems
Redhat37 products
- cargo< 0:1.66.1-2.el9_2 | < 0:1.66.1-2.module+el8.8.0+19613+f0bba33b | < 0:1.58.1-1.el9_0.1 | < 0:1.58.1-1.module+el8.6.0+21522+a4bc17c1.1
- cargo-debuginfo< 0:1.66.1-2.el9_2 | < 0:1.66.1-2.module+el8.8.0+19613+f0bba33b | < 0:1.58.1-1.el9_0.1 | < 0:1.58.1-1.module+el8.6.0+21522+a4bc17c1.1
- cargo-doc< 0:1.58.1-1.el9_0.1 | < 0:1.58.1-1.module+el8.6.0+21522+a4bc17c1.1
- clippy< 0:1.66.1-2.el9_2 | < 0:1.66.1-2.module+el8.8.0+19613+f0bba33b | < 0:1.58.1-1.el9_0.1 | < 0:1.58.1-1.module+el8.6.0+21522+a4bc17c1.1
- clippy-debuginfo< 0:1.66.1-2.el9_2 | < 0:1.66.1-2.module+el8.8.0+19613+f0bba33b | < 0:1.58.1-1.el9_0.1 | < 0:1.58.1-1.module+el8.6.0+21522+a4bc17c1.1
Opensuse3 products
- rust1.71&distro=openSUSE Leap 15.4< 1.71.1-150400.9.6.1
- rust1.71&distro=openSUSE Leap 15.5< 1.71.1-150400.9.6.1
- rust1.71&distro=openSUSE Tumbleweed< 1.71.1-1.1
Ubuntu3 products
- cargo< 0.47.0-1~exp1ubuntu1~16.04.1+esm1 | < 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1 | < 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1 | < 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1
- rust-cargoAll versions (No fix recorded) | < 0.57.0-1ubuntu0.1~esm1
- rustc< 1.71.1+dfsg0ubuntu2-0ubuntu1
Debian2 products
- cargoAll versions (No fix recorded)
- rust-cargoAll versions (No fix recorded) | < 0.76.0-1
Suse2 products
- rust1.71&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4< 1.71.1-150400.9.6.1
- rust1.71&distro=SUSE Linux Enterprise Module for Development Tools 15 SP5< 1.71.1-150400.9.6.1
Alpine1 product
- rust< 1.71.1-r0
Crates.Io1 product
- cargo< 0.72.2
Fedoraproject1 product
- fedoraEOL38
Rust-lang1 product
- cargo< 0.72.2
9 vendors · 51 products
References
35 links- github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87X Refsource CONFIRMREPORTWEBVendor Advisory
- github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497X Refsource MISCREPORTWEBThird Party Advisory
Show all 35 references
- github.com/rust-lang/cargoPACKAGE