CVE-2026-5223
CVE-2026-5223 is a medium-severity vulnerability in Rust-lang Cargo with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-61.
Key facts
- Severity: Medium (CVSS 3.x base score 5.3)
- CVSS v4: 6.5
- EPSS exploit prediction: 0% (21st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-31658
- Weakness: CWE-61
- Affected product: Rust-lang Cargo
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2026-5223?
- 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.
- How severe is CVE-2026-5223?
- CVE-2026-5223 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity low, and availability none.
- Is CVE-2026-5223 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (21st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-5223?
- CVE-2026-5223 affects Rust-lang Cargo. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-5223?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2026-5223 have an EU (EUVD) identifier?
- Yes. CVE-2026-5223 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-31658.
- When was CVE-2026-5223 published?
- CVE-2026-5223 was published on 2026-05-25 and last updated on 2026-06-17.
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
Affected products (1)
- cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*
More vulnerabilities in Rust-lang Cargo
- CVE-2023-38497 — High (CVSS 7.9): Cargo downloads the Rust project’s dependencies and compiles the project. Cargo prior to version 0.72.2, bundled with…
- CVE-2026-5222 — Medium (CVSS 6.5): Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the sparse index protocol.…
- CVE-2022-46176 — Medium (CVSS 5.3): Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key…
- CVE-2022-36114 — Medium (CVSS 4.8): Cargo is a package manager for the rust programming language. It was discovered that Cargo did not limit the amount of…
- CVE-2022-36113 — Medium (CVSS 4.6): Cargo is a package manager for the rust programming language. After a package is downloaded, Cargo extracts its source…
All CVEs affecting Rust-lang Cargo →
Other CWE-61 vulnerabilities
- CVE-2026-34078 — Critical (CVSS 10.0): Flatpak is a Linux application sandboxing and distribution framework. Prior to 1.16.4, the Flatpak portal accepts paths…
- CVE-2025-62596 — Critical (CVSS 10.0): Youki is a container runtime written in Rust. In versions 0.5.6 and below, youki’s apparmor handling performs…
- CVE-2025-62161 — Critical (CVSS 10.0): Youki is a container runtime written in Rust. In versions 0.5.6 and below, the initial validation of the source…
- CVE-2025-23394 — Critical (CVSS 9.8): A UNIX Symbolic Link (Symlink) Following vulnerability in openSUSE Tumbleweed cyrus-imapd allows escalation from cyrus…
- CVE-2024-54661 — Critical (CVSS 9.8): readline.sh in socat before1.8.0.2 relies on the /tmp/$USER/stderr2 file.
- CVE-2026-55447 — Critical (CVSS 9.6): Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to 1.9.2, by controlling a files…