Advisories · PHP & Laravel
CVE-2026-109619
Critical
CVSS 9.2
Actively exploited
PHP2Shell: remote code execution through stale request state
Disclosed 21 Oct 2026 · Last reviewed 2 Dec 2026
Request-owned state could outlive the memory behind it, a use-after-free that leads to code execution in the PHP worker. Exploited alongside CVE-2026-109618.
What happened
Internal state tied to one request could survive after its backing memory was freed, so a later request used freed memory. The session upload progress feature is one path to it, which is why PHP's interim advice was to switch that feature off.
Affected and patched versions
- Affected
- The same PHP versions as CVE-2026-109618: before 8.2.35, 8.3.36, 8.4.27 and 8.5.12.
- Patched
- PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12, and later releases.
How to check your server
Check
php -r 'echo PHP_VERSION, PHP_EOL;' php -i | grep -i 'session.upload_progress.enabled'
How to fix and harden
- Upgrade PHP to a patched release. The configuration change below reduces exposure but is not a fix.
- If you cannot upgrade today, set session.upload_progress.enabled = 0 in php.ini for every SAPI, then restart every worker.
- Restart PHP-FPM and Apache after the upgrade.
- Check web roots for new PHP files, and rotate secrets in .env files if anything was written.
Fix
sudo apt update && sudo apt install --only-upgrade 'php8.*' sudo systemctl restart 'php*-fpm' apache2 2>/dev/null; true
Sources
- PHP 8 ChangeLog
- NVD entry for CVE-2026-109619
- CVE.org record
- CISA Known Exploited Vulnerabilities catalog
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON