vetkit.rust.command-injection.shell
A shell (sh -c / cmd /C) executes a dynamically built command string (command injection).
Last updated:
Suite: Security
rust
A shell (sh -c / cmd /C) executes a dynamically built command string (command injection).
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Run the program directly with Command::new(program).arg(value) so every value stays a single argument, and validate values that select files or options.
References
Source: packages/engine/rules/sast/rust.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.