CVE-2023-38497
Summary
| CVE | CVE-2023-38497 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-08-04 16:15:00 UTC |
| Updated | 2023-08-17 19:15:00 UTC |
| 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`. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| 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 |
No vendor comments have been submitted for this CVE.
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)