PHP-FPM allowed_clients IPv6 Check, CVE-2026-91768
CVE-2026-91768 hits PHP-FPM pools on IPv6 TCP that rely on listen.allowed_clients, which compares only 96 bits. Check whether you are affected, then patch.
CVE-2026-91768 applies only to servers where PHP-FPM takes FastCGI over IPv6 TCP and listen.allowed_clients is the access control. Decide whether you are in that group first, then update the package. Vendor advisory: GHSA-62xp-839h-2637.
[1] Read what the advisory says and note the fixed versions. IPv6 addresses are compared on their first 96 bits only, so an address sharing those bits with an allowed one passes the check and reaches the FastCGI port. Severity is Moderate (CVSS 6.5), published 2026-09-24.
| Branch | Affected | Fixed in |
|---|---|---|
| PHP 8.2 | below 8.2.34 | 8.2.34 |
| PHP 8.3 | below 8.3.35 | 8.3.35 |
| PHP 8.4 | below 8.4.26 | 8.4.26 |
| PHP 8.5 | below 8.5.11 | 8.5.11 |
Ubuntu 24.04 php8.3 | below 8.3.6-0ubuntu0.24.04.12 | 8.3.6-0ubuntu0.24.04.12 (Ubuntu CVE page, USN-8936-1) |
Ubuntu 22.04 php8.1 | below 8.1.2-1ubuntu2.27 | 8.1.2-1ubuntu2.27 |
[2] Check the installed version. Distribution packages backport the fix without bumping the version, so **do not call a server vulnerable just because php -v says 8.3.6.**
$ php-fpm8.3 -v | head -1$ dpkg -l 'php8.3-fpm' | tail -1$ apt-cache policy php8.3-fpm | head -3The Ubuntu 24.04 package used for testing printed this. The build date is after the fix landed.
$ php-fpm8.3 -v | head -1PHP 8.3.6 (fpm-fcgi) (built: Oct 19 2026 15:16:58)[3] To see whether a package contains the fix, search its changelog for the CVE number. The nearest package header above the match is the version that brought the fix.
$ zcat /usr/share/doc/php8.3-common/changelog.Debian.gz | grep -nE "CVE-2026-91768|^php8.3 \(" | head -61:php8.3 (8.3.6-0ubuntu0.24.04.13) noble-security; urgency=medium298:php8.3 (8.3.6-0ubuntu0.24.04.12) noble-security; urgency=medium306: - debian/patches/CVE-2026-91768.patch: Fix GHSA-62xp-839h-2637: FastCGI310: - CVE-2026-91768406:php8.3 (8.3.6-0ubuntu0.24.04.11) noble-security; urgency=medium424:php8.3 (8.3.6-0ubuntu0.24.04.10) noble-security; urgency=medium[4] Dump the effective configuration to see whether a pool matches the advisory's conditions. -tt tests the config and prints the final per-pool values without starting the service, including files pulled in by include=.
# php-fpm8.3 -tt 2>&1 | grep -E "listen =|allowed_clients"A listen value such as [::1]:9000 or [::]:9000, or **a bare port such as 9000**, means IPv6 TCP. Below is a test pool of that kind (addresses are from the documentation range).
$ php-fpm8.3 -tt 2>&1 | grep -E "listen =|allowed_clients"NOTICE: listen = [::1]:19000NOTICE: listen.allowed_clients = 2001:db8:0:0:0:0:0:1, 127.0.0.1NOTICE: pm.status_listen = undefinedWith a Unix socket, listen is a path. The advisory lists this as not affected.
$ php-fpm8.3 -tt 2>&1 | grep -E "listen =|allowed_clients"NOTICE: listen = /run/php/fpm.sockNOTICE: listen.allowed_clients = 127.0.0.1NOTICE: pm.status_listen = undefined[5] Classify each pool. The advisory names Unix sockets, IPv4-only listeners and an external firewall acting as the real boundary as not affected.
listen | Relies on allowed_clients as access control | Verdict |
|---|---|---|
| a path (Unix socket) | n/a | not affected |
IPv4, e.g. 127.0.0.1:port | n/a | not affected |
a bare port (9000) | yes | affected: update (it listens on all addresses) |
[address]:port or [::]:port | yes | affected: update |
[address]:port or [::]:port | no (a firewall blocks it) | no exposure, but update anyway |
# php-fpm8.3 -tt 2>&1 | grep -E "NOTICE: \[|listen =|allowed_clients"$ php-fpm8.3 -tt 2>&1 | grep -E "NOTICE: \[|listen =|allowed_clients"NOTICE: [global]NOTICE: [www]NOTICE: listen = 19001NOTICE: listen.allowed_clients = 127.0.0.1NOTICE: pm.status_listen = undefinedNOTICE: [api]NOTICE: listen = /tmp/x-bare.sockNOTICE: listen.allowed_clients = undefinedNOTICE: pm.status_listen = undefinedThe [www] pool has only a port. A listen with a port only does not mean IPv4: it listens on all addresses (IPv6 and IPv4-mapped), as the comment in the shipped www.conf says.
$ grep -n -A1 "^; .port. " /etc/php/8.3/fpm/pool.d/www.conf | head -237:; 'port' - to listen on a TCP socket to all addresses38-; (IPv6 and IPv4-mapped) on a specific port;"Not affected" in the table follows the configurations the advisory lists; it is not a guarantee of safety. The check covers only the pool settings this server uses, so look separately at other paths (for example a separate FPM inside a container).
[6] If affected, update the package and restart FPM. A running process keeps the old binary until it restarts.
# apt-get update# apt-get install --only-upgrade php8.3-fpm php8.3-common# systemctl restart php8.3-fpmFor upstream builds, move to the fixed version in the table (8.2.34, 8.3.35, 8.4.26 or 8.5.11) or later. The advisory gives no separate workaround. Until you update, allowing only the intended addresses at the firewall or security group in front of the FastCGI port is the boundary that actually holds.
[7] After updating, repeat the changelog search from step 3 and confirm that dpkg -l shows the fixed version or later. If systemctl show php8.3-fpm -p ActiveEnterTimestamp is later than the upgrade time, the new processes are running.
Where the check gets confusing
php -vandphp-fpm8.3 -vkeep printing 8.3.6. That is Ubuntu's backported package rather than upstream 8.3.35, so decide from the changelog in step 3.php -vis the CLI, a separate package from FPM. The CLI can be updated whilephp8.3-fpmstays old, so check withphp-fpm8.3.listen.allowed_clientsis set per pool. One pool does not tell you about the others.
Check it with the CIDR · subnet calculator tool ↗ — calculated in your browser.