Cargo
Rust package manager abuse techniques
critical
Code Execution
Cargo build.rs Build Script Execution
Cargo automatically compiles and executes a build.rs file before building any crate that includes one. The build script runs as a native …
Linux
macOS
Windows
medium
Supply Chain
Cargo Alternate-Registry Extraction Attacks
Cargo versions before Rust 1.64 accepted two malformed archive patterns from alternate registries. CVE-2022-36113 allowed a crate-supplied …
Linux
macOS
Windows
high
Code Execution
Cargo Install from Git Repository
The `cargo install --git` command clones a git repository and builds its contents locally, including executing any build.rs scripts and …
Linux
macOS
Windows
critical
Code Execution
Cargo Procedural Macro Code Execution
Rust procedural macros are compiled and executed during compilation when source code invokes one of their derive, attribute, or …
Linux
macOS
Windows