Your server says PHP 8.3.6. Is it fixed for PHP2Shell?
You read the PHP2Shell advisory. The fixed releases are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. You log in to your Ubuntu 24.04 server, run php -v, and it says PHP 8.3.6. That is thirty patch releases