Crates in third party registries can override the cached source of other crates
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 Project | Cargo | unaffected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Rust-lang | Cargo |
|
Vendor Solution
Rust 1.96.0, to be released on May 28th, 2026, will update Cargo to reject extracting *any* symlink within crate tarballs, regardless of whether they come from crates.io (which already forbids them) or third-party registries. Note that Cargo never added symlinks when running `cargo package` or `cargo publish`, so the impact of this should be minimal.
Vendor Workaround
Users who are not able to upgrade to the most recent Rust version are recommended to audit the contents of their registry for the presence of any symlink, and to configure their registry to reject symlink (if such option is available).
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-jq42-7mfv-hm57 | Cargo crates in third party registries can override the cached source of other crates |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.294% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:* | |
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Rust-lang
Rust-lang cargo |
|
| Vendors & Products |
Rust-lang
Rust-lang cargo |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Cargo incorrectly handled symlinks inside of crate tarballs downloaded from third-party registries, allowing a malicious crate to override the source code of another crate from the same registry. The severity of the vulnerability is **medium** for users of third-party registries. Users of crates.io are **not affected**, as crates.io forbids uploading crates containing any symlink. | |
| Title | Crates in third party registries can override the cached source of other crates | |
| Weaknesses | CWE-61 | |
| References |
| |
| Metrics |
cvssV4_0
|