Open nonsenz opened 1 month ago
I think this is a bug in the fastcgi handling of FCGI_PARAMS
.
The request is ignored by fcgi_get_params
because we receive a FCGI_PARAMS
packet where name_len + val_len > (unsigned int) (end - p)
is true:
It turns out that the value is split across two FCGI_PARAMS
packets. This seems legal according to section B example 2 of https://www.mit.edu/~yandros/doc/specs/fcgi-spec.html#S5.2
Description
i can reproduce this with the official docker images (tried php:8.3.10-fpm-alpine3.19 and php:8.4.0beta5-fpm-alpine3.20) doing this:
when i enter the container and trigger the ping it looks like this:
when i now create a bunch of envs, ping stops working:
maybe this is not a bug, but i could not find any information regarding a size/limit that can be configured. it looks that my php application still works, even if ping does not respond anymore.
thx for any information or hints 🙏
PHP Version
tested with php:8.3.10-fpm-alpine3.19 and php:8.4.0beta5-fpm-alpine3.20
Operating System
docker alpine 3.19 and 3.20