Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-91768 Overview
CVE-2026-91768 is an access control flaw in the PHP FastCGI client address check for IPv6 connections. The IPv6 branch compares only the first 12 bytes of a 16-byte address, so listen.allowed_clients enforces a /96 prefix match rather than an exact-address match. An attacker who can source traffic from an IPv6 address sharing the first 96 bits with an allowlisted client passes the check and reaches the FastCGI endpoint. The weakness is tracked under CWE-1023: Incomplete Comparison with Missing Factors.
Critical Impact
Attackers on an adjacent IPv6 network can bypass FastCGI client allowlisting and access the FPM endpoint, exposing confidentiality of PHP-FPM-processed data.
Affected Products
- PHP (php-src) FastCGI Process Manager (PHP-FPM) with IPv6 listen.allowed_clients configured
- Deployments relying on listen.allowed_clients to restrict FastCGI access over IPv6
- Refer to the GitHub Security Advisory GHSA-62xp-839h-2637 for version details
Discovery Timeline
- 2026-09-25 - CVE-2026-91768 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-91768
Vulnerability Analysis
PHP-FPM supports restricting which clients can connect to a FastCGI socket through the listen.allowed_clients directive. For IPv4, the comparison covers the full 4-byte address. For IPv6, the comparison truncates at 12 bytes of the 16-byte address, leaving the final 32 bits unchecked. The resulting behavior is a /96 prefix match rather than an exact address comparison.
An attacker who controls or spoofs an IPv6 address that shares the first 96 bits with an allowlisted address can connect to the FastCGI endpoint. Because PHP-FPM typically processes application requests with elevated trust, bypassing the allowlist exposes application logic, session data, and any content served through FastCGI to unauthorized callers on the same adjacent network segment.
Root Cause
The defect is an incomplete comparison in the IPv6 branch of the access check. The code compares a fixed 12-byte region of the in6_addr structure instead of the full 16-byte address. This matches [CWE-1023], where a security decision omits bytes that are material to identity.
Attack Vector
Exploitation requires an adjacent-network position where the attacker can source IPv6 packets with an address matching the first 96 bits of an allowlisted client. The attacker opens a TCP connection to the PHP-FPM FastCGI listener, which accepts the connection after the truncated comparison succeeds. No authentication or user interaction is required. See the GitHub Security Advisory GHSA-62xp-839h-2637 for the upstream fix.
No public proof-of-concept code is available at this time, and no verified exploit snippet is included.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-91768
Indicators of Compromise
- Unexpected inbound TCP sessions to the PHP-FPM FastCGI port from IPv6 addresses that are not explicitly operated by the organization.
- FastCGI request records showing source IPv6 addresses that share only the upper 96 bits with trusted frontends.
- PHP-FPM access or error logs showing successful script execution requested by clients that were intended to be blocked.
Detection Strategies
- Audit listen.allowed_clients entries and alert when the configured IPv6 allowlist contains broad /96 neighborhoods instead of single hosts.
- Correlate web server upstream logs with PHP-FPM accept events to identify FastCGI connections not initiated by the paired web server.
- Compare the full 128-bit source address of each FastCGI connection against the intended allowlist outside of PHP-FPM to detect prefix-only matches.
Monitoring Recommendations
- Enable connection logging on PHP-FPM listeners and forward events to a central analytics platform for retention and correlation.
- Monitor for new or transient IPv6 neighbors on segments that host PHP-FPM, including unexpected Neighbor Discovery and Router Advertisement activity.
- Track configuration drift on www.conf and pool files so changes to listen.allowed_clients are reviewed before deployment.
How to Mitigate CVE-2026-91768
Immediate Actions Required
- Upgrade PHP to the patched release identified in the GitHub Security Advisory GHSA-62xp-839h-2637.
- Switch FastCGI listeners from TCP to a Unix domain socket where the web server and PHP-FPM run on the same host.
- Restrict access at the network layer with host firewall rules that enforce exact IPv6 address matches.
Patch Information
Apply the upstream fix published by the PHP project in GitHub Security Advisory GHSA-62xp-839h-2637. The patch extends the IPv6 comparison to all 16 bytes so listen.allowed_clients performs an exact-address match. Rebuild or update distribution packages that bundle PHP-FPM and restart the service after upgrade.
Workarounds
- Bind PHP-FPM to 127.0.0.1 or ::1 and reach it from the local web server only.
- Replace TCP listeners with a Unix domain socket protected by filesystem permissions.
- Enforce IPv6 allowlisting in an external component such as nftables, iptables, or the web server, using full 128-bit matches.
- Disable IPv6 on the FastCGI listener if IPv6 FastCGI access is not required.
# Example PHP-FPM pool configuration using a Unix socket
listen = /run/php/php-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
# If TCP is required, bind to loopback only
# listen = [::1]:9000
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

