· adswds-team · Security  · 3 min read

PHP-FPM’s IPv6 allow-list compared 12 bytes: CVE-2026-91768

24 Sep 2026 PHP security release: listen.allowed_clients compares only the first 12 bytes of an IPv6 address, widening an exact host to a /96. Fixed in 8.2.34, 8.3.35, 8.4.26, and 8.5.11. Unix sockets and IPv4-only listeners are out of scope.

24 Sep 2026 PHP security release: listen.allowed_clients compares only the first 12 bytes of an IPv6 address, widening an exact host to a /96. Fixed in 8.2.34, 8.3.35, 8.4.26, and 8.5.11. Unix sockets and IPv4-only listeners are out of scope.

The 24 Sep 2026 PHP security release fixed an FPM access check, not a language feature. GHSA-62xp-839h-2637 (CVE-2026-91768) says the IPv6 branch of the FastCGI client check compares 12 bytes of a 16-byte address, so listen.allowed_clients matches a /96 prefix instead of the host you wrote. Someone who can source an address sharing those 96 bits, and who can reach the listen port, passes the ACL and hits the FastCGI endpoint.

In one line: the allow-list says one host; the compare accepts a /96.

The CVE record scores this CVSS 3.1 6.5 (Medium, AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N). The attack vector is adjacent network, not arbitrary Internet hosts. The advisory’s impact paragraph also says that reaching FastCGI often means executing PHP in the FPM worker. The numeric score does not mark integrity. Read the advisory text, not only 6.5.


Who is affected

ItemDetail
AffectedBuilds before 8.2.34, 8.3.35, 8.4.26, 8.5.11
Fixed8.2.34, 8.3.35, 8.4.26, 8.5.11 and later on the same branch
Required setupFastCGI over IPv6 TCP, with listen.allowed_clients as the security boundary
Not affectedUnix sockets, IPv4-only listeners, or an external firewall that is the real boundary
FixCompare sizeof the full in6_addr (16 bytes)
ChangelogFPM entry on the 24 Sep security releases, including PHP 8.5.11

The IPv4 branch compares all 4 bytes. A 12-byte offset is correct for reaching the embedded IPv4 in an IPv4-mapped address; it is not a valid length for a plain IPv6 compare. Allow-list entries are parsed with inet_pton(AF_INET6, ...), so the truncation widens them silently.

The advisory’s local php-fpm check: with listen.allowed_clients = ::2, a request from ::1 is accepted (shared 96-bit prefix); with 2001:db8::2, a request from ::1 is denied. That is ACL behavior, not a general remote-code precondition.


Landing hosts

127.0.0.1:9000 and Unix sockets are outside the affected configurations. Check these instead:

  • listen is an IPv6 address ([::1], or another IPv6);
  • listen.allowed_clients is standing in for a firewall;
  • another address on the same link can source the same first 96 bits (other local addresses, a container prefix, a neighbor).

Upgrade to 8.3.35 / 8.4.26 / 8.5.11 / 8.2.34 or a later security build on that branch. Prefer a Unix socket when the web server is local. If you must use TCP, enforce /128 on the firewall. Restarting php-fpm drops in-flight requests.

The 21 Oct critical RCEs (CVE-2026-109618, CVE-2026-109619) are separate. Jumping from a pre-September build to the October fixes includes this ACL fix. A September-only package does not include the October RCEs.


Summary

CVE-2026-91768 widens an IPv6 listen.allowed_clients entry from one host to a /96. Unix sockets and IPv4-only listeners can stay as they are. If that allow-list is your only FastCGI boundary, upgrade and move the boundary to a socket or a firewall.

Sources: GHSA-62xp-839h-2637, CVE-2026-91768, PHP 8 changelog 8.5.11.

Related Posts

View All Posts »

More with this tag