Cargo not respecting umask when extracting crate archives
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| rust-lang | cargo | affected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat Developer Tools | |||
| rust-toolset-1.66-rust-0:1.66.1-2.el7_9 | cpe:/a:redhat:devtools:2023::el7 | RHSA-2023:4651 | 2023-08-15T00:00:00Z |
| Red Hat Enterprise Linux 8 | |||
| rust-toolset:rhel8-8080020230807230209.0a78da64 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2023:4635 | 2023-08-14T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Extended Update Support | |||
| rust-toolset:rhel8-8060020240312174911.aeeed864 | cpe:/a:redhat:rhel_eus:8.6 | RHSA-2024:3428 | 2024-05-28T00:00:00Z |
| Red Hat Enterprise Linux 9 | |||
| rust-0:1.66.1-2.el9_2 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2023:4634 | 2023-08-14T00:00:00Z |
| Red Hat Enterprise Linux 9.0 Extended Update Support | |||
| rust-0:1.58.1-1.el9_0.1 | cpe:/a:redhat:rhel_eus:9.0 | RHSA-2024:3418 | 2024-05-28T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2023-2308 | 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`. |
Github GHSA |
GHSA-j3xp-wfr4-hx87 | Cargo not respecting umask when extracting crate archives |
Ubuntu USN |
USN-6275-1 | Cargo vulnerability |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.702% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|