{"schemaVersion":3,"id":"CVE-2026-5223","aliases":["ALPINE-CVE-2026-5223","UBUNTU-CVE-2026-5223","DEBIAN-CVE-2026-5223","GHSA-jq42-7mfv-hm57"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-05-25T08:57:08.488Z","modified":"2026-05-27T18:35:35.093Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.5,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.5,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Crates.io","score":6.5,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.5,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00294,"percentile":0.20748,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00294},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00294,"percentile":0.20748}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00415,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00294,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00294,"percentile":0.20748}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following","description":"The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.","type":"weakness","status":"Incomplete","abstraction":"Compound","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/61.html"}],"affected":[{"vendor":"alpine","product":"rust","name":"rust","label":"rust","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/rust","purlType":"apk","versions":[{"text":"< 1.91.1-r2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.96.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.91.1-r2 | < 1.96.0-r0","eol":null,"hubHref":null},{"vendor":"Crates.Io","product":"cargo","name":"cargo","label":"cargo","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/cargo","purlType":"cargo","versions":[{"text":"< 0.97.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.97.0","eol":null,"hubHref":null},{"vendor":"debian","product":"cargo","name":"cargo","label":"cargo","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cargo","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"rust-cargo","name":"rust-cargo","label":"rust-cargo","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rust-cargo","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 0.91.0-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 0.91.0-3","eol":null,"hubHref":null},{"vendor":"debian","product":"rustc","name":"rustc","label":"rustc","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rustc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.85.1+dfsg1-1+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.95.0+dfsg1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.85.1+dfsg1-1+deb13u1 | < 1.95.0+dfsg1-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"cargo","name":"cargo","label":"cargo","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/cargo","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc","name":"rustc","label":"rustc","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.62","name":"rustc-1.62","label":"rustc-1.62","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.62","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.74","name":"rustc-1.74","label":"rustc-1.74","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.74","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.76","name":"rustc-1.76","label":"rustc-1.76","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.76","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.77","name":"rustc-1.77","label":"rustc-1.77","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.77","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.78","name":"rustc-1.78","label":"rustc-1.78","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.78","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.79","name":"rustc-1.79","label":"rustc-1.79","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.79","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.80","name":"rustc-1.80","label":"rustc-1.80","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.80","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.81","name":"rustc-1.81","label":"rustc-1.81","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.81","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.82","name":"rustc-1.82","label":"rustc-1.82","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.82","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.83","name":"rustc-1.83","label":"rustc-1.83","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.83","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.84","name":"rustc-1.84","label":"rustc-1.84","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.84","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.85","name":"rustc-1.85","label":"rustc-1.85","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.85","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.88","name":"rustc-1.88","label":"rustc-1.88","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.88","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.89","name":"rustc-1.89","label":"rustc-1.89","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.89","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.91","name":"rustc-1.91","label":"rustc-1.91","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.91","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.92","name":"rustc-1.92","label":"rustc-1.92","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.92","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rustc-1.93","name":"rustc-1.93","label":"rustc-1.93","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rustc-1.93","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"rust project","product":"cargo","name":"Cargo","label":"cargo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.96.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.96.0","eol":null,"hubHref":"/vendor/rust_project/cargo"},{"vendor":"rust-lang","product":"cargo","name":"cargo","label":"cargo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.96.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.96.0","eol":null,"hubHref":"/vendor/rust-lang/cargo"}],"affectedCount":26,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8","label":"groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8","hostname":"groups.google.com","tags":["Vendor Advisory","Mailing List","REPORT","WEB","Third Party Advisory"]},{"url":"https://blog.rust-lang.org/2026/05/25/cve-2026-5223/","label":"blog.rust-lang.org/2026/05/25/cve-2026-5223/","hostname":"blog.rust-lang.org","tags":["Vendor Advisory","REPORT","Mitigation"]},{"url":"https://github.com/rust-lang/cargo/pull/17031","label":"github.com/rust-lang/cargo/pull/17031","hostname":"github.com","tags":["Patch","REPORT","WEB","Issue Tracking"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-5223","label":"security.alpinelinux.org/vuln/CVE-2026-5223","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-5223","label":"ubuntu.com/security/CVE-2026-5223","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-5223","label":"www.cve.org/CVERecord?id=CVE-2026-5223","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-5223","label":"security-tracker.debian.org/tracker/CVE-2026-5223","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/rust-lang/cargo/security/advisories/GHSA-jq42-7mfv-hm57","label":"github.com/rust-lang/cargo/security/advisories/GHSA-jq42-7mfv-hm57","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5223","label":"nvd.nist.gov/vuln/detail/CVE-2026-5223","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://blog.rust-lang.org/2026/05/25/cve-2026-5223","label":"blog.rust-lang.org/2026/05/25/cve-2026-5223","hostname":"blog.rust-lang.org","tags":["WEB"]},{"url":"https://github.com/rust-lang/cargo","label":"github.com/rust-lang/cargo","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["RHSA-2026:42923"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-05-25T08:57:08.488Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-27T18:35:35.093Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:27:02.060Z","stale":false,"partial":false}}