vetkit.py.code-injection.eval-exec
eval()/exec() called with a non-literal argument. Attacker-influenced input leads to arbitrary code execution.
Last updated:
Suite: Security
python
eval()/exec() called with a non-literal argument. Attacker-influenced input leads to arbitrary code execution.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Use ast.literal_eval for literals or an explicit dispatch table; never evaluate user input.
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.