{"id":"EUVD-2026-31654","enisaUuid":"750e39de-d3f1-3b8e-a5b2-751fd3ea53ca","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.","datePublished":"May 25, 2026, 8:54:56 AM","dateUpdated":"May 26, 2026, 2:43:10 PM","baseScore":2.3,"baseScoreVersion":"4.0","baseScoreVector":"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","references":"https://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s\nhttps://blog.rust-lang.org/2026/05/25/cve-2026-5222/\nhttps://github.com/rust-lang/cargo/pull/17031\n","aliases":"CVE-2026-5222\nGHSA-p688-r7jv-fm6f\n","assigner":"rust","epss":0.48,"enisaIdProduct":[{"id":"bae35764-ad5c-372b-8e6d-f411ae5368d4","product":{"name":"cargo","vendor":{"name":"rust-lang"}},"product_version":"1.68.0 \u003c1.96.0"}],"enisaIdVendor":[{"id":"74c95ceb-b5e7-3af2-b4cd-d46ac70f5bb5","vendor":{"name":"rust"}}],"enisaIdVulnerability":[{"id":"affd31e2-f31d-37e7-a324-860a8bea3fb4","vulnerability":{"id":"CVE-2026-5222","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.","datePublished":"May 25, 2026, 8:54:56 AM","dateUpdated":"May 26, 2026, 2:43:10 PM","status":"PUBLISHED","baseScore":2.3,"baseScoreVersion":"4.0","baseScoreVector":"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","references":"https://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s\nhttps://blog.rust-lang.org/2026/05/25/cve-2026-5222/\nhttps://github.com/rust-lang/cargo/pull/17031\n","enisa_id":"EUVD-2026-31654\n","assigner":"rust","epss":0.48,"dataProcessed":"Nov 23, 2026, 7:22:03 AM","vulnerabilityProduct":[{"id":"b0a718f7-1c81-3fdb-a64d-bac783398b48","product":{"name":"cargo","vendor":{"name":"rust-lang"}},"product_version":"1.68.0 \u003c1.96.0"}],"vulnerabilityVendor":[{"id":"90c3a2a7-b720-30a7-ab11-473304aa7372","vendor":{"name":"rust"}}]}},{"id":"c0ce9b0d-07ec-3735-8bac-196ec643f94e","vulnerability":{"id":"GHSA-p688-r7jv-fm6f","description":"Cargo can be coerced to share credentials between registries","datePublished":"Jun 26, 2026, 9:47:54 PM","dateUpdated":"Jun 26, 2026, 9:47:54 PM","baseScore":0.0,"references":"https://github.com/rust-lang/cargo/security/advisories/GHSA-p688-r7jv-fm6f\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-5222\nhttps://github.com/rust-lang/cargo/pull/17031\nhttps://blog.rust-lang.org/2026/05/25/cve-2026-5222\nhttps://github.com/rust-lang/cargo\nhttps://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s\n","enisa_id":"EUVD-2026-31654\n","aliases":"CVE-2026-5222\nGHSA-p688-r7jv-fm6f\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:52:23 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[{"id":"7af8d5fd-5f86-30b3-ba23-e0c4d7e429f5","advisory":{"id":"msrc_CVE-2026-5222","description":"Cargo can be coerced to share credentials between registries","datePublished":"May 27, 2026, 1:18:44 AM","dateUpdated":"Nov 16, 2026, 10:56:47 PM","baseScore":0.0,"references":"https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-5222.json\n","aliases":"CVE-2026-5222\n","source":{"id":20,"name":"csaf_microsoft"},"advisoryProduct":[{"id":"2dfc5d7a-1238-311d-baf8-0399ad6896f3","product":{"name":"Azure Linux","vendor":{"name":"Microsoft"}}},{"id":"30eb9f41-bf77-38f9-813f-b728f8a2b438","product":{"name":"rust","vendor":{"name":"rust-lang"}}},{"id":"83001096-e5d8-3e0f-a6b5-0c2f5e406a8e","product":{"name":"3.0","vendor":{"name":"Wind River"}}},{"id":"91e21f52-ca1b-3dfe-827c-71d74b77036b","product":{"name":"azl3 rust 0:1.90.0-8.azl3","vendor":{"name":"Microsoft"}}},{"id":"e54e0550-e147-3644-a847-8355d151a67b","product":{"name":"azl3 rust 0:1.75.0-29.azl3","vendor":{"name":"Microsoft"}}},{"id":"f6d5a5d6-4d4e-3e20-b447-7d84d026d461","product":{"name":"4.0","vendor":{"name":"Invensys"}}},{"id":"ff253dc4-f9af-326f-a00c-4a2bc8ae6bb4","product":{"name":"azl4 rust 0:1.99.0-2.azl4","vendor":{"name":"Microsoft"}}}]}}]}