{"schemaVersion":3,"id":"CVE-2026-5222","aliases":["ALPINE-CVE-2026-5222","UBUNTU-CVE-2026-5222","DEBIAN-CVE-2026-5222","GHSA-p688-r7jv-fm6f"],"status":"published","duplicateOf":null,"title":null,"description":"Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the sparse index protocol. If a hosting provider allowed multiple registries to be hosted with arbitrary names within the same domain, an attacker able to publish crates in a registry could obtain the credentials of others users of the same registry. The severity of the vulnerability is **low**, due to the extremely niche requirements needed to achieve the attack.","dates":{"published":"2026-05-25T08:54:56.348Z","modified":"2026-05-26T14:43:10.019Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Crates.io","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.3,"severity":"low","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/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":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00478,"percentile":0.39901,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00478},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00478,"percentile":0.39901}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00497,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00478,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00478,"percentile":0.39901}]},"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-647","name":"Use of Non-Canonical URL Paths for Authorization Decisions","description":"The product defines policy namespaces and makes authorization decisions based on the assumption that a URL is canonical. This can allow a non-canonical URL to bypass the authorization.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/647.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-lang","product":"cargo","name":"cargo","label":"cargo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.68.0, < 1.96.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.68.0, < 1.96.0","eol":null,"hubHref":"/vendor/rust-lang/cargo"},{"vendor":"rust","product":"cargo","name":"Cargo","label":"cargo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.68.0, < 1.96.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.68.0, < 1.96.0","eol":null,"hubHref":"/vendor/rust/cargo"}],"affectedCount":26,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s","label":"groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s","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-5222/","label":"blog.rust-lang.org/2026/05/25/cve-2026-5222/","hostname":"blog.rust-lang.org","tags":["Vendor Advisory","REPORT"]},{"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-5222","label":"security.alpinelinux.org/vuln/CVE-2026-5222","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-5222","label":"ubuntu.com/security/CVE-2026-5222","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-5222","label":"www.cve.org/CVERecord?id=CVE-2026-5222","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-5222","label":"security-tracker.debian.org/tracker/CVE-2026-5222","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/rust-lang/cargo/security/advisories/GHSA-p688-r7jv-fm6f","label":"github.com/rust-lang/cargo/security/advisories/GHSA-p688-r7jv-fm6f","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5222","label":"nvd.nist.gov/vuln/detail/CVE-2026-5222","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://blog.rust-lang.org/2026/05/25/cve-2026-5222","label":"blog.rust-lang.org/2026/05/25/cve-2026-5222","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":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-05-25T08:54:56.348Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-26T14:43:10.019Z","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-20T10:33:29.049Z","stale":false,"partial":false}}