You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some further digging this looks to have been caused by a long standing configuration issue, which has only surfaced after a switch to symfony 6.4/php8.3
The TUSTED_PROXIES was getting (incorrectly) set to a value like 192.168.1.0/24 192.168.2.0/24 (note the space separator) instead of an array of [192.168.1.0/24, 192.168.2.0/24].
This resulted in IpUtils::checkIp4 parsing the ip/netmask as 192.168.1.0 and 24 192.168.2.0/24 respectively
Symfony version(s) affected
6.4+
Description
When using a TRUSTED_PROXIES with a netmask (i.e. 192.168.1.0/24) and php 8.3 every request fails with an exception
How to reproduce
Symfony 6.4 project using php 8.3 and TRUSTED_PROXIES configured with a IP range (i.e. 192.168.1.0/24)
Possible Solution
Cast the extracted netmask from string to int
Additional Context
Full stack trace
The text was updated successfully, but these errors were encountered: