Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.command-injection.tainted-process

Request input is used as the executable or the argument string of a new process. An attacker can run other programs or inject extra arguments (OS command injection).

Last updated:

Suite: Security

csharp

Request input is used as the executable or the argument string of a new process. An attacker can run other programs or inject extra arguments (OS command injection).

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Start a fixed executable and pass each validated value through ProcessStartInfo.ArgumentList (never a shell); map user choices to an allow-list.

References

Source: packages/engine/rules/sast/csharp.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.