On 21 October 2026, the PHP project shipped an emergency security release fixing two critical vulnerabilities nicknamed “PHP2Shell” (CVE-2026-109618 and CVE-2026-109619, CVSS v4.0 9.2). An attacker needs no account or password: a crafted web request may be enough to run arbitrary code on your server. If any of your sites or systems run PHP 5.4 or later, check them now.
What is PHP?
PHP is a server-side programming language built for generating web pages. When a visitor logs in, submits a form or uploads a file, PHP is often the engine handling that request behind the scenes.
Roughly 70% of websites run on PHP, including popular platforms such as WordPress, Drupal, Joomla and Magento. Even if nobody on your team writes PHP, your corporate site, campaign pages or internal tools are probably running it.
What happened?
Research teams from Wiz Research, Calif.io, OpenAI and Quarkslab jointly found that the problem sits in PHP itself, not in a plugin or a website’s code. When PHP hits a fatal error such as running out of memory mid-request, it can leave internal data behind uncleaned. If the next request lands on the same PHP worker, it may reuse that leftover data.
Think of a restaurant that loses power mid-service: the last diner’s bill is still on the table, and the next guest is seated without anyone clearing it. Attackers deliberately trigger the “power cut”, then exploit the uncleared table.
- CVE-2026-109618: when an out-of-memory error interrupts a request, PHP may treat partially initialised data as valid during cleanup.
- CVE-2026-109619: after a fatal error, PHP can keep references to memory that has already been freed, and a later request may use them.
Researchers demonstrated unauthenticated remote code execution against the official WordPress, Drupal and Joomla container images. Even a simple “Hello World” page can be a target if the PHP version is affected.
After finding the flaws in August, Wiz Research reported them to the PHP security team and coordinated the fix, holding back details until patched releases were ready. Infrastructure providers such as Cloudflare deployed protections before disclosure. Even so, Cloudflare reports that details leaked before the official release, that it has seen real attack traffic, and that attackers keep mutating payloads to get past protections.
| Date | Event |
| 2026-08-19 | Wiz Research discovers the first vulnerability |
| 2026-08-24 | Reported to the PHP security team |
| 2026-09-21 | PHP acknowledges and begins a coordinated fix |
| 2026-10-20 | PHP publishes advance notice of a critical release |
| 2026-10-21 03:02 UTC | Cloudflare rolls out WAF protection for customers |
| 2026-10-21 | Patched versions released; public disclosure |
What is the impact?
- Very wide scope: every PHP release from 5.4 onwards is affected, covering more than a decade of versions.
- No login required: attackers need no credentials, and the site needs no other weakness.
- Server takeover: backdoors, ransomware or cryptominers can be planted.
- Data exposure: sessions, database passwords and API keys held in memory may be leaked.
- Outages: PHP workers can be crashed repeatedly, taking the site down.
- Updating the app is not enough: updating WordPress or plugins does not fix it; the flaw is in the PHP runtime.
How to check whether you are affected
- Inventory everything that runs PHP: corporate sites, campaign microsites, WordPress blogs, e-commerce, internal tools, container images, and anything run by agencies or hosting providers. Forgotten legacy sites are the most commonly missed.
- Check the PHP version on each server or container. If you use managed hosting, ask your provider.
# On the host
php -v
php-fpm -v
# Inside a container
docker exec <container-name> php -v - Compare with the fixed versions below; anything lower is affected. PHP installed from Linux distribution packages (apt, yum) may carry the fix without a version bump, so check your distribution’s security advisory.
| Branch | Safe version |
| 8.5 | 8.5.12 or later |
| 8.4 | 8.4.27 or later |
| 8.3 | 8.3.36 or later |
| 8.2 | 8.2.35 or later (end of life 2026-12-31) |
| 8.1 and older | No official release; upgrade, or get a backported fix from your OS vendor |
- Look for signs of exploitation:
- Bursts of multipart (file upload) requests followed by memory-limit errors or repeated HTTP 500s
- Unusually long or malformed PHPSESSID cookies in responses
- PHP workers restarting without explanation
# Search for out-of-memory errors (adjust log paths to your setup)
grep -i “allowed memory size” /var/log/php*-fpm.log /var/log/nginx/error.log
How to fix it
- Upgrade PHP now (the only complete fix): restart every PHP worker afterwards. For containers, rebuild on the patched base image and redeploy; pulling a new image alone is not enough.
- Add protection at the front door (WAF): block malicious requests while you patch. Sites on Cloudflare already have the relevant rules on by default: the Free plan is covered automatically, while Pro and above should confirm the Managed Ruleset is deployed and set to Block, then check Security > Security Analytics > Events for blocked attacks. Also lock your origin to accept connections from Cloudflare only, so attackers cannot bypass protection by hitting the origin IP. If you don’t use a WAF yet, put one in place now, switch off uploads you don’t need and cap upload sizes.
- Inventory every affected asset: manual inventories miss things. Use cloud asset and vulnerability scanning to find every VM, container and image running an affected PHP version by CVE, and fix internet-facing systems first.
- If you suspect compromise: look for unknown PHP files in web directories (web shells), and rotate database passwords, API keys and session secrets.
With a flaw this widespread and already under attack, the priority is: block first, find everything, then fix. To arrange an assessment, please contact the advisory team at Master Concept.
References:






![[Master Concept x Geotab webinar] Beyond GPS Tracking: Real-time Traffic and Telematics Intelligence](https://masterconcept.ai/wp-content/uploads/2026/10/261111_Geotab-webinar-banner_1280x720px-scaled.png)