CVE-2023-38497

Summary

CVECVE-2023-38497
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-08-04 16:15:00 UTC
Updated2023-08-17 19:15:00 UTC
DescriptionCargo 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`.

Risk And Classification

Problem Types: CWE-278

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 38 All All All
Application Rust-lang Cargo All All All All

References

ReferenceSourceLinkTags
Patches for CVE-2023-38497 MISC github.com
Security policy - Rust Programming Language MISC www.rust-lang.org
umask - Wikipedia MISC en.wikipedia.org
Cargo not respecting umask when extracting crate archives · Advisory · rust-lang/cargo · GitHub MISC github.com
Auto merge of #12443 - pietroalbini:pa-cve-2023-38497-nightly, r=weih… · rust-lang/cargo@d78bbf4 · GitHub MISC github.com
[SECURITY] Fedora 37 Update: rust-1.71.1-1.fc37 - package-announce - Fedora Mailing-Lists MISC lists.fedoraproject.org
Fix CVE-2023-38497 for master by pietroalbini · Pull Request #12443 · rust-lang/cargo · GitHub MISC github.com
[SECURITY] Fedora 38 Update: rust-1.71.1-1.fc38 - package-announce - Fedora Mailing-Lists MISC lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 199636 Ubuntu Security Notification for Cargo Vulnerability (USN-6275-1)
  • 241946 Red Hat Update for rust (RHSA-2023:4634)
  • 241951 Red Hat Update for rust-toolset:rhel8 (RHSA-2023:4635)
  • 284376 Fedora Security Update for rust (FEDORA-2023-6f2c7aa713)
  • 284410 Fedora Security Update for rust (FEDORA-2023-4824704a61)
  • 503265 Alpine Linux Security Update for rust
  • 505933 Alpine Linux Security Update for rust
  • 907407 Common Base Linux Mariner (CBL-Mariner) Security Update for rust (28510-1)
  • 941229 AlmaLinux Security Update for rust (ALSA-2023:4634)
  • 941232 AlmaLinux Security Update for rust-toolset:rhel8 (ALSA-2023:4635)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report