CVE-2026-17543
SQL injection via improper backslash escaping in Postgres
| Publication Date | 2026-07-30 |
|---|---|
| Severity | Critical |
| Type | SQL Injection |
| Affected PHP Versions |
|
| Fixed Product Versions |
|
CVE Details
When using the Postgres extension, improper escaping of backslashes in attacker-provided parameters can lead to a SQL injection vulnerability. A remote attacker could exploit this flaw by crafting malicious input, potentially gaining unauthorized access to sensitive information, manipulating data, or causing a denial of service.
Recommendations
Whenever possible, avoid using user-provided parameters with SQL queries. If you must, filter them prior to using them, and use parameterized queries (e.g. PDO::prepare() + PDOStatement::execute(), or use a query builder from a Database Abstraction Layer (DBAL) library such as Doctrine DBAL).
If you are using the Postgres extension, we recommend updating to a patched version immediately.