Crates in third party registries can override the cached source of other crates
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rust Project | Cargo | 1.0.0 to before 1.96.0 | 1.96.0 | Patch available | CNA |
| — | cargo (crates.io) | before 0.97.0 | 0.97.0 | Patch available | GHSA-jq42-7mfv-hm57 |
- Cargo VendorRust Project Affected 1.0.0 to before 1.96.0 Fixed in 1.96.0 Patch available CNA
- cargo (crates.io) Vendor— Affected before 0.97.0 Fixed in 0.97.0 Patch available GHSA-jq42-7mfv-hm57
Remediation
- Fix · CNA Cargo (Rust Project) Fixed in 1.96.0
- Fix · GHSA-jq42-7mfv-hm57 cargo (crates.io) Fixed in 0.97.0 Advisory →
Red Hat 1 advisory
- RHSA-2026:42923 Released 2026-07-21 · Red Hat rating ModerateRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images cargo-1.97.1-1.1.hum1@aarch64, cargo-1.97.1-1.1.hum1@x86_64, clippy-1.97.1-1.1.hum1@aarch64 +36
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:42923 |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-5223
- 2026-10-03 Alias added: GHSA-jq42-7mfv-hm57
References
Advisory 3
More Rust Project vulnerabilities
- TI-2025-10287 Rust standard library didn't detect all path separators on Cygwin CVSS 4.0MEDIUM 6.3
Sources
- CVE-2026-5223 · CVE Program
- CVE-2026-5223 · NVD
- FIRST EPSS
- GHSA-jq42-7mfv-hm57 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-5223 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences