All rules →
Rules / Rust
SHIELD-RUST-005

Command execution via shell interpreter

criticalRustCWE-78CVSS 8.8

What it detects

Spawning a shell (sh -c / bash -c) with a constructed command enables command injection.

How to fix

Invoke the target binary directly with argument vectors instead of a shell.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUST-005: Command execution via shell interpreter — Zennoxa Shield