Skip to content
vetkitChecksChangelogDocumentation

vetkit.go.command-injection.shell

A shell (sh -c / bash -c) executes a dynamically built command string (command injection).

Last updated:

Suite: Security

go

A shell (sh -c / bash -c) executes a dynamically built command string (command injection).

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Invoke the binary directly with exec.Command(name, args...) and validate arguments.

References

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