Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.command-injection.exec

An OS command is built from request input (command injection). An attacker can append shell metacharacters to run arbitrary commands on the server.

Last updated:

Suite: Security

php

An OS command is built from request input (command injection). An attacker can append shell metacharacters to run arbitrary commands on the server.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Avoid shell execution; if unavoidable, wrap every argument with escapeshellarg().

References

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