{"vuln_id":"GHSA-r37j-mv37-rjpc","aliases":[],"description":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-11-21T19:15:07.676461Z","severity":"unknown","severity_source":null,"cvss_score":null,"cvss_vector":null,"cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-r37j-mv37-rjpc"},"matched_alias":null,"items":[{"id":645,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-62xp-839h-2637 / CVE-2026-91768: IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison (memcmp 12 bytes)","summary":"IPv6 ACL bypass in FastCGI listen.allowed_clients due to partial address comparison (memcmp 12 bytes)\n\n### Summary\r\n\r\nThe IPv6 branch of the FastCGI client access check compares only the first 12 bytes of a 16-byte IPv6 address, so `listen.allowed_clients` matches on a /96 prefix instead of the exact address. An attacker who can source an address sharing the first 96 bits with an allowed one passes the check and reaches the FastCGI endpoint.\r\n\r\n### Details\r\n\r\n`fcgi_is_allowed()` in `main/fastcgi.c` compares IPv6 client addresses with a hard-coded length of 12:\r\n\r\nhttps://github.com/php/php-src/blob/php-8.5.10/main/fastcgi.c#L1334\r\n\r\nAn exact IPv6 comparison must cover all 16 bytes of `struct in6_addr`. The IPv4 branch above it compares its full 4 bytes correctly, and the `IN6_IS_ADDR_V4MAPPED` branch legitimately uses a 12-byte offset to reach the embedded IPv4 address, but that offset is not a valid length for a plain IPv6 comparison. Allowed addresses are parsed as full addresses with `inet_pton(AF_INET6, ...)`, so the truncated comparison silently widens every configured entry to a /96 network.\r\n\r\nThe fix compares `sizeof(client_sa.sa_inet6.sin6_addr)` bytes.\r\n\r\n### PoC\r\n\r\nTested against a real `php-fpm` (fpm-fcgi), not a mock.\r\n\r\n1. Configure a pool:\r\n\r\n```ini\r\nlisten = [::1]:19091\r\nlisten.allowed_clients = ::2\r\n```\r\n\r\n2. Run php-fpm and send a FastCGI request from `::1` to `[::1]:19091` for a test script.\r\n\r\n3. The request is accepted and the script executes, even though `::1` is not in `listen.allowed_clients`. Both addresses share the first 96 bits.\r\n\r\n4. Control test: set `listen.allowed_clients = 2001:db8::2` and send the same request from `::1`. The connection is denied as expected, because the first 96 bits differ.\r\n\r\n### Impact\r\n\r\nThis is an access control bypass in deployments that use FastCGI over IPv6 TCP and rely on `listen.allowed_clients` as a security boundary. An attacker with network reachability who can source an address within the same /96 as an allowed client bypasses the ACL and reaches the FastCGI endpoint, which in many deployments means executing PHP scripts in the FPM worker context.\r\n\r\nDeployments using Unix sockets, IPv4 only, or an external firewall as the actual boundary are not affected.\r\n\r\n### Credit\r\n\r\nThis issue was originally reported in GHSA-r37j-mv37-rjpc. That advisory could not be used because the reporting account was deleted.\r\n\n\nAffected packages: php:PHP-FPM\nPatched: PHP-FPM 8.2.34, PHP-FPM 8.3.35, PHP-FPM 8.4.26, PHP-FPM 8.5.11","url":"https://github.com/php/php-src/security/advisories/GHSA-62xp-839h-2637","published_at":"2026-09-24T10:06:55Z","updated_at":"2026-09-25T21:04:06Z","fetched_at":"2026-11-21T19:15:07.553380Z","severity":"medium","cvss_score":6.5,"epss":0.00376,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"PHP-FPM","vuln_id":"CVE-2026-91768","vuln_ids":["CVE-2025-1218","CVE-2025-14181","CVE-2026-6103","CVE-2026-91765","CVE-2026-91766","CVE-2026-91767","CVE-2026-91768","CVE-2026-91769","CVE-2026-92842","CVE-2026-93682","GHSA-62XP-839H-2637","GHSA-R37J-MV37-RJPC"],"tags":["repo-advisory","php","security","repo:php/php-src"],"cluster_id":473,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/645","html":"https://vulnwatch.ve1ve2.com/item/645"}}]}