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 sampleDeclared PHP requirementDeclared patch candidatesOriginal source
3.13.0^8.1repo.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.0repo.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.lock
  • public/index.php
  • src/

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

  • PSR-7
  • PSR-17
  • PSR-15
  • PSR-11
  • ErrorMiddleware
  • App::map()
  • ResponseEmitter
Official upgrade documentation ↗

Check site functions after the PHP2Shell fix

Inventory before fixing PHP2Shell

Use an authorized working copy.

Command example
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 --locked

Slim - 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 ↗

Official upgrade documentation

SlimOriginal source ↗PHP security teamOriginal source ↗CVE-2026-109618Original source ↗CVE-2026-109619Original source ↗PHP2Shell repair - solve PHP upgrade errors↗

Related applications

← Back to application guides