PHP just released versions fixing critical security vulnerabilties.
- If you can upgrade fast, do it.
- If you can't but can firewall your project from Internet access, do it.
- If you can't, at least apply the following to
php.inito be safer (not fully safe still so aim for upgrade anyway):
memory_limit=-1
post_max_size = 8M ; or more if uploads are needed but upload_max_filesize < post_max_size
session.upload_progress.enabled=0
fatal_error_backtraces=0 ; for PHP 8.5+
; there should be no errors overall with these settings
error_reporting=-1
display_errors=On
Check details in PHP official news.
Additionally: