7.8

CVE-2023-38497: Cargo not respecting umask when extracting crate archives

Modified
AliasesALPINE-CVE-2023-38497SUSE-SU-2023:3251-1RHSA-2023:4634
Published 04-08-2023Last modified 13-02-2025

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 54.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.70%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 04-08-2023
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last 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

EPSS trend

Probability

0.70%

Chance of exploitation in the next 30 days

Percentile

55%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.70% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

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-cargo< 0.57.0-1ubuntu0.1~esm1 | All versions (No fix recorded)
  • rustc< 1.71.1+dfsg0ubuntu2-0ubuntu1
Alpine2 products
  • chromium-rust< 1.71.1-r0
  • rust< 1.71.1-r0
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
Crates.Io1 product
  • cargo< 0.72.2
Fedoraproject1 product
Rust-lang1 product

9 vendors · 52 products

References

35 links
Show all 35 references