Skip to content
OpenAdvisories

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 products

VendorProductAffectedFixed
Rust Project Cargo 1.0.0 – < 1.96.0 1.96.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-cargo 0.91.0-3 —
Debian 14 rustc 1.95.0+dfsg1-2 —
Debian 13 rust-cargo No fix yet —
Debian 13 rustc 1.85.1+dfsg1-1+deb13u1 —
Debian 12 cargo +2 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS rustc-1.91 +2 No fix yet —
Ubuntu 25.10 rustc-1.85 +2 No fix yet —
Ubuntu 24.04 LTS rustc +13 No fix yet —
Ubuntu 22.04 LTS rustc +13 No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS cargo No fix yet —
Ubuntu Pro 20.04 LTS cargo +6 No fix yet —
Ubuntu Pro 18.04 LTS cargo +1 No fix yet —
Ubuntu Pro 16.04 LTS cargo +1 No fix yet —
Ubuntu Pro 14.04 LTS rustc No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 rust +18 1.97.1-1.1.hum1 RHSA-2026:42923
ReleasePackageFixed inAdvisory
Alpine v3.24 rust +1 1.96.0-r0 —
Alpine v3.23 rust 1.91.1-r2 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 rust 1.75.0-30 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io cargo < 0.97.0 0.97.0 GHSA-jq42-7mfv-hm57

Advisories 1

References