PHP · CVE-2026-109618 · CVE-2026-109619
PHP2Shell
Patch nowExploited in the wild. In CISA KEV.
Two bugs in PHP itself let an attacker with no login run code on web servers that run PHP. Attacks are already happening, so if you serve PHP on the web, update now.
How scary is it?
Are you affected? only if all are true
1PHP older than 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12command
Or any end-of-life branch (8.1 and older), or patched but workers not restarted since. Check the runtime that serves the web, not just the CLI. Distros may backport the fix without changing the version number.1,5
php -v
php-fpm -v2PHP serves web requestscommand
Via mod_php, PHP-FPM, php-cgi, FrankenPHP or LiteSpeed. Full exploitation has been shown on Apache mod_php, and for CVE-2026-109619 also on PHP-FPM. Command-line-only use isn't in scope.1,2,3
apachectl -M | grep phpWhat to do
1Update and restart PHP
Update to 8.6.0, 8.5.13, 8.4.28, 8.3.37 or 8.2.36 (19 Nov 2026), then restart all workers. These include the 21 Oct PHP2Shell fixes plus newer security fixes. 8.1 and older get no official release; use a vendor with long-term support or upgrade.1,8,10
Latest safe versions checked 20 Nov
2Can't update yet? Change these settingscommand
Not a full fix, per PHP. Set them in php.ini or the FPM pool config, not with ini_set(), then restart. On PHP 8.5 also set fatal_error_backtraces = 0. Keep a container or cgroup memory limit, because memory_limit = -1 removes PHP's own cap.1,2,3
session.upload_progress.enabled = 0
memory_limit = -1This page shows you how to check. It can't tell you you're safe.
Sources (11) and changelog
- PHP: release announcements and advisory 21 Oct
- PHP GHSA: CVE-2026-109618
- PHP GHSA: CVE-2026-109619
- CISA KEV: added 26 Oct 26 Oct
- Pentest-Tools: version checks, backport caveat
- BleepingComputer: attacks confirmed
- Wiz: exploitation so far 27 Oct
- PHP: 8.x ChangeLog, 19 Nov 2026 releases 19 Nov
- BleepingComputer: public exploit worked on a single-worker mod_php setup 26 Oct
- PHP: 8.6.0 ChangeLog 19 Nov
- php-src: 19 Nov security advisories (eight rated Critical)
- PHP 8.6.0 added. Safe versions added.
- PHP's 19 Nov releases (8.5.13, 8.4.28, 8.3.37 or 8.2.36) are now the recommended update; exploit source and FPM detail added.
- Added PHP's scheduled 19 Nov release (pending).
- Added to CISA KEV. Verdict raised to Patch now.
- Published.