October 21, 2026: php2shell, critical PHP vulnerabilities (CVE-2026-109618 / CVE-2026-109619)
Status as of Oct 26, 2026, 2:00 p.m. UTC. We will update this page as things change.
Bottom Line
PHP has released emergency fixes for two critical vulnerabilities in PHP itself: versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35.
An attacker can exploit these over the web without logging in. Public research so far suggests exploitation is difficult and specific to certain PHP versions and setups, but this may change as researchers publish more. On October 24, researchers confirmed successful attacks on honeypots (decoy servers) that were deliberately set up in a favorable configuration. Details leaked before the planned disclosure, and attacks were reported before the fixes shipped. If you run PHP on systems reachable from the internet, patch now and restart every PHP worker.
What is Confirmed (per PHP)
Impact
Both vulnerabilities can allow unauthenticated remote code execution, with the privileges of the web server's PHP worker. Both are rated critical (CVSS v4.0 9.2).
Who Is at Risk
All PHP installations serving web requests, including:
PHP-FPM
Apache with
mod_phpphp-cgiFrankenPHP
LiteSpeed
Validated Attacks
PHP demonstrated full remote code execution over HTTP against Apache mod_php for both flaws.
For CVE-2026-109618, the attack worked with PHP’s default input and memory limits.
PHP also demonstrated CVE-2026-109619 against PHP-FPM, in a case where the website’s own code can be pushed into a fatal error. FPM exposure depends on the application and setup, but PHP still considers FPM installations at risk.
Fixed Versions
8.5.12, 8.4.27, 8.3.36, 8.2.35
Older Versions
PHP 8.1 and older do not get official releases.
PHP has published minimal source backports for 7.4, 8.0, and 8.1.
Some Linux distributions and LTS vendors offer backported fixes.
Distributions
Linux distributions and LTS vendors got the patches in advance. PHP warns that the volunteer-run rpms.remirepo.net repository will not have updates on October 21, 2026.
No Complete Workaround
PHP is explicit that updating is the only complete fix.
What is Not Confirmed
In-the-Wild-Exploitation
Researchers have publicly confirmed successful exploitation, but so far only on honeypots. On October 24, a researcher's decoy servers, running unpatched PHP 8.4.26 with Apache mod_php in a deliberately favorable setup, recorded attackers running commands. The researcher cautions that this says little about other setups, and no follow-on payload was captured, so the attackers' goal is unclear. Attack attempts are widespread: Amazon Threat Intelligence saw attempts as early as October 17, before public disclosure, and Cloudflare's CEO reported millions of attempts across its network within hours of disclosure. Cloudflare has not published how it counts an attempt, and these figures are not a count of successful attacks. We have not seen public reports of confirmed successful exploitation of PHP-FPM in the wild. PHP has demonstrated one of the two flaws against PHP-FPM in testing, and attack attempts do not distinguish between setups, so PHP-FPM servers should be patched with the same urgency. As of Oct 26, 2026 at 2:00 p.m. UTC, neither CVE was in CISA’s Known Exploited Vulnerabilities catalog.
Public Exploit Code
Researchers have published technical write-ups and proof-of-concept code. Threat actors often post fake exploit code as a means of infecting researchers; therefore, anyone testing exploits coming from a third party should run them in an isolated lab environment. The researcher who recorded the October 24 honeypot attacks reported that the attack traffic closely matched a public proof-of-concept. Expel has not independently verified that match, and the researcher cautions that the result does not show how reliably the exploit works on other setups.
PHP 7.x and earlier
SentinelOne traces the earliest affected code path to PHP 5.4.0, while PHP itself still has not said whether 7.3 and older are affected. Keep assuming any end-of-life PHP serving web traffic is at risk.
What Expel is Doing
Tracking the leak. We have been following vendor advisories, researcher findings, and attack reports since October 20.
Reviewing exposure. We have reviewed our customer alert and investigation history for internet-facing PHP and prior PHP-related activity, to prioritize where to look first.
Watching for post-exploitation activity. Our existing detections are built to alert on web server processes launching command shells and webshell activity, which are common signs of successful exploitation of web servers, where endpoint security software is connected to Expel.
Performing ongoing monitoring. We are regularly checking new threat intelligence and PHP-related activity across customer environments, and will continue to do so in the coming days.
Updating our detections. Two new detections are now live. A low-priority rule flags known PHP2Shell markers in network alerts from connected tools; it sees attempts, not successful exploitation. A high-priority rule flags addresses and commands associated with reported PHP2Shell attacks, across connected endpoint and network tools. Attackers can change these indicators, so the rule catches known activity, not every variant. We are also reviewing PHP2Shell alerts from security vendors such as Wiz. We will keep tuning these as attack details firm up.
Keeping customers informed. We sent Threat Bulletins on October 21 and 22, and again on the evening of October 24 when a researcher reported successful exploitation on honeypots.
Where Our Coverage Stands
We can only see what is connected to Expel. PHP sites on managed hosting, servers without an endpoint agent, and infrastructure not integrated with us are outside our view, and that is frequently where internet-facing PHP runs.
Our detection of the exploit itself is limited. There is no single reliable fingerprint for the exploit request. Known markers can be flagged, but attackers can change them, and many web logs do not record request bodies. We now flag known PHP2Shell markers where network telemetry captures them (low priority, attempts only), along with vendor alerts that flag PHP2Shell behavior. Most of our coverage still comes from what attackers do after they get in.
Exploitation may be quiet. PHP notes that some exploit paths may not leave a predictable log entry, so finding nothing in your logs does not prove you are safe.
Detection does not replace patching. We catch and respond to successful exploitation; we cannot prevent exploitation of an unpatched, internet-facing system.
Worst-Case Scenario
Automated attacks could hit internet-facing PHP applications now that technical details are public and one security firm reports an exploit that defeats ASLR, a built-in memory protection, on a specific PHP build. An attacker who succeeds can run code as the web server’s account, which typically lets them:
Read the application configuration, including database credentials and API or cloud keys
Install webshells for persistent access
Steal or tamper with application data
Use the server as a foothold into internal networks
CISA’s Known Exploited Vulnerabilities catalog includes earlier PHP vulnerabilities (CVE-2024-4577 and CVE-2019-11043), which threat actors have exploited, including in ransomware campaigns. End-of-life PHP that goes unpatched will stay exposed indefinitely until patched.
What to Do Now
Patch internet-facing PHP first. Update to 8.5.12, 8.4.27, 8.3.36, or 8.2.35, or install your distribution's patched packages. Distro packages may not show a new PHP version number, so check the vendor's security advisory.
Restart every PHP worker after patching. This includes PHP-FPM, Apache (if it runs
mod_php), and long-running PHP processes like queue workers. Running processes keep the old code until they restart.Find all your PHP. Make sure to include CMS and e-commerce platforms (WordPress, Drupal, Magento), hosting control panels, container images, and third-party or vendor products that bundle PHP.
Deal with end-of-life PHP (8.1 and older). Upgrade, use a vendor backport, or take it off the internet (or put it behind a VPN until you can).
Use network protections where you have them. If your firewall or intrusion detection system uses Cisco Talos signatures, check whether PHP2Shell signatures are available and turn them on to block or log attempts. Expel does not alert on these particular signatures.
Watch for signs of compromise:
PHP or web server processes (
php-fpm,php-cgi,httpd,apache2) launching shells, scripting interpreters, or download toolsNew or changed PHP files in web directories
Unexpected outbound connections from web servers
Spikes in PHP fatal errors, memory-exhaustion errors, or crashing workers, which may indicate exploitation attempts
Consider rotating credentials and API keys stored on any vulnerable, internet-facing server.
If you find something:
Isolate the server.
Preserve web server and PHP logs.
Contact Expel right away.
Threat actors often post fake exploit code as a means of infecting researchers, therefore anyone testing exploits coming from a third party should run them in an isolated lab environment.
What's Next
We will update this page as exploitation activity becomes clearer and as our assessment changes. Our detection updates are now live. If you have questions or want help assessing your exposure, contact our Support team.
References
PHP security advisory: https://www.php.net/archive/2026.php#2026-10-21-5
PHP advisory, CVE-2026-109618: https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w
PHP advisory, CVE-2026-109619: https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp
PHP advance notice: https://www.php.net/archive/2026.php#2026-10-20-1
CERT-EU Security Advisory 2026-018: https://cert.europa.eu/publications/security-advisories/2026-018/
Tenable FAQ (includes Cloudflare CTO statement): https://www.tenable.com/blog/php2shell-cve-2026-109618-cve-2026-109619-frequently-asked-questions-about-critical-php-remote
Huntress rapid response: https://www.huntress.com/blog/php2shell-leaked-critical-php-vulnerabilities
watchTowr: PHP RCE FAQ
Last updated
Was this helpful?

