Skip to content
vetkitChecksChangelogDocumentation

vetkit.shell.source.argument-path

The script sources (executes) a file whose path comes from its arguments (source "$1" / . "$1"). Whoever controls the argument controls the code that runs.

Last updated:

Suite: Security

bash

The script sources (executes) a file whose path comes from its arguments (source "$1" / . "$1"). Whoever controls the argument controls the code that runs.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Source only files from fixed, trusted locations; parse configuration values instead of executing them.

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.