Vulnerability · Published May 25, 2026 · Assigned by rust
CVE-2026-5223Crates in third party registries can override the cached source of other crates
Medium 6.5
In plain English
A medium-severity security flaw in Cargo from Rust Project. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | chromium-rust | 1.96.0-r0 | ALPINE-CVE-2026-5223 |
| Alpine:v3.23 | rust | 1.91.1-r2 | ALPINE-CVE-2026-5223 |
| Alpine:v3.24 | rust | 1.96.0-r0 | ALPINE-CVE-2026-5223 |
| Debian:12 | cargo | no fix listed | DEBIAN-CVE-2026-5223 |
| Debian:12 | rust-cargo | no fix listed | DEBIAN-CVE-2026-5223 |
| Debian:13 | rust-cargo | no fix listed | DEBIAN-CVE-2026-5223 |
| Debian:14 | rust-cargo | 0.91.0-3 | DEBIAN-CVE-2026-5223 |
| Debian:12 | rustc | no fix listed | DEBIAN-CVE-2026-5223 |
| Debian:13 | rustc | 1.85.1+dfsg1-1+deb13u1 | DEBIAN-CVE-2026-5223 |
| Debian:14 | rustc | 1.95.0+dfsg1-2 | DEBIAN-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.62 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.74 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.76 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.76 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.77 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.77 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.78 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.78 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.79 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.79 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.80 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.80 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.81 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.81 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.82 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.82 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.83 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.83 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.84 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.84 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.85 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.85 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:25.10 | rustc-1.85 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:25.10 | rustc-1.88 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.89 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.89 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:22.04:LTS | rustc-1.91 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:24.04:LTS | rustc-1.91 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:25.10 | rustc-1.91 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:26.04:LTS | rustc-1.91 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:26.04:LTS | rustc-1.92 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu:26.04:LTS | rustc-1.93 | no fix listed | UBUNTU-CVE-2026-5223 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Rust Project | Cargo | 1.0.0 – before 1.96.0 |
Weakness: CWE-61 · 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
References
- https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8 vendor-advisory, mailing-list
- https://blog.rust-lang.org/2026/05/25/cve-2026-5223/ vendor-advisory
- https://github.com/rust-lang/cargo/pull/17031 patch