CVE-2026-17543 Details
Description
Improper escaping of backslashes in attacker-provided parameters would allow for trivial SQL injection in PHP versions from 8.2.* before 8.2.33, from 8.3.* before 8.3.33, from 8.4.* before 8.4.24, and from 8.5.* before 8.5.9.
A SQL injection vulnerability has been identified in the PostgreSQL extension of PHP. This issue arises from improper escaping of backslashes in user-provided parameters, allowing attackers to manipulate SQL queries. The vulnerability affects PHP versions 8.2.* prior to 8.2.33, 8.3.* prior to 8.3.33, 8.4.* prior to 8.4.24, and 8.5.* prior to 8.5.9. The root cause lies in the `php_pgsql_convert()` function, which incorrectly escapes values for PostgreSQL's standard escape string constant 'E'...' when the `standard_conforming_strings` setting is enabled, the default since PostgreSQL 9.1. This flaw can be exploited by terminating a string in a SQL query and injecting additional conditions, such as bypassing authentication or manipulating data.
Users can upgrade to PHP versions 8.2.33, 8.3.33, 8.4.24, or 8.5.9 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/php/php-src/security/advisories/GHSA-7qpv-r5mr-78m4 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| php php | >= 8.2.0, < 8.2.33 >= 8.3.0, < 8.3.33 >= 8.4.0, < 8.4.24 >= 8.5.0, < 8.5.9 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 5, 2026 | Initial Analysis | [email protected] |
| Jul 31, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2026 | New CVE Received | [email protected] |