CVE-2026-5223: CWE-61 UNIX symbolic link (symlink) following in Rust Project Cargo
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.
AI Analysis
Technical Summary
Cargo versions including 1.0.0 improperly handle symbolic links within crate tarballs downloaded from third-party registries. This vulnerability (CWE-61) enables a malicious actor to craft a crate that uses symlinks to overwrite or replace the source code of other crates from the same registry, potentially leading to supply chain compromise. The issue does not affect crates.io users as that registry disallows symlinks in uploaded crates. The CVSS 4.0 base score is 6.5, reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and limited impact on confidentiality and integrity with high scope and security requirements.
Potential Impact
The vulnerability allows an attacker controlling a crate in a third-party registry to override source code of other crates from that registry when Cargo downloads and extracts them. This can lead to supply chain attacks affecting users who rely on third-party registries that permit symlinks. Users of crates.io are not impacted. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid using third-party registries that allow symlinks in crate tarballs or verify the integrity of crates before use. Users of crates.io are not affected and require no action. Monitor official Rust Project advisories for updates and patches addressing this issue.
CVE-2026-5223: CWE-61 UNIX symbolic link (symlink) following in Rust Project Cargo
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Cargo versions including 1.0.0 improperly handle symbolic links within crate tarballs downloaded from third-party registries. This vulnerability (CWE-61) enables a malicious actor to craft a crate that uses symlinks to overwrite or replace the source code of other crates from the same registry, potentially leading to supply chain compromise. The issue does not affect crates.io users as that registry disallows symlinks in uploaded crates. The CVSS 4.0 base score is 6.5, reflecting network attack vector, low attack complexity, no privileges required, user interaction required, and limited impact on confidentiality and integrity with high scope and security requirements.
Potential Impact
The vulnerability allows an attacker controlling a crate in a third-party registry to override source code of other crates from that registry when Cargo downloads and extracts them. This can lead to supply chain attacks affecting users who rely on third-party registries that permit symlinks. Users of crates.io are not impacted. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid using third-party registries that allow symlinks in crate tarballs or verify the integrity of crates before use. Users of crates.io are not affected and require no action. Monitor official Rust Project advisories for updates and patches addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- rust
- Date Reserved
- 2026-03-31T12:07:41.420Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a141902a5ae1af1aa7fdd89
Added to database: 5/25/2026, 9:40:18 AM
Last enriched: 5/25/2026, 9:55:28 AM
Last updated: 5/26/2026, 7:54:47 AM
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.