For Slim, PHP2Shell remediation requires patching the PHP runtime. The application version helps identify compatibility blockers; it cannot establish exploitability or prove that either CVE is fixed.
Slim - PHP compatibility for the PHP2Shell fix
| Release sample | Declared PHP requirement | Declared patch candidates | Original source |
|---|---|---|---|
| 3.13.0 | ^8.1 | repo.packagist.org ↗f899a6e0be00 | |
| 4.15.3 | ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0 | repo.packagist.org ↗3675bf6baac6 |
Candidates match only this declaration against the first PHP2Shell fixes on supported branches. They do not establish tested compatibility, vendor support or a complete dependency match. PHP compatibility for the PHP2Shell fix ↗
Identify the PHP2Shell repair scope
Files and package identity
slim/slim
composer.lockpublic/index.phpsrc/
Slim - Remove blockers to patch PHP2Shell
Slim 3 to 4 changes more than the PHP minimum: PSR-7 implementation, factories, container integration and middleware order require review. The current Slim 3 sample must not be confused with the original Slim 3 minimum. Identify the exact lock file and test error middleware, authentication, request bodies and response emission with the chosen PHP build.
Dependencies and custom code to review
Official upgrade documentation ↗Check site functions after the PHP2Shell fix
Inventory before fixing PHP2Shell
Use an authorized working copy.
php -v
php --ini
composer --no-plugins show --locked slim/slim
composer --no-plugins check-platform-reqs --lock
composer --no-plugins prohibits php 8.3.36 --lockedSlim - PHP2Shell patch verification
Verify both CVE fixes in the PHP actually serving this site. Replace or restart old Web workers, queue workers and replicas. A working homepage or a newer CLI binary is insufficient evidence.
3. Restart and verify every instance ↗