CVE Explorer
CVE-2026-5223
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"collectionURL":"https://crates.io","defaultStatus":"unaffected","packageName":"cargo","product":"Cargo","repo":"https://github.com/rust-lang/cargo","vendor":"Rust Project","versions":[{"lessThan":"1.96.0","status":"affected","version":"1.0.0","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:ab6db9ad3d31ac6ce598a84440520bec2b6d74d21a965879afde4ad27a4c37c5 · sha256:3c2dcca950b58148… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":6.5,"baseSeverity":"MEDIUM","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpa…
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:ab6db9ad3d31ac6ce598a84440520bec2b6d74d21a965879afde4ad27a4c37c5 · sha256:3c2dcca950b58148… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-61","description":"CWE-61 UNIX symbolic link (symlink) following","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:ab6db9ad3d31ac6ce598a84440520bec2b6d74d21a965879afde4ad27a4c37c5 · sha256:3c2dcca950b58148… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"tags":["vendor-advisory"],"url":"https://blog.rust-lang.org/2026/05/25/cve-2026-5223/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ab6db9ad3d31ac6ce598a84440520bec2b6d74d21a965879afde4ad27a4c37c5 · sha256:3c2dcca950b58148… · /containers/cna/references/1
{"tags":["patch"],"url":"https://github.com/rust-lang/cargo/pull/17031"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ab6db9ad3d31ac6ce598a84440520bec2b6d74d21a965879afde4ad27a4c37c5 · sha256:3c2dcca950b58148… · /containers/cna/references/2
{"tags":["vendor-advisory","mailing-list"],"url":"https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:ab6db9ad3d31ac6ce598a84440520bec2b6d74d21a965879afde4ad27a4c37c5 · sha256:3c2dcca950b58148… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.