{"id":"EUVD-2026-31658","revision":null,"records":[{"revision":"8c121bb3d4e448df90e4a604c501ed4c","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-5223","aliases":[],"title":"Crates in third party registries can override the cached source of other crates","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.\u00A0The 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.","state":0,"publishedAt":"2026-05-25T08:57:08.488+00:00","modifiedAt":"2026-05-27T18:35:35.093+00:00","affected":[{"ecosystem":"https://crates.io","name":"cargo","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Rust Project\",\n                    \"product\": \"Cargo\",\n                    \"collectionURL\": \"https://crates.io\",\n                    \"packageName\": \"cargo\",\n                    \"repo\": \"https://github.com/rust-lang/cargo\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"1.0.0\",\n                            \"lessThan\": \"1.96.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 4.0","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,"severity":"MEDIUM"}],"references":["https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8","https://blog.rust-lang.org/2026/05/25/cve-2026-5223/","https://github.com/rust-lang/cargo/pull/17031"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-5223","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-5223","identifiers":["CVE-2026-5223"]},"retained":false,"historicalAffected":[]},{"revision":"d1cc368f89ab47cfb3b47a0d850e5e4f","observedAt":"2026-11-24T04:29:59.76+00:00","statement":{"source":"euvd","id":"EUVD-2026-31658","aliases":["CVE-2026-5223","GHSA-jq42-7mfv-hm57"],"title":"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.\u00A0The severity of the vulnerability is **mediu…","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.\u00A0The 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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 4.0","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,"severity":null}],"references":["https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8","https://blog.rust-lang.org/2026/05/25/cve-2026-5223/","https://github.com/rust-lang/cargo/pull/17031"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-31658","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"May 25, 2026, 8:57:08 AM","dateUpdated":"May 27, 2026, 6:35:35 PM"},"relatedAdvisories":[{"id":"msrc_CVE-2026-5223","title":"Crates in third party registries can override the cached source of other crates","vulnerabilityIds":["CVE-2026-5223"]},{"id":"RHSA-2026:42923","title":"Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update","vulnerabilityIds":["CVE-2026-5223","CVE-2026-50185"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-31658","identifiers":["EUVD-2026-31658","CVE-2026-5223","GHSA-jq42-7mfv-hm57"]},"retained":false,"historicalAffected":[]},{"revision":"bb2ceb0042184a25bd63ea2b3a06aac1","observedAt":"2026-10-25T13:17:10.707+00:00","statement":{"source":"nvd","id":"CVE-2026-5223","aliases":[],"title":"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.\u00A0The severity of the vulnerability is **mediu…","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.\u00A0The 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.","state":0,"publishedAt":"2026-05-25T10:16:15.48+00:00","modifiedAt":"2026-07-23T17:10:00.123+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · 986d4109-89ea-491f-99fd-a8e4803919bd · Secondary","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","score":6.5,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"severity":"MEDIUM"}],"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"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-5223","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-61"],"productCriteria":["cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*"],"sourceDates":{"published":"2026-05-25T10:16:15.480","lastModified":"2026-07-23T17:10:00.123"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-5223","identifiers":["CVE-2026-5223"]},"retained":false,"historicalAffected":[]},{"revision":"d28e4e06394446a7b42ea392470470d7","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-jq42-7mfv-hm57","aliases":["CVE-2026-5223"],"title":"Cargo crates in third party registries can override the cached source of other crates","description":"The Rust Security Response Team was notified that 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.\n\nThis vulnerability is tracked as CVE-2026-5223. 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.\n\n## Overview\n\nWhen building a crate, Cargo extracts its source code in a local cache (stored within `~/.cargo`), reusing it for any future build. Cargo includes protections to prevent any file from being extracted outside of the crate's own cache directory.\n\nIt was discovered that it's possible to craft a malicious tarball able to extract files one level below the crate's own cache directory. With the way the cache is structured, that allowed the malicious crate to override the cache of other crates belonging to the same registry.\n\n## Mitigations\n\nRust 1.96.0, to be released on May 28th, 2026, will update Cargo to reject extracting *any* symlink within crate tarballs, regardless of whether they come from crates.io (which already forbids them) or third-party registries. Note that Cargo never added symlinks when running `cargo package` or `cargo publish`, so the impact of this should be minimal.\n\nUsers who are not able to upgrade to the most recent Rust version are recommended to audit the contents of their registry for the presence of any symlink, and to configure their registry to reject symlink (if such option is available).\n\n## Affected versions\n\nAll versions of Cargo shipped before Rust 1.96.0 are affected.\n\n## Acknowledgements\n\nCargo would like to thank Christos Papakonstantinou for reporting this to us according to the [Rust security policy][1].\n\nCargo also wants to thank the members of the Rust project who helped address the vulnerability: Josh Triplett for developing the fix; Arlo Siemsen for reviewing the fix; Emily Albini for writing this advisory; Emily Albini, Josh Stone and Manish Goregaokar for coordinating the disclosure; Ed Page and Eric Huss for advising during the disclosure.\n\n[1]: https://rust-lang.org/policies/security","state":0,"publishedAt":"2026-06-26T21:48:43+00:00","modifiedAt":"2026-06-26T22:11:30.659937+00:00","affected":[{"ecosystem":"crates.io","name":"cargo","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.97.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/rust-lang/cargo/security/advisories/GHSA-jq42-7mfv-hm57","https://nvd.nist.gov/vuln/detail/CVE-2026-5223","https://github.com/rust-lang/cargo/pull/17031","https://blog.rust-lang.org/2026/05/25/cve-2026-5223","https://github.com/rust-lang/cargo","https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8"],"sourceUrl":"https://github.com/advisories/GHSA-jq42-7mfv-hm57","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-jq42-7mfv-hm57","identifiers":["GHSA-jq42-7mfv-hm57","CVE-2026-5223"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T06:27:23.1283046+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T06:27:23.1283046+00:00","lastSuccessAt":"2026-11-24T06:27:23.2869282+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:27:23.2869283+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-a6ece4f9ff8c9985adfd8cfc655a594971f8e66bcf1a0e30038d5b5754f56054","complete":true,"records":431033,"lastAttemptAt":"2026-11-24T06:25:37.9863077+00:00","lastSuccessAt":"2026-11-24T06:25:37.91421+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:25:37.9863077+00:00","snapshotPublishedAt":"2026-11-24T05:29:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-56af620a27a34b0c9aeb96f12a8895a8","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T06:28:08.9791517+00:00","lastSuccessAt":"2026-11-24T06:28:09.0419756+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:28:09.0419756+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T06:27:23.1283046+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T06:27:23.1283046+00:00","lastSuccessAt":"2026-11-24T06:27:23.287684+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:27:23.2876841+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4f9d2e805a9c49b79b35fea071c09495","complete":true,"records":13947,"lastAttemptAt":"2026-11-24T06:27:48.1138355+00:00","lastSuccessAt":"2026-11-24T06:27:48.11+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:27:48.11+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13982,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T06:27:23.0811519+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:27:23.0811519+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T06:25:38.1424912+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:25:38.1424912+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-15e801f03affdaac7ba10268556f4d0b3e1b9f897dae85fdcade5fc30d25011c","complete":true,"records":3217,"lastAttemptAt":"2026-11-24T06:27:23.0944421+00:00","lastSuccessAt":"2026-11-23T17:27:41.2539213+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:27:23.0944421+00:00","snapshotPublishedAt":"2026-11-23T16:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-d95e22bbd2354420d7a1502babde978c5df2a8a131d05ff19b21adc7da0ab0b6","complete":true,"records":232947,"lastAttemptAt":"2026-11-24T06:27:22.9517571+00:00","lastSuccessAt":"2026-11-24T06:27:21.8691292+00:00","error":null,"lastVerifiedAt":"2026-11-24T06:27:22.9517571+00:00","snapshotPublishedAt":"2026-11-24T06:04:19+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}