CVE-2026-17543: SQL injection in ext-pgsql via E'...' backslash breakout
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.
- CVE-2026-17543CVE identifier
- 8.1CVSS 4.0 base score (high)
- 0.3%EPSS: chance of exploitation in the next 30 days (higher than 26% of CVEs)
- 2026-07-30published
What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms
What to do now
- Check whether you run PHP and which version (commands below).
- Install the fixed version for your system: see “Patch it” below.
- sudo systemctl restart php8.4-fpm (Debian; php8.5-fpm on Ubuntu 26.04) or php-fpm (RHEL/Fedora/Arch/Amazon); restart apache2/httpd when mod_php is used
Affected and fixed versions
Affected:
- PHP Group PHP 8.2.* to before 8.2.33
- PHP Group PHP 8.3.* to before 8.3.33
- PHP Group PHP 8.4.* to before 8.4.24
- PHP Group PHP 8.5.* to before 8.5.9
Patch it
Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.
Debian
sudo apt update
sudo apt install --only-upgrade php8.4-fpm php8.4-cli libapache2-mod-php8.4Ubuntu
sudo apt update
sudo apt install --only-upgrade php8.5-fpm php8.5-cli libapache2-mod-php8.5RHEL, AlmaLinux, Rocky, Oracle
sudo dnf upgrade --refresh php-fpm php-cli (RHEL 10 also php8.4-*)Fedora
sudo dnf upgrade --refresh php-fpm php-cliSUSE / openSUSE
sudo zypper refresh
sudo zypper update php8 php8-fpmAmazon Linux
sudo dnf upgrade --releasever=latest php8.4 php8.4-fpm (or the installed php8.x)Arch Linux
sudo pacman -SyuAlpine
apk update && apk upgrade php84 php84-fpm (or php83/php85)FreeBSD
pkg update && pkg upgrade php84 (or php83/php85)General update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.
Fix status in Linux distributions
| Release | Package | Status | Fixed version / advisory |
|---|---|---|---|
| Debian 12 | php8.2 | fixed | 8.2.33-1~deb12u1 |
| Debian 13 | php8.4 | fixed | 8.4.24-1~deb13u1 |
| Debian testing | php8.4 | fixed | 8.4.24-1 |
| Red Hat Enterprise Linux 9 | php:8.3-9080020260806131732.9 | fixed | RHSA-2026:57539 |
| Red Hat Enterprise Linux 9 | php-0:8.0.30-8.el9_8 | fixed | RHSA-2026:61259 |
| Red Hat Enterprise Linux 9 | php:8.2-9080020260806120914.9 | fixed | RHSA-2026:61903 |
| Red Hat Enterprise Linux 8 | php:8.2-8100020260806050858.f7998665 | fixed | RHSA-2026:57574 |
| Red Hat Enterprise Linux 8 | php:7.4-8100020260805070257.f7998665 | fixed | RHSA-2026:62334 |
| Red Hat Enterprise Linux 6 | php | out of support scope | |
| Red Hat Enterprise Linux 10 | php8.4-0:8.4.24-1.el10_2 | fixed | RHSA-2026:56969 |
| Red Hat Enterprise Linux 10 | php-0:8.3.33-1.el10_2 | fixed | RHSA-2026:62614 |
From the Debian security tracker, Ubuntu CVE tracker and Red Hat Security Data API, refreshed every few hours.
Sources
- https://github.com/php/php-src/security/advisories/GHSA-7qpv-r5mr-78m4
- CVE-2026-17543 on CVE.org
- CVE-2026-17543 on NVD
Page generated automatically from official sources on 2026-11-03 18:05 UTC. Always confirm with your vendor's advisory.