vetkit.php.sql-injection.doctrine
Request input is built into a Doctrine DQL/SQL string (SQL injection). Doctrine only protects values passed as parameters.
Last updated:
Suite: Security
php
Request input is built into a Doctrine DQL/SQL string (SQL injection). Doctrine only protects values passed as parameters.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Use placeholders (:name / ?) with setParameter() or the params argument of executeQuery(); never concatenate request values into DQL or SQL.
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.