Remote code execution (RCE) means one request with no login runs the attacker code on your server. After that come web shells, leaked customer data and attacks on your internal network.
PHP2SHELL is the nickname for two vulnerabilities PHP fixed on 21 October 2026 (CVE-2026-109618 and CVE-2026-109619). Details leaked before the fix and attacks are ongoing.
Use the cards below to see whether your PHP version and setup are affected, then follow the fix guide. Always restart PHP-FPM or Apache after updating.
Safe PHP versions today
8.2.368.3.378.4.288.5.138.6.0
PHP 8.1 and older get no official fix. Security support for 8.2 ends on 31 December 2026.
CriticalCVSS 9.8Exploited · since 2026-10-26
When PHP runs out of memory it can stop a request while internal data is half set up, and cleanup then treats that data as valid. One request with no login can run code on the server.
- Vulnerable versions
- Below 8.2.35, 8.3.36, 8.4.27 and 8.5.12 · 8.1 and older get no official fix
- Affected setups
- Every PHP that serves web requests (PHP-FPM, Apache mod_php, php-cgi, FrankenPHP, LiteSpeed) · mod_php is the highest risk
- If you cannot update yet
- If you cannot update now: memory_limit=-1 (set with php_admin_value so apps cannot change it) and post_max_size 8M (32M if you need uploads) · only a stopgap, updating is the fix
- Published
- 2026-10-21
P02Old or vulnerable PHP versionP01Suspected PHP web shells
HighCVSS 8.1Exploited · since 2026-10-26
After a request ends and its memory is freed, some internal state still points there. The next request on the same worker can use that stale state and run code.
- Vulnerable versions
- Below 8.2.35, 8.3.36, 8.4.27 and 8.5.12 · 8.1 and older get no official fix
- Affected setups
- Every PHP that serves web requests · PHP-FPM and mod_php workers that handle many requests
- If you cannot update yet
- If you cannot update now: session.upload_progress.enabled=0 and, on PHP 8.5, fatal_error_backtraces=0 · put them in php.ini or the FPM pool and restart every worker (ini_set and .user.ini do not work)
- Published
- 2026-10-21
P02Old or vulnerable PHP versionP01Suspected PHP web shells
CriticalCVSS 9.8Exploited · since 2024-06-12
When Apache on Windows calls php-cgi, Windows swaps some characters for look-alikes, so text in the URL is read as PHP command-line options. Those options let an attacker run PHP code.
- Vulnerable versions
- Below 8.1.29, 8.2.20 and 8.3.8, and every older unsupported version
- Affected setups
- Windows + Apache + PHP-CGI (including setups like XAMPP that expose /php-cgi/) · confirmed on some code pages such as Chinese and Japanese
- If you cannot update yet
- If you cannot update now: turn off the settings that call php-cgi (ScriptAlias /php-cgi/ and Action lines) and switch to mod_php or FastCGI
- Published
- 2024-06-09
P08PHP runs as CGI on WindowsP02Old or vulnerable PHP version
CriticalCVSS 9.8Exploited · since 2022-03-25
With some nginx fastcgi_split_path_info setups, a newline in the URL makes PHP-FPM write past its buffer. Public exploit tools use this to run code remotely.
- Vulnerable versions
- Below 7.1.33, 7.2.24 and 7.3.11
- Affected setups
- Linux nginx + PHP-FPM · configs that pass PATH_INFO
- If you cannot update yet
- Update PHP · in nginx, use try_files $uri =404; so missing files never reach PHP
- Published
- 2019-10-28
P02Old or vulnerable PHP version
CriticalCVSS 9.8Exploited · since 2022-03-25
php-cgi reads a query string with no = sign as command-line options. With -d an attacker changes settings and runs code. It is old, but bots still try it.
- Vulnerable versions
- Below 5.3.12 and 5.4.2
- Affected setups
- Servers that call php-cgi directly as a CGI script (any OS)
- If you cannot update yet
- Update PHP · never call php-cgi straight from the web
- Published
- 2012-05-11
P08PHP runs as CGI on WindowsP02Old or vulnerable PHP version