CVE-2022-31631Published Feb 12, 2025 · Feb 12Updated Oct 28
PDO::quote() may return unquoted string
PHP Group PHP
Critical9.1
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| PHP Group PHP |
| No fix yet |
Original description
In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 when using PDO::quote() function to quote user-supplied data for SQLite, supplying an overly long string may cause the driver to incorrectly quote the data, which may further lead to SQL injection vulnerabilities.
From the CVE record · php