CVSS 4.0
6.5 mediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:HMedium (6.5) in rust-lang cargo. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in cargo 0.97.0.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:HCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:Ncargo (crates.io): fixed in 0.97.0Explain CVE-2026-5223 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5223?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5223?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5223 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Rust Project Cargo | from 1.0.0 before 1.96.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-jq42-7mfv-hm57 | crates.io | cargo | <0.97.0 | 0.97.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | cargo, rustc, rust-cargo | no fix listed | DEBIAN-CVE-2026-5223 |
| Debian | 13 | rust-cargo | no fix listed | DEBIAN-CVE-2026-5223 |
| Debian | 13 | rustc | 1.85.1+dfsg1-1+deb13u1 | DEBIAN-CVE-2026-5223 |
| Debian | 14 | rust-cargo | 0.91.0-3 | DEBIAN-CVE-2026-5223 |
| Debian | 14 | rustc | 1.95.0+dfsg1-2 | DEBIAN-CVE-2026-5223 |
| Ubuntu | 22.04:LTS | rustc, rustc-1.62, rustc-1.76 and 11 more | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu | 24.04:LTS | rustc, rustc-1.74, rustc-1.76 and 11 more | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu | 25.10 | rustc-1.85, rustc-1.88, rustc-1.91 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu | 26.04:LTS | rustc-1.91, rustc-1.92, rustc-1.93 | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu | Pro:14.04:LTS | rustc | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu | Pro:16.04:LTS, Pro:18.04:LTS | cargo, rustc | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu | Pro:20.04:LTS | cargo, rustc, rustc-1.76 and 4 more | no fix listed | UBUNTU-CVE-2026-5223 |
| Ubuntu | Pro:22.04:LTS | cargo | no fix listed | UBUNTU-CVE-2026-5223 |
| Red Hat | hummingbird:1 | rust, cargo, clippy and 16 more | 0:1.97.1-1.1.hum1 | RHSA-2026:42923 |
| Alpine | v3.23 | rust | 1.91.1-r2 | ALPINE-CVE-2026-5223 |
| Alpine | v3.24 | rust, chromium-rust | 1.96.0-r0 | ALPINE-CVE-2026-5223 |
| Azure Linux | 3 | rust | 1.75.0-30 | AZL-88272 |
| Azure Linux | 3 | rust | 1.90.0-9 | AZL-88278 |
| Alpaquita | 23 | rust | 1.64.0-r4 | BELL-CVE-2026-5223 |
| Alpaquita | 25 | rust | 1.87.0-r3 | BELL-CVE-2026-5223 |
| Alpaquita | stream | rust | 1.96.0-r0 | BELL-CVE-2026-5223 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine · Alpaquita.
Red Hat rates this Moderate.
This Moderate vulnerability in Cargo arises from improper handling of symlinks within crate tarballs downloaded from third-party registries. An attacker could exploit this by publishing a malicious crate containing symlinks, leading to the overwrite of source code from other crates in the same registry. Red Hat customers using `crates.io` are not affected, as `crates.io` prohibits symlinks in uploaded crates.
To mitigate this issue, avoid using untrusted third-party Cargo registries. If third-party registries are necessary, ensure they enforce strict policies against symlinks in crate tarballs and verify the integrity of downloaded crates. No direct configuration or operational workaround is available within Cargo itself to prevent this specific symlink mishandling when using vulnerable third-party registries.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | rust-main-1.97.1-1.1.hum1 | Fixed 2026-07-21 | RHSA-2026:42923 |
| Red Hat Enterprise Linux 9 | goose | Fix deferred | |
| Red Hat Enterprise Linux 9 | greenboot-rs | Fix deferred | |
| Red Hat Enterprise Linux 9 | rust | Fix deferred |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-5223.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.