CVE-2026-5223Rust-lang Cargo
Medium 6.5 No auth needed
Follow: this CVE · Rust-lang · Rust-lang Cargo We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 4.0
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- May 25, 2026
- Updated
- Jul 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-61
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- 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
What happens
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.
What to do
- Apply the vendor's security update for Cargo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | cargo |
< 0.97.0 |
0.97.0 |
cargo update -p cargo --precise 0.97.0 |
Per OSV / GitHub Advisories (GHSA-jq42-7mfv-hm57). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| rust-lang | cargo | < 1.96.0 |
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:42923 · Jul 28, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- blog.rust-lang.org Mitigation Vendor Advisory
- github.com Issue Tracking Patch
- groups.google.com Mailing List Third Party Advisory