A critical vulnerability in Rust's package manager, Cargo, tracked as CVE-2026-5223, allows a malicious crate to poison the local build cache without altering the lockfile. The cargo fetch command appeared clean, and checksums passed, but the cached source on disk had already been swapped. Every downstream build silently compiled attacker-controlled code.
The Rust team patched the issue in version 1.96.1. However, any machine that ran cargo between the disclosure window and today may still have dirty cache entries sitting in ~/.cargo. Users are urged to audit their registry cache before the next CI run, not after.
For details, see the official security advisory: Security Advisory for Cargo (CVE-2026-5223).