Description (CNA)
sqlparse through 0.6.0 contains a PHP code injection vulnerability that allows attackers to inject PHP expressions by supplying SQL text containing unescaped dollar signs. Attackers can embed ${expr} or {${expr}} sequences that OutputPHPFilter places in double-quoted strings, executing arbitrary PHP code when the generated snippet runs.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| andialbrecht / sqlparse | affected 0 through 0.6.0 |
CWE
CWE-94
References
- https://github.com/andialbrecht/sqlparse/pull/930
- https://github.com/andialbrecht/sqlparse/blob/0.6.0/sqlparse/filters/output.py
- https://www.vulncheck.com/advisories/sqlparse-through-0.6.0-php-code-injection-via-output-format-php
ADP enrichment
No English description supplied.
No references supplied.