REDHAT-BUG-2541660: Medium severity PHP php-fpm vulnerability
The IPv6 branch of the FastCGI client access check compares only the first 12 bytes of a 16-byte IPv6 address, so listen.allowedclients 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.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
PHP-FPM deployments using IPv6 and relying on listen.allowed_clients to restrict access to the FastCGI endpoint are exposed if an attacker can use an IPv6 source address with the same first 96 bits as an allowed client.
What does an attacker need to exploit it?
The attacker needs network reachability to the FastCGI endpoint and the ability to source an IPv6 address sharing the first 12 bytes, or /96 prefix, with an address permitted by listen.allowed_clients.
Are IPv4-only deployments affected?
The issue is in the IPv6 branch of the FastCGI client access check. The provided information does not indicate an impact on IPv4 access checks.
What configuration should be reviewed while remediation is pending?
Review whether listen.allowed_clients is being used as the access boundary for an IPv6-reachable FastCGI endpoint. Restrict network access so untrusted systems cannot reach that endpoint, particularly systems able to use addresses within an allowed client's /96 prefix.