Is PHP2Shell (CVE-2026-109618 and CVE-2026-109619) being exploited, and what should I do?
Yes. PHP2Shell is two critical PHP flaws, CVE-2026-109618 and CVE-2026-109619 (each CVSS 4.0 9.2), that allow unauthenticated remote code execution, and successful exploitation in the wild is now confirmed. CISA added both to its Known Exploited Vulnerabilities catalogue on 26 October 2026. The 21 October builds were 8.5.12, 8.4.27, 8.3.36 and 8.2.35. On 19 November 2026 PHP shipped follow-up fixes for incomplete patches, so update now to 8.5.13, 8.4.28, 8.3.37 or 8.2.36, internet facing Apache mod_php servers first, then hunt for compromise. If you cannot update, CISA says take the system offline.
Added to CISA KEV on 26 Oct 2026
Updated 26 October 2026. CISA added CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalogue, with a 29 October 2026 due date. That date is set under CISA's BOD 26-04 and applies only to US federal agencies. It is not a UK deadline, but treat it as a strong signal of urgency. Both entries are flagged for forensic triage, so do not just patch exposed hosts: check them for compromise too (see Reactive). Known ransomware use is listed as Unknown.
Exploited in the wild: confirmed
Updated 26 October 2026. Security researchers publicly reported a confirmed remote code execution on a honeypot running Apache mod_php with PHP 8.4.26. One report dates the compromise to 24 October. The attacker used a memory leak to get past the server's memory protections, and the command ran about 1.6 ms later. Before this, from around 17 October, only scanning and failed exploit attempts had been seen.
Updated 19 Nov 2026
Updated 19 Nov 2026. PHP shipped follow-up fixes for incomplete PHP2Shell patches (CVE-2026-129182 and CVE-2026-129481) in the 19 November 2026 security release. The new fixed versions are PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36. CVE-2026-129182 affects PHP 8.5 only and is fixed in 8.5.13. CVE-2026-129481 affects PHP 8.3, 8.4 and 8.5 (not 8.2) and is fixed in 8.3.37, 8.4.28 and 8.5.13. The 21 October builds (8.5.12, 8.4.27, 8.3.36 and 8.2.35) are no longer sufficient. See our 19 November PHP security release page.
By Patrick Lynch, Head of Software Development. Reviewed by Oliver Legg, Head of SOC and IR. Last updated 19 November 2026, 14:41 GMT.
At a Glance
Facts from PHP's security advisories, CISA and public reporting. Last updated 19 November 2026, 14:41 GMT.
9.2
CVSS v4.0, each flaw. Security researchers count over 22.6 million exposed instances that are potentially vulnerable.
Two RCEs
CVE-2026-109618 and CVE-2026-109619. Unauthenticated remote code execution as the web worker account.
Fix released
The original PHP2Shell fixes were 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released 21 Oct 2026. On 19 Nov 2026 PHP shipped follow-up fixes in 8.5.13, 8.4.28, 8.3.37 and 8.2.36. Update to those builds now.
Confirmed
Successful remote code execution against Apache mod_php on PHP 8.4.26, publicly reported 26 Oct 2026. Added to CISA's Known Exploited Vulnerabilities catalogue on 26 Oct 2026 (29 Oct due date applies to US federal agencies only).
Probing and scanning for the flaws begins, before public disclosure.
Leak of two PHP RCE flaws. PHP publishes advance notice the same evening.
PHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 with full advisories. Every version below these in each branch is affected.
A claim of successful exploitation is corrected the same day. Activity so far is scanning and failed exploit attempts, and attempts to drop Mirai-style malware fail.
PHP's 'Session upload progress' notice names a separate flaw, CVE-2026-115560, which needs an unusual combination of configuration and application code. It has no advisory, NVD record, score or fix yet. Set session.upload_progress.enabled=0. The same day, CISA adds a Sigma detection rule to its alert.
A 23 October claim that a government agency was breached through PHP2Shell is retracted.
Successful exploitation in the wild is publicly reported and confirmed: remote code execution on a honeypot running Apache mod_php with PHP 8.4.26. One report dates the compromise to 24 October.
CISA adds CVE-2026-109618 (memory corruption) and CVE-2026-109619 (stale internal request state) to its Known Exploited Vulnerabilities catalogue. US federal agencies must act by 29 October under BOD 26-04 (the date does not bind UK organisations), both entries require forensic triage, and known ransomware use is listed as Unknown. CISA updates its 21 October alert to match.
PHP releases 8.5.13, 8.4.28, 8.3.37 and 8.2.36, including follow-up fixes for incomplete PHP2Shell patches (CVE-2026-129182 and CVE-2026-129481). Update to those builds. See our 19 November PHP security release page.
Update internet facing Apache mod_php servers first, then every other PHP runtime, and retire unsupported PHP. Use 8.5.13, 8.4.28, 8.3.37 or 8.2.36, not the 21 October builds. If you cannot update, take the system offline as CISA advises. PHP's interim settings and a web application firewall only give partial cover. Hunt for PHP workers spawning shells and triage any host that was exposed before you patched it.
What to Do in the Next 24 Hours
Proactive on the left. Reactive on the right. Tick both tracks.
Shrink exposure
- Inventory every PHP runtime, including PHP bundled inside other products, vendor appliances, Windows bundles, cPanel and Plesk.
- Update now to PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36, or your vendor's patched package of those versions. The 21 October builds are no longer sufficient. Internet facing Apache mod_php hosts first of all.
- Cannot update today? CISA says take PHP-based systems offline until they can be patched or updated. PHP's interim settings (step 6 below) and a web application firewall only give partial cover in the meantime.
- PHP 8.1 and older get no normal PHP release. PHP published source-only backport branches for 7.4, 8.0 and 8.1, which you have to build yourself. Otherwise upgrade or retire them, and take them offline until you can, as CISA advises.
- Turn on CISA's Sigma rule (in its SIGMA_Rules repository) and your web application firewall's PHP2Shell rules.
Hunt and respond
- Alert on apache, httpd or php-fpm (and php-cgi) starting shells, curl, wget or other download tools.
- Watch for floods of out of memory or fatal errors and crashing PHP workers. Review logs for odd multipart POSTs and 'Maximum execution time exceeded'.
- Scan web roots for new web shells and unknown files.
- Check outbound connections from PHP workers, and look for downloads to /tmp that are made executable and run, new cron jobs, users and SSH keys.
- If anything looks wrong: isolate the host, keep its logs, rotate its secrets and rebuild it from a clean, patched image.
Check a Domain
Enter a domain you own or manage. We make one normal request to its home page and look for public signs of PHP. Nothing else is sent. Exact versions and raw headers are never shown.
A passive check cannot prove a server is safe. Many servers hide their PHP version, and PHP can run on paths, subdomains or servers this check does not see. Results are a starting point; confirm on the server with the steps below.
Proactive: Check Your Servers
The only reliable answer comes from the server. Work through these on every host that runs PHP.
Check the PHP version
On each server, run:
php -vThe command line can use a different PHP build from the web server, so also check the version your sites run under. On Windows, run php -v from the PHP install folder, and remember PHP can be bundled inside vendor software.
Compare the result with the fixed release for its branch: 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Anything lower in the same branch is affected. Anything on 8.1 or older needs a backported fix or an upgrade.
Use phpinfo safely
A phpinfo() page shows the exact version and the Server API (SAPI) the site uses, but it also exposes configuration that helps attackers. Prefer:
php -i | grep -iE "PHP Version|Server API"If you must use a web page, give it a random file name, restrict it to your IP, and delete it straight after.
Check how PHP runs: PHP-FPM, CGI or module
Find which PHP processes and handlers are in use. Every way of serving web requests is affected (PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed), but PHP rates mod_php as highest risk, so update those servers first.
ps aux | grep -E "php-fpm|php-cgi|httpd|apache2" | grep -v grep
systemctl list-units --type=service | grep -i php
php-fpm -v
apachectl -M 2>/dev/null | grep -i php
grep -Rni "fastcgi_pass" /etc/nginx 2>/dev/nullList installed PHP packages
Linux distributions and long term support vendors received the fix in advance and often backport it without changing the upstream version number. Check the package changelog or your vendor's security tracker for CVE-2026-109618 and CVE-2026-109619 as well as the version string.
# Debian / Ubuntu
dpkg -l | grep php
# RHEL family
rpm -qa | grep -i php
# Alpine
apk info | grep -i php
# Docker
docker images | grep -i phpCheck hosting control panels
On cPanel, open MultiPHP Manager to see the PHP version set for each domain. On Plesk, check Tools and Settings, then PHP Settings, and each subscription's Hosting Settings. Shared hosting and managed WordPress platforms set PHP per site, so check every site, not just the server default.
Interim settings if you cannot update yet
CISA's advice is clear: "Organizations that cannot update immediately, or that continue to use PHP 8.1 or earlier unsupported versions, should take PHP-based systems offline until they can be patched or updated." If a system has to stay up for a short time, PHP lists these measures to reduce exposure. They give partial cover only, as does a web application firewall. Set them in php.ini, the FPM pool or server configuration, not with ini_set() or .user.ini.
; php.ini or FPM pool
session.upload_progress.enabled = 0
post_max_size = 8M ; 32M if uploads are needed
upload_max_filesize = 4M ; keep below post_max_size
fatal_error_backtraces = 0 ; PHP 8.5 only
; Enforce memory_limit=-1 so applications cannot override it
php_admin_value[memory_limit] = -1 ; FPM pool
php_admin_value memory_limit -1 ; Apache mod_php23 October 2026: PHP's 'Session upload progress' notice names a separate remote code execution flaw, CVE-2026-115560. This notice is PHP's only statement on it so far: there is no advisory, NVD record, score or fix yet, and PHP says a full advisory will follow with the next release. It only applies when an application sets session.serialize_handler to php_binary or php_serialize and then switches it to php at runtime with ini_set() before session_start(), with session upload progress still enabled. Set session.upload_progress.enabled=0 until the fix ships. If you already set it from the CVE-2026-109619 advisory, keep it in place. It leaves no log signal, so the checker scripts below only flag the risky configuration; also search your code for ini_set() calls that change session.serialize_handler.
Restart every PHP worker afterwards. Enforce request size, field, part, header and nesting limits at the web server or proxy, including requests without a usable Content-Length. Use a container or cgroup memory limit, never RLIMIT_AS or RLIMIT_DATA. Hiding errors with error_reporting, display_errors or @ does not help. PHP is clear that updating is the only complete fix.
After you update, review memory_limit and post_max_size. The fix adds a hard memory limit above memory_limit that ends the PHP process straight away if it is reached. PHP still advises a conservative post_max_size and request limits at the proxy after patching, to reduce that risk and denial of service.
Free Checker Scripts
Tested by the CybaVerse threat hunt team. Run them on any Linux or Windows host that runs PHP to get a clear verdict per PHP install, whether you look after your own business or your clients' estates.
check-php2shell.sh
Finds PHP binaries (CLI, PHP-FPM, php-cgi, FrankenPHP, LiteSpeed, cPanel, Plesk, Bitnami, XAMPP, Remi and running PHP processes) and notes any Apache mod_php module. It reads each version, checks Debian, Ubuntu and RHEL family package changelogs for distro backports, and reports key ini values, including the CVE-2026-115560 configuration. It then hunts PHP, web server, syslog and journald logs for memory exhaustion and worker crashes. On Alpine, install bash first with apk add bash; Alpine packages have no changelog, so a backport cannot be confirmed there.
bash check-php2shell.sh
# Other modes
bash check-php2shell.sh --version "8.4.26"
bash check-php2shell.sh --csv inventory.csv # host,version[,changelog_cves]
bash check-php2shell.sh --search-dir /opt/app/bin # custom install path (repeatable)Run it as root (for example with sudo) so it can read every log and package database. If PHP lives somewhere non-standard, add --search-dir for each folder.
Check-PHP2Shell.ps1
Finds PHP for IIS FastCGI, XAMPP, WAMP, Laragon, Plesk, running processes and anything on PATH, reads each version and key ini values, and hunts PHP and web server logs plus Application event log crashes of PHP executables. It can also check a version string, saved php -v output or a CSV inventory with -Version, -PhpVFile or -CsvPath. Use -SearchDir to add custom install paths.
powershell -ExecutionPolicy Bypass -File .\Check-PHP2Shell.ps1Unzip the download first, then run from an elevated PowerShell so it can read logs and the event log.
Read-only by design
Both scripts read files and query package and event databases. They run a file with -v and -i only if it passes an execution guard: it must have a PHP runtime name (php, phpN.N, php-fpm*, php-cgi*, lsphp* or frankenphp), resolve to a regular file, and start with compiled program magic bytes (ELF or Mach-O on Linux and macOS, PE on Windows). Anything else, such as phpunit, phpcs, php-cs-fixer or a symlink pointing at one of them, is reported as SKIPPED (not executed) and never run. If nothing passes the guard, the verdict is UNKNOWN (exit 2). The same guard applies to folders added with --search-dir or -SearchDir and to paths you pass in. The scripts do not change configuration, restart services, write files or connect to anything. Every run ends with the exploitation status, the CISA KEV status and due date (which applies to US federal agencies only), and a reminder only (the scripts do not check these) to preserve evidence (memory, a disk image or snapshot, and logs) where feasible before you patch or rebuild, then review for new or changed cron jobs and new local users. It also prints CISA's offline advice and a reminder that patched does not mean clean. Review any script before you run it.
Verdicts
- PATCHEDThe version is at or above the fixed release for its branch (or 8.6.0 RC4 or later), or the package changelog lists both CVE IDs (a distro backport).
- LIKELY VULNERABLEThe version is below the fixed release, is an 8.6.0 pre-release before RC4, or is 8.1 or older, and the changelog does not list both CVEs.
- UNKNOWNThe version can't be read, a vendor build is below the fix with no CVE evidence, only one CVE is in the changelog, or no PHP passed the execution guard (including when none was found). Check with your vendor.
Exit codes
| Code | Meaning |
|---|---|
| 0 | PATCHED: every PHP found is patched |
| 1 | LIKELY VULNERABLE: at least one PHP is likely vulnerable |
| 2 | UNKNOWN: at least one result is unknown, or no PHP passed the execution guard; none vulnerable |
| 3 | Error: bad arguments, an unreadable input file, a missing binary or a CSV with no data rows |
The result is the worst verdict across every PHP found. The log hunt is for information and does not change the exit code, so review its findings separately. MSPs and internal IT teams can use the exit code in RMM or deployment tooling to flag hosts at scale.
Know the limits
- Verdicts rely on versions and package changelogs only. The scripts cannot confirm a patch in custom builds, vendor-bundled PHP or packages whose changelogs don't list CVEs.
- PHP published minimal source backports for 7.4, 8.0 and 8.1. The scripts cannot detect these in custom builds and report them as LIKELY VULNERABLE, so confirm with whoever built your PHP.
- The ini values come from php.ini and conf.d. The scripts miss per-site overrides such as FPM pool settings,
.htaccess,.user.iniand IISweb.config, so check those by hand. - Only standard log paths are searched, up to the last 200,000 lines of each file. A clean log is not proof of safety, because a failure can happen before PHP writes anything.
Reactive: How to Hunt
Successful exploitation is now confirmed and CISA lists both flaws as known exploited, so hunt on behaviour: look for the activity that follows a successful attack on a PHP server. CybaOps can run these hunts across your estate or your clients'.
Forensic triage: patching is not enough
CISA's KEV entries for both CVEs are flagged for forensic triage, which US federal agencies must carry out under BOD 26-04. UK businesses, IT teams and MSPs are not bound by it, but should follow the same principle: if a PHP host was exposed to the internet before you patched it, do not just patch it. Check it for:
- New or changed PHP files and web shells in web roots and upload folders.
- Unexpected child processes, such as shells, curl or wget, started by php-fpm, Apache or mod_php.
- Unusual outbound connections from web server and PHP workers.
- New cron jobs, user accounts or SSH keys.
If you find anything, isolate the host, keep the logs, rebuild it from a clean, patched image and rotate the credentials it held. The hunts below cover each check, and CybaVerse can help with investigation and remediation.
PHP workers spawning shells
Exploitation of PHP RCE flaws usually shows as a web server process starting an unexpected child process. Alert when apache, httpd, php-fpm or php-cgi starts a command shell, a scripting interpreter, or a download tool such as curl or wget. Also watch for recon commands run from the web stack.
# Live process tree (Linux)
ps -ef --forest | grep -E "php-fpm|php-cgi|httpd|apache2" | head -80
# Children of PHP workers (example with audit logs)
ausearch -i -sc execve 2>/dev/null | grep -E "php-fpm|php-cgi|apache2|httpd" | grep -Ei "bash|curl|wget|python|perl" | tail -50New web shells or unknown files in web roots
Look for recently changed PHP files and any files you do not recognise under document roots and upload directories. Review any unexpected file before you delete it, and keep a copy as evidence.
# Last 48 hours of .php under common roots (adjust paths)
find /var/www /home/*/public_html /usr/share/nginx/html -type f -name "*.php" -mtime -2 -printf "%T+ %p\n" 2>/dev/null | sort
# Review recently changed PHP in upload dirs
find /var/www -type d -iname "*upload*" -o -iname "*tmp*" 2>/dev/null | while read d; do
find "$d" -type f -name "*.php" -mtime -2 -ls 2>/dev/null
doneSuspicious requests in access logs
PHP's advisories confirm the attack paths run through multipart request parsing, out of memory errors and session upload progress. Review large or malformed multipart POSTs (especially with a PHPSESSID cookie or upload progress field), bursts of POSTs to the same path, and odd User-Agents. Check PHP and web server error logs for floods of memory exhaustion, fatal errors and execution timeouts, and for crashing workers. On PHP-FPM, also look for child processes exiting unexpectedly, because FPM ends a child when request startup fails. A quiet log is not proof of safety.
# Recent POSTs (nginx / apache style)
grep -E ' "POST ' /var/log/nginx/access.log /var/log/apache2/access.log 2>/dev/null | tail -200
# Multipart or session-cookie heavy traffic
grep -Ei "multipart/form-data|upload_progress|PHPSESSID" /var/log/nginx/access.log /var/log/apache2/access.log 2>/dev/null | tail -100
# Unusual or empty User-Agents
awk -F\" "$6==\"\" || length($6)<3 {print}" /var/log/nginx/access.log 2>/dev/null | tail -50
# Memory exhaustion, fatal errors and timeouts (adjust log paths)
grep -Ei "Allowed memory size|Out of memory|PHP Fatal|Maximum execution time" /var/log/php*fpm*.log /var/log/apache2/error.log /var/log/httpd/error_log 2>/dev/null | tail -100Outbound connections and droppers
PHP workers should rarely open long lived outbound sockets to the internet. Attempts to drop Mirai-style malware have been seen and failed, but the same chain (download to a temporary folder, make it executable, run it) is worth hunting, so also look for unknown executables in temporary folders and connections to hosts you do not recognise.
# Established connections involving PHP workers
ss -tpn | grep -E "php-fpm|php-cgi|apache2|httpd" || true
lsof -nP -iTCP -sTCP:ESTABLISHED 2>/dev/null | grep -E "php-fpm|php-cgi|apache2|httpd" | head -50
# Executables dropped in temporary folders in the last 7 days
find /tmp /var/tmp /dev/shm -type f -perm -u+x -mtime -7 -ls 2>/dev/nullPersistence: cron, users, SSH keys
# New or odd cron
ls -la /etc/cron.* /var/spool/cron 2>/dev/null
crontab -l 2>/dev/null
# Recent users and authorised keys
getent passwd | awk -F: "$3>=1000 {print}"
find /home /root -name authorized_keys -mtime -7 -ls 2>/dev/nullDetection pack: 13 KQL queries and 15 Sigma rules
Behavioural hunts from the CybaVerse threat hunt team, updated 26 October 2026. They cover web server and PHP processes starting shells, curl or wget, bursts of memory exhaustion and worker crashes, new PHP files in web roots, outbound connections from web workers and the /tmp download, chmod and execute dropper chain. New for the KEV listing: cron changes and new local users on web hosts, and a web worker shell followed by either. They contain no IOCs. Treat hits as leads, and baseline your environment before you alert. Run them in CybaOps or any SIEM that supports KQL or Sigma.
The KQL queries have not been run against a live tenant. Fields marked UNVERIFIED FIELD depend on your connectors, so check them in your workspace and tune thresholds first. All 15 Sigma rules pass sigma check. The two correlation rules must be loaded with the base rules they reference.
KQL hunting queries (13)
Loading queries. If they don't appear, use the download link below.Sigma rules (15)
- Linux process creation: shell or recon tool spawned by a PHP worker (
php2shell_linux_php_worker_shell.yml) - Linux process creation: download to /tmp, chmod and execute in one command line (
php2shell_linux_tmp_dropper_cmdline.yml) - Linux process creation: web server account runs a binary from a temp folder (
php2shell_linux_web_user_exec_from_tmp.yml) - Linux file event: PHP file written to a web root by the web server or PHP (
php2shell_linux_webroot_php_file_written.yml) - Windows file event: PHP file written to a web root by PHP or the web server (
php2shell_windows_webroot_php_file_written.yml) - Linux network: outbound connection to a public address from PHP or the web server (
php2shell_linux_web_worker_outbound.yml) - Linux syslog: PHP memory exhaustion, fatal error or worker crash (
php2shell_linux_fpm_worker_signal.yml) - Correlation: burst of memory exhaustion, fatal errors or crashes on one host (
php2shell_linux_oom_crash_burst_correlation.yml) - Web server: POST requests returning HTTP 500 to PHP endpoints (
php2shell_webserver_multipart_500_burst.yml) - Linux process creation: crontab changed by the web server account or a PHP worker (
php2shell_linux_crontab_change_by_web_context.yml) - Linux file event: cron file written by a PHP worker or the web server account (
php2shell_linux_cron_file_write_by_web_context.yml) - Linux process creation: local user or group change by the web server account or a PHP worker (
php2shell_linux_local_user_change_by_web_context.yml) - Windows process creation: local user or group added under a web worker (
php2shell_windows_local_user_added_by_web_worker.yml) - Linux process creation: account or crontab change (base rule for the correlation below) (
php2shell_linux_account_or_cron_change.yml) - Correlation: web worker shell followed by an account or crontab change on the same host (
php2shell_linux_worker_shell_then_persistence.yml)
CISA added its own Sigma rule on 23 October. It lives in CISA's SIGMA_Rules repository on GitHub. We link to it rather than copy it, because that repository has no licence. Its custom log source needs mapping to your SIEM.
CybaVerse guidance
Our own advice from the CybaVerse threat hunt team, in addition to PHP's advisories:
- Hunt for oversized
PHPSESSIDcookies in responses. A session cookie far longer than your normal baseline is worth investigating. - If anything looks wrong, isolate the host and keep its web, PHP and system logs. Rotate the secrets it held, such as database passwords, API keys, session tokens and certificates, then rebuild it from a clean, patched image. Patching does not undo what an attacker may already have read or changed.
- Updating WordPress, Laravel or another application does not patch the PHP runtime. Update PHP itself, or the package your vendor ships.
PHP2Shell FAQ
Short answers based on PHP's security advisories, CISA and public reporting as of 26 October 2026.
What is PHP2Shell?
PHP2Shell is the name researchers use for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619. PHP rates both 9.2 on CVSS v4.0. They let an unauthenticated attacker run code on a web server as the web worker account by abusing how PHP handles memory when a request fails. The name is the researchers', not PHP's.
Which PHP versions are affected?
Every PHP version below the original 21 October fixes (8.5.12, 8.4.27, 8.3.36 and 8.2.35) in its branch was affected by PHP2Shell, plus PHP 8.1 and older, which get no normal PHP release (only source-only backport branches). The 19 November 2026 release then fixed incomplete PHP2Shell patches: CVE-2026-129182 (PHP 8.5 only, fixed in 8.5.13) and CVE-2026-129481 (PHP 8.3, 8.4 and 8.5, not 8.2; fixed in 8.3.37, 8.4.28 and 8.5.13). Update to 8.5.13, 8.4.28, 8.3.37 or 8.2.36. All PHP installations serving web requests are at risk, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed.
Is there a patch?
Yes. PHP first released 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on 21 October 2026 at 14:00 UTC (15:00 BST). On 19 November 2026 it shipped follow-up fixes for incomplete PHP2Shell patches (CVE-2026-129182 and CVE-2026-129481) in 8.5.13, 8.4.28, 8.3.37 and 8.2.36. Update to those later builds, or your vendor's patched package of them. See our 19 November PHP security release page. Linux distributions and long term support vendors may lag, so check your vendor and confirm the running version. Updating is the only complete fix.
What if I cannot update straight away?
CISA says: "Organizations that cannot update immediately, or that continue to use PHP 8.1 or earlier unsupported versions, should take PHP-based systems offline until they can be patched or updated." PHP lists interim settings that reduce exposure but do not make a server safe: set memory_limit=-1 administratively (for example with php_admin_value), keep post_max_size low (8M, or 32M if you need uploads), set session.upload_progress.enabled=0 in php.ini or the FPM pool, set fatal_error_backtraces=0 on PHP 8.5, enforce request size limits at the web server or proxy, then restart every worker. A web application firewall may help in the meantime, but it only gives partial cover.
Is PHP2Shell being exploited?
Yes. On 26 October 2026 security researchers publicly reported a confirmed remote code execution on a honeypot running Apache mod_php with PHP 8.4.26, and one report dates the compromise to 24 October. The attacker used a memory leak to get past the server's memory protections, and the command ran about 1.6 ms later. Before that, from around 17 October, only scanning and failed exploit attempts had been seen, and attempts to drop Mirai-style malware failed. A 22 October claim of success was corrected the same day, and a claim that a government agency was breached was retracted on 25 October. On 26 October CISA added CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalogue; CVE-2026-115560 is not listed. Treat any unpatched internet facing PHP as a target, update now and triage hosts that were exposed.
What does the CISA KEV listing mean?
CISA added CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalogue on 26 October 2026, which means CISA has evidence of active exploitation. The 29 October 2026 due date is set under BOD 26-04 and applies only to US federal agencies. CISA's required action reads: "Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines." Both entries are flagged for forensic triage, and known ransomware use is listed as Unknown. For UK businesses, IT teams and MSPs the date is not your deadline, but a KEV listing is a strong signal of urgency: patch now and check exposed hosts for compromise.
What if I run PHP 8.1 or older?
The PHP project no longer updates 8.1 and older. Some Linux distributions and long term support vendors provide backported fixes, and PHP's security team published minimal source backports for PHP 7.4, 8.0 and 8.1 for people who build from source. These are source branches, not normal releases or packages, so you have to build and test them yourself. Otherwise upgrade to a supported branch, or take the system offline until you can, as CISA advises. PHP 8.2 reaches end of life on 31 December 2026, so plan that upgrade too.
Does a clean result from the checker mean I am safe?
No. The checker only reads what a site shares publicly on its home page. Many servers hide the PHP version, and PHP can still run on other paths, subdomains, admin panels or behind a proxy or CDN. Always confirm on the server itself.
What does the checker send to my site?
One normal web request for the home page, over HTTPS first and then HTTP, the same as a browser visit. It sends no exploit code or attack traffic, and IP addresses and private or internal names are refused.
What did PHP announce on 23 October 2026?
A 'Session upload progress' notice naming a separate remote code execution flaw, CVE-2026-115560. At the time there was no advisory, NVD record, score or fix, and PHP said it only affected an unusual combination of configuration and application code, with the workaround session.upload_progress.enabled=0. That issue is now fixed in the 19 November 2026 security release (8.5.13, 8.4.28, 8.3.37 and 8.2.36), where PHP rates it Critical at CVSS 4.0 9.2 (GHSA-658j-r8rw-q6mx). See our 19 November PHP security release page.
What should I do if a PHP server looks compromised?
Isolate the host and keep its logs. Rotate the secrets it held, such as database passwords, API keys and session tokens, and rebuild it from a clean, patched image. Updating PHP on a compromised host does not remove an attacker who is already in. CybaVerse can help with the investigation and remediation.
Detect and Remediate PHP2Shell Across Your Estate
CybaOps finds vulnerable PHP across every system you look after, whether that's your own business or your clients'. UK-based analysts monitor alerts 24/7, run hunts like the KQL and Sigma rules above and act on pre-approved response actions, and CybaOps drives remediation through to a verified fix, so proactive remediation and reactive hunting happen in one place.
Sources
- CISA: Known Exploited Vulnerabilities catalogue (CVE-2026-109618 and CVE-2026-109619 added 26 October 2026)
- CISA: Critical vulnerabilities in PHP require immediate patching (updated 26 October 2026)
- PHP news archive: security advisory, 21 October 2026, and 'Session upload progress' notice (CVE-2026-115560), 23 October 2026
- BleepingComputer: PHP2Shell flaws now successfully exploited in the wild (26 October 2026)
Related threat guides: GLPI unauthenticated SQL injection and GitLab CVE-2026-110264. All threat guides.