Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.command-injection.ssh-exec-command

A remote shell command for SSH exec_command() is built with string interpolation. Values containing shell metacharacters run arbitrary commands on the remote host.

Last updated:

Suite: Security

python

A remote shell command for SSH exec_command() is built with string interpolation. Values containing shell metacharacters run arbitrary commands on the remote host.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Quote every interpolated value with shlex.quote() or validate it against a strict allow-list.

References

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