{"vuln_id":"CVE-2026-17543","aliases":["CVE-2026-7260","CVE-2026-17544","GHSA-7qpv-r5mr-78m4"],"description":"php8.2 - security update","published_at":"2026-07-30T11:02:39Z","modified_at":"2026-11-20T01:28:46.667625Z","first_seen_at":"2026-11-21T19:15:06.054412Z","severity":"critical","severity_source":"cvss","cvss_score":9.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-89"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.0033,"epss_percentile":0.26651,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-17543"},"matched_alias":null,"items":[{"id":473,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DLA-4732-1 / CVE-2026-17543 - php8.2 - security update","summary":"Affected: Debian:12:php8.2\n\nFixed in: 8.2.33-1~deb12u1","url":"https://osv.dev/vulnerability/DLA-4732-1","published_at":"2026-08-11T00:00:00Z","updated_at":"2026-11-20T01:28:46.667625Z","fetched_at":"2026-11-21T19:15:05.963715Z","severity":"critical","cvss_score":9.8,"epss":0.0033,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2026-17543","vuln_ids":["CVE-2026-17543","CVE-2026-17544","CVE-2026-7260","DLA-4732-1","GHSA-7QPV-R5MR-78M4","GHSA-VC5H-9PPW-P5F3"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":338,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/473","html":"https://vulnwatch.ve1ve2.com/item/473"}},{"id":11895,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DSA-6406-1 / CVE-2026-17543 - php8.4 - security update","summary":"Affected: Debian:13:php8.4\n\nFixed in: 8.4.24-1~deb13u1","url":"https://osv.dev/vulnerability/DSA-6406-1","published_at":"2026-07-31T00:00:00Z","updated_at":"2026-11-20T01:28:38.827762Z","fetched_at":"2026-11-22T13:39:48.366365Z","severity":"critical","cvss_score":9.8,"epss":0.00418,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2026-17543","vuln_ids":["CVE-2026-17543","CVE-2026-17544","CVE-2026-7260","DSA-6406-1","GHSA-7QPV-R5MR-78M4","GHSA-VC5H-9PPW-P5F3","GHSA-X692-Q9X7-8C3F"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":338,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11895","html":"https://vulnwatch.ve1ve2.com/item/11895"}},{"id":11908,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DEBIAN-CVE-2026-17543 / CVE-2026-17543 - 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.* bef…","summary":"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.\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.4.24-1~deb13u1, 8.4.24-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-17543","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-17543","published_at":"2026-07-30T12:17:27.120000Z","updated_at":"2026-10-24T09:47:30.505341Z","fetched_at":"2026-11-22T13:39:48.366382Z","severity":"critical","cvss_score":9.8,"epss":0.0033,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2026-17543","vuln_ids":["CVE-2026-17543","CVE-2026-17544","CVE-2026-7260","DEBIAN-CVE-2026-17543","GHSA-7QPV-R5MR-78M4"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":338,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11908","html":"https://vulnwatch.ve1ve2.com/item/11908"}},{"id":515,"source":{"id":"debian-php","name":"Debian 12 php8.2 (package vulnerabilities)"},"title":"php8.2 (Debian:12): DEBIAN-CVE-2026-17543 / CVE-2026-17543 - 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.* bef…","summary":"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.\n\nAffected: Debian:12:php8.2, Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.2.33-1~deb12u1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-17543","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-17543","published_at":"2026-07-30T12:17:27.120000Z","updated_at":"2026-10-24T09:47:30.505341Z","fetched_at":"2026-11-21T19:15:05.963776Z","severity":"critical","cvss_score":9.8,"epss":0.0033,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.2","vuln_id":"CVE-2026-17543","vuln_ids":["CVE-2026-17543","CVE-2026-17544","CVE-2026-7260","DEBIAN-CVE-2026-17543","GHSA-7QPV-R5MR-78M4"],"tags":["package-watch","pkg:php8.2","fix-available"],"cluster_id":338,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/515","html":"https://vulnwatch.ve1ve2.com/item/515"}},{"id":12634,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-7qpv-r5mr-78m4 / CVE-2026-17543: SQL injection in ext-pgsql via E'...' backslash breakout","summary":"SQL injection in ext-pgsql via E'...' backslash breakout\n\n`php_pgsql_convert()` is used to convert and escape user-provided parameters in `pg_insert()`, `pg_update()`, `pg_select()`, and `pg_delete()`. It does so using `PQescapeStringConn()` and then wraps the result in an escape string constant, `E'...'` (via `php_pgsql_add_quotes()`).\r\n\r\nhttps://github.com/php/php-src/blob/cbc0489126a7682796aad1e5fb4e51de74af162c/ext/pgsql/pgsql.c#L4751-L4757\r\n\r\nWith `standard_conforming_strings = on` (the default since PostgreSQL 9.1), `PQescapeStringConn()` does not correctly escape values for the escape string constant `E'...'`, as it does not escape `\\` under this configuration. When `PQescapeStringConn()` escapes `'` as `''`, an attacker can trivially terminate the string by escaping the first single quote.\r\n\r\n```php\r\n$result = pg_select($db, 'user', ['name' => \"zzz\\\\' OR 1=1 --\"]);\r\n// SELECT * FROM \"user\" WHERE \"name\"='zzz\\'' OR 1=1 --';\r\nvar_dump($result); // returned all rows\r\n```\r\n\r\nNote that the doubled `\\\\` is a PHP escape sequence and that the `\\` appears only once in the parameter. Also note that `pg_select()` escapes the `'` by doubling it but does not escape the `\\`. Consequently, the first of the two `'` characters is escaped (meaning that it represents a literal `'`), while the second terminates the string. Everything after that is interpreted as part of the query.\r\n\r\nThe solution changes `php_pgsql_convert()` to wrap parameters in non-escaping string constants instead.\n\nAffected packages: php:ext-pgsql\nPatched: ext-pgsql 8.2.33, ext-pgsql 8.3.33, ext-pgsql 8.4.24, ext-pgsql 8.5.9","url":"https://github.com/php/php-src/security/advisories/GHSA-7qpv-r5mr-78m4","published_at":"2026-07-30T11:02:39Z","updated_at":"2026-07-30T11:02:39Z","fetched_at":"2026-11-22T14:05:37.431178Z","severity":"critical","cvss_score":9.8,"epss":0.0033,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-pgsql","vuln_id":"CVE-2026-17543","vuln_ids":["CVE-2026-17543","CVE-2026-17544","CVE-2026-7260","GHSA-7QPV-R5MR-78M4"],"tags":["repo-advisory","php","CWE-89","security","repo:php/php-src","stack"],"cluster_id":11743,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12634","html":"https://vulnwatch.ve1ve2.com/item/12634"}}]}