{"cve":"CVE-2026-5223","nvd":{"published":"2026-05-25T10:16:15.480","modified":"2026-07-23T17:10:00.123","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":6.5},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3},"cwes":["CWE-61"],"references":["https://blog.rust-lang.org/2026/05/25/cve-2026-5223/","https://github.com/rust-lang/cargo/pull/17031","https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8"],"products":["rust-lang:cargo"],"source":"nvd","synced_at":"2026-10-19T22:36:28.938604137+00:00"},"epss":{"cve":"CVE-2026-5223","score":0.00294,"percentile":0.22118,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jq42-7mfv-hm57","url":"https://osv.dev/vulnerability/GHSA-jq42-7mfv-hm57","summary":"Cargo crates in third party registries can override the cached source of other crates","modified":"2026-06-26T22:11:30.659937Z","packages":[{"ecosystem":"crates.io","name":"cargo","purl":"pkg:cargo/cargo","ranges":["<0.97.0"],"fixed":["0.97.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}