Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.code-injection.eval

PHP code is evaluated from a non-literal value (code injection).

Last updated:

Suite: Security

php

PHP code is evaluated from a non-literal value (code injection).

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Remove eval/assert/create_function on dynamic strings; use explicit dispatch.

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.