ADVISORIES

Vulnerability

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

24 advisories report this vulnerability, across 13 ecosystems.

Advisories

  • ALAS2-2023-2223

    Amazon Linux 2 2017.12 - ALAS2-2023-2223: important priority package update for rust

    Important CVE-2023-38497 Amazon Linux Updated 7 September 2023
  • ALAS2023-2023-323

    Amazon Linux 2023 - ALAS2023-2023-323: Important priority package update for rust

    Important CVE-2023-38497 Amazon Linux Updated 7 September 2023
  • ALPINE-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…

    CVE-2023-38497 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2023-38497
    CVE-2023-38497 Alpine Updated 18 November 2026
  • ALSA-2023:4634

    Important: rust security update

    CVE-2023-38497 AlmaLinux Updated 29 October 2026
  • ALSA-2023:4635

    Important: rust-toolset:rhel8 security update

    CVE-2023-38497 AlmaLinux Updated 29 October 2026
  • AZL-28510

    CVE-2023-38497 affecting package rust for versions less than 1.72.0-2

    CVE-2023-38497 Azure Linux Updated 21 April 2026
  • DEBIAN-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…

    CVE-2023-38497 Debian Updated 26 October 2026
  • ELSA-2023-4634

    ELSA-2023-4634: rust security update (IMPORTANT)

    Important CVE-2023-38497 Oracle Linux Updated 25 August 2023
  • ELSA-2023-4635

    ELSA-2023-4635: rust-toolset:ol8 security update (IMPORTANT)

    Important CVE-2023-38497 Oracle Linux Updated 28 August 2023
  • GHSA-j3xp-wfr4-hx87

    Cargo not respecting umask when extracting crate archives

    High CVE-2023-38497 crates.io Updated 8 November 2023
  • OESA-2025-1236

    rust security update

    High CVE-2022-46176CVE-2023-38497 openEuler Updated 18 August 2026
  • OESA-2025-1237

    rust security update

    High CVE-2022-46176CVE-2023-38497 openEuler Updated 18 August 2026
  • RHSA-2023:4634

    Red Hat Security Advisory: rust security update

    CVE-2023-38497 Red Hat Updated 26 February 2026
  • RHSA-2023:4635

    Red Hat Security Advisory: rust-toolset:rhel8 security update

    CVE-2023-38497 Red Hat Updated 26 February 2026
  • RHSA-2023:4651

    Red Hat Security Advisory: rust-toolset-1.66-rust security update

    CVE-2023-38497 Red Hat Updated 26 June 2026
  • RHSA-2024:3418

    Red Hat Security Advisory: rust security update

    CVE-2023-38497 Red Hat Updated 18 March 2026
  • RHSA-2024:3428

    Red Hat Security Advisory: rust-toolset:rhel8 security update

    CVE-2023-38497 Red Hat Updated 18 March 2026
  • RLSA-2023:4634

    Important: rust security update

    CVE-2023-38497 Rocky Linux Updated 4 February 2026
  • RLSA-2023:4635

    Important: rust-toolset:rhel8 security update

    CVE-2023-38497 Rocky Linux Updated 5 February 2026
  • SUSE-SU-2023:3251-1

    Security update for rust1.71

    CVE-2023-38497 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-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…

    CVE-2023-38497 Ubuntu Updated 22 April 2026
  • USN-6275-1

    cargo, rust-cargo vulnerability

    CVE-2023-38497 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2024:13101-1

    cargo1.71-1.71.1-1.1 on GA media

    CVE-2023-38497 openSUSE Updated 4 February 2026

References