In short: PHP2Shell is the nickname for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that let an attacker take over a web server over the internet with no password. PHP shipped fixes on October 21, 2026 in versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The NSA advises patching immediately or taking affected systems offline.
On October 20, details of the two flaws in PHP leaked onto social media. PHP scrambled to develop fixes and shipped patches on October 21. Late on October 21, the NSA issued a rare public warning about these new PHP vulnerabilities: any organization running PHP should patch immediately or take affected systems offline. The flaws, nicknamed PHP2Shell, allow an attacker to take over a web server over the internet without a password. The kicker? PHP runs most of the web.
Below, we explain the PHP vulnerability as plainly as possible, why it matters well beyond the IT department, and what to ask your team before the week is out.
What is PHP2Shell?
Let’s start with what PHP is. PHP is the programming language behind a majority of the web. Your customers never see it, but it’s often what runs when they log into a portal or load a product page.
PHP2Shell is the security nickname for the vulnerabilities. Researchers found two bugs in that engine, tracked as CVE-2026-109618 and CVE-2026-109619. Both stem from the same problem. When a web request ends abnormally, PHP can leave its memory in a broken state, and an attacker who knows how to trigger that state can then make the server run commands of their choosing. This is classic remote code execution, which means a stranger on the internet can control your server.
What makes this one serious:
- No login required. An attacker needs no account and no stolen credentials, just a specially crafted web request.
- The flaw is in PHP itself. Well-written code won’t protect you. Any website running an affected version of PHP and serving web traffic is in scope.
- Attackers got a head start. Details leaked on social media on October 20, a day before the fix was available.
Several proofs-of-concept demonstrating how to exploit the vulnerabilities have propagated over the last 48 hours, with some users reporting initial exploitation attempts in the wild. However, full verification of these efforts has not yet been undertaken.
Which PHP versions fix PHP2Shell?
Upgrade each system to the fixed release for the PHP branch it runs:
| PHP branch | Fixed in |
|---|---|
| 8.5 | 8.5.12 |
| 8.4 | 8.4.27 |
| 8.3 | 8.3.36 |
| 8.2 | 8.2.35 |
| 8.1 and earlier | No official fix. Use a backported fix from your Linux distribution or support vendor, upgrade, or take the system offline. |
Why these PHP vulnerabilities matter
PHP powers somewhere between 75% and 80% of all websites, according to BleepingComputer. VirusTotal estimates more than 5.1 million PHP hosts are exposed online. Some of the most common platforms in business use PHP:
| If you use… | This business asset likely runs on PHP |
|---|---|
| WordPress, Drupal, Joomla | Marketing sites, blogs, intranets |
| Magento | E-commerce storefronts |
| Laravel, Symfony | Custom web apps and customer portals |
What a compromised web server can mean for your business:
- Data exposure. Customer records, logins, and payment flows that touch the site are within reach.
- Access to the wider network. Attackers rarely stop at the first server. A compromised web server is a common starting point for moving deeper into the network, enabling a ransomware attack.
- Audit and disclosure headaches. For financial services, telecom, and manufacturing firms, a breach through an unpatched, publicly known flaw will be hard to explain to a regulator or a board.
Fixing PHP on your company site will be the easy part. The hard part, and the greater risk, is the live microsite nobody retired, an old staging server, or a vendor-hosted portal.
Five questions executives should ask their team this week
You can lead the response methodically. Ask your team for clear answers to these questions:
- Do we run PHP anywhere, and where? Ask for a specific list of systems, including marketing sites, customer portals and anything a vendor hosts on your behalf.
- Which of those systems face the internet? Prioritize patching those first. Internal systems still need attention, but they’re lower priority over the next few days.
- When will each one be patched? Ask for a date for each system rather than a general status update. WordPress, Drupal, Joomla, Magento, Laravel and Symfony deployments may need their own updates, and managed hosts may patch on their own schedule, so confirm each one rather than assuming it’s handled.
- What about the ones we can’t patch? PHP 8.1 and earlier no longer get official updates. Those systems need a backported fix from a Linux distribution or support vendor, an upgrade, or to be taken offline.
- How will we know if someone already got in? A patch fixes the flaw going forward, but it won’t reveal whether an attacker used it before the fix went in. Ask for a plan to check for signs of a break-in and to monitor for this going forward.
What else should your security team do about PHP2Shell today?
Beyond patching to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 and upgrading unsupported systems, your team should also:
- Reduce exposure for systems you can’t patch yet. Pull them off the public internet where you can. PHP has published interim configuration changes, such as disabling
session.upload_progress.enabled. PHP is clear that these reduce risk but don’t fully protect you (PHP mitigation guidance). - Limit what an attacker can do. Where your platform supports it, stop the PHP process from launching system shells (for example, with an AppArmor profile). That limits the damage if someone does get in.
- Look for signs of a break-in. Review web server logs and check for unexpected files, especially web shells, on servers that were exposed before patching. Amazon’s threat intelligence team disclosed that their honeypot network was probed for the PHP vulnerabilities prior to the public release on October 20.
- Be careful with public exploit code. Fake exploits are circulating. Don’t run code from unknown GitHub repositories on or near production systems.
PHP2Shell FAQ
Is PHP2Shell being exploited?
Several proofs of concept are circulating and some users have reported early exploitation attempts, though these have not been fully verified. Amazon’s threat intelligence team said its honeypots were probed for the flaws before details went public on October 20.
Which PHP versions are affected by PHP2Shell?
Any PHP version older than 8.5.12, 8.4.27, 8.3.36 or 8.2.35 in its branch should be treated as vulnerable. PHP 8.1 and earlier no longer receive official updates.
Does my WordPress site need updating for PHP2Shell?
Yes, but updating WordPress alone is not enough. The flaw is in PHP itself, so the PHP version on the server must be patched. If a host manages your site, confirm with them that PHP has been updated.
What are CVE-2026-109618 and CVE-2026-109619?
They are the official tracking numbers for the two PHP2Shell flaws. Both allow remote code execution, meaning an attacker can run commands on an affected web server without logging in.
Will patching tell us if we were already breached?
No. A patch closes the flaw going forward but does not show whether an attacker used it before. Review web server logs and look for unexpected files, such as web shells, on any server that was exposed before patching.
The real problem is visibility
Applying a patch where you know you have PHP is the easy part. The hard part is knowing what you have, what’s exposed, and whether an attacker could use this flaw against your systems. Last year’s pentest can’t tell you that.
We built Incenter to close that gap. It continuously tests your attack surface across cloud, on-prem, web apps, APIs and third parties, the way an attacker would. When the next critical flaw goes public, you can see where you’re exposed, whether it’s exploitable, and what it would cost the business.
After the PHP2Shell leak, our team built and rolled out a feature into Incenter that shows clients where PHP is running in their environment. That answers question one on the list above and gives clients a starting point for confirming versions and exploitability, system by system. If you’re not a client yet, our team can show you how Incenter maps your PHP2Shell exposure and keeps that view current as new flaws appear.