CVE-2026-5223
published medium CVSS 4.0 · 6.5Crates in third party registries can override the cached source of other crates
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Rust Project | — | cargoCargo · 1.0.0 to < 1.96.0 · Other versions: unaffected | Affected | Not stated | rust |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | rust | Fixed | 1.96.0-r0 | Package fix record |
| Alpine Linux | v3.23 | rust | Fixed | 1.91.1-r2 | Package fix record |
| Alpine Linux | v3.24 | chromium-rust | Fixed | 1.96.0-r0 | Package fix record |
| Alpine Linux | v3.24 | rust | Fixed | 1.96.0-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- rust · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Rust Project | Cargo | 1.0.0 to < 1.96.0 (affected · semver)Default: unaffected | rust · cna |
Weaknesses
1- CWE-61 CWE-61 UNIX symbolic link (symlink) following
References
3Provider assertions
2rust · cna
Crates in third party registries can override the cached source of other crates
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4cb64f98fb53c6edf21d822bbede595a06fb506a5ba47d2f9069d23af79343bc
- Ingested
- 23 Sep 2026, 09:23:13 UTC
- Source record
- Official CVE record