CVE-2026-17543: SQL injection in ext-pgsql via E'...' backslash breakout

High 8.1 EPSS 0.3% PHP

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.

What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms

What to do now

  1. Check whether you run PHP and which version (commands below).
  2. Install the fixed version for your system: see “Patch it” below.
  3. 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:

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.4
Ubuntu
sudo apt update
sudo apt install --only-upgrade php8.5-fpm php8.5-cli libapache2-mod-php8.5
RHEL, AlmaLinux, Rocky, Oracle
sudo dnf upgrade --refresh php-fpm php-cli (RHEL 10 also php8.4-*)
Fedora
sudo dnf upgrade --refresh php-fpm php-cli
SUSE / openSUSE
sudo zypper refresh
sudo zypper update php8 php8-fpm
Amazon Linux
sudo dnf upgrade --releasever=latest php8.4 php8.4-fpm (or the installed php8.x)
Arch Linux
sudo pacman -Syu
Alpine
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

ReleasePackageStatusFixed version / advisory
Debian 12php8.2fixed8.2.33-1~deb12u1
Debian 13php8.4fixed8.4.24-1~deb13u1
Debian testingphp8.4fixed8.4.24-1
Red Hat Enterprise Linux 9php:8.3-9080020260806131732.9fixedRHSA-2026:57539
Red Hat Enterprise Linux 9php-0:8.0.30-8.el9_8fixedRHSA-2026:61259
Red Hat Enterprise Linux 9php:8.2-9080020260806120914.9fixedRHSA-2026:61903
Red Hat Enterprise Linux 8php:8.2-8100020260806050858.f7998665fixedRHSA-2026:57574
Red Hat Enterprise Linux 8php:7.4-8100020260805070257.f7998665fixedRHSA-2026:62334
Red Hat Enterprise Linux 6phpout of support scope
Red Hat Enterprise Linux 10php8.4-0:8.4.24-1.el10_2fixedRHSA-2026:56969
Red Hat Enterprise Linux 10php-0:8.3.33-1.el10_2fixedRHSA-2026:62614

From the Debian security tracker, Ubuntu CVE tracker and Red Hat Security Data API, refreshed every few hours.

Sources

Page generated automatically from official sources on 2026-11-03 18:05 UTC. Always confirm with your vendor's advisory.