Skip to content
vetkitChecksChangelogDocumentation

vetkit.shell.eval.positional-args

eval runs a string built from the script's or function's arguments ($1, $@, $*). Any shell metacharacters in an argument are executed as commands.

Last updated:

Suite: Security

bash

eval runs a string built from the script's or function's arguments ($1, $@, $*). Any shell metacharacters in an argument are executed as commands.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Avoid eval: call the command directly with quoted arguments ("$@"), use arrays to build argument lists, and dispatch on an allow-list (case statement) instead of evaluating names.

References

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