Re:Malicious Rust crate Arrayref runs a build-time payload
by kibwen on Sunday August 23, 2026 @12:08AM
(#49405986)
This comment is both true and entirely irrelevant. The context of this subthread is not running a Cargo command in a checkout of a malicious git repo, it's alleging that `cargo add foo` runs the build script of the crate `foo`, which is false.
> any command starting with cargo can run arbitrary code when operating on an untrusted repository, and should be treated the same as cargo run.