# CVE-2026-5223: Crates in third party registries can override the cached source of other crates

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-25 · Modified: 2026-05-27
- Aliases: ALPINE-CVE-2026-5223, UBUNTU-CVE-2026-5223, DEBIAN-CVE-2026-5223, GHSA-jq42-7mfv-hm57
- Record: https://cvemate.com/vulnerability/CVE-2026-5223 · JSON: https://cvemate.com/vulnerability/CVE-2026-5223/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v4.0, CVE.org) 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
- EPSS: 0.294%, percentile 23.707%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 27)

- alpine chromium-rust (Alpine Linux): \< 1.96.0-r0
- alpine rust (Alpine Linux): \< 1.91.1-r2 \| \< 1.96.0-r0
- Crates.Io cargo (Crates.Io): \< 0.97.0
- debian cargo (Debian): All versions (No fix recorded)
- debian rust-cargo (Debian): All versions (No fix recorded) \| \< 0.91.0-3
- debian rustc (Debian): All versions (No fix recorded) \| \< 1.85.1+dfsg1-1+deb13u1 \| \< 1.95.0+dfsg1-2
- ubuntu cargo (Ubuntu): All versions (No fix recorded)
- ubuntu rustc (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.62 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.74 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.76 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.77 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.78 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.79 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.80 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.81 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.82 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.83 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.84 (Ubuntu): All versions (No fix recorded)
- ubuntu rustc-1.85 (Ubuntu): All versions (No fix recorded)

## 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>
- <https://security.alpinelinux.org/vuln/CVE-2026-5223>
- <https://ubuntu.com/security/CVE-2026-5223>
- <https://www.cve.org/CVERecord?id=CVE-2026-5223>
- <https://security-tracker.debian.org/tracker/CVE-2026-5223>
- <https://github.com/rust-lang/cargo/security/advisories/GHSA-jq42-7mfv-hm57>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5223>
- <https://blog.rust-lang.org/2026/05/25/cve-2026-5223>
- <https://github.com/rust-lang/cargo>

---

Data as of 2026-12-05T10:25:38.427Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
