If your business or practice runs on WordPress, this one affects you. The fix is simple, but it isn’t the fix most site owners reach for first.
What PHP2Shell is, in plain terms
PHP2Shell covers two vulnerabilities, CVE-2026-109618 and CVE-2026-109619. The PHP security team rates both 9.2 out of 10 (CVSS v4). Both come from how PHP cleans up after a request runs out of memory. In some cases, leftover data from one visitor’s request can be reused by the next request, and an attacker can exploit that.
What an attacker can do with it:
- Run their own code on your server without logging in. Researchers showed this working on WordPress, Drupal and Joomla (Wiz Research).
- Read data from server memory. That memory can hold passwords, login tokens, API keys and certificates (php2shell.com).
The bug is in PHP itself, not in your theme or plugins. The researchers say even a basic “Hello World” page running on an affected PHP version can be vulnerable. Wiz reports that every PHP release from the last decade, going back to PHP 5.4, has at least one of these flaws.
Why this one is different: AI found it
The flawed code had been there for more than ten years. Turning it into a working attack meant chaining several bugs and tuning the attack to each server’s memory layout. Wiz says that was “at the edge of what human researchers could practically achieve,” and that frontier AI models made it practical.
The research involved Wiz, the security firm Calif and OpenAI. The Washington Post reported that the flaw came out of an OpenAI program that gives security researchers advanced AI tools. In a statement to the Post, OpenAI called it “one of the most impactful security issues in recent memory.”
The takeaway for site owners: if AI can help defenders find flaws like this, it can help attackers too. The time between a disclosure and real attacks is getting shorter.
Attacks have already started
This isn’t theoretical. According to Tenable’s FAQ:
- Amazon Threat Intelligence saw an exploitation attempt on October 17, four days before public disclosure. Amazon now says PHP2Shell is being broadly exploited.
- Cloudflare’s CTO said the company was “seeing early attacks emerging.”
- CISA urged organizations to patch right away. For anyone who can’t patch, or who still runs PHP 8.1 or older, CISA recommends taking PHP-based systems offline until they’re updated.
The Washington Post also reported that the NSA’s Cybersecurity Collaboration Center told websites that couldn’t patch immediately to go offline temporarily.
Why this matters for small business and medical practice sites
Most small business and practice websites run WordPress on shared or managed hosting. The owners usually don’t know what PHP version is running. That’s the risk.
- Plugin and WordPress updates don’t fix this. The project behind php2shell.com puts it directly: “Updating an application does not update the PHP runtime beneath it.”
- Contact forms and patient intake data are exposed. If your site handles appointment requests, form submissions or logins, the memory-leak half of this flaw can expose them. For medical practices, that’s a privacy and compliance problem on top of a website problem.
- A hacked site hurts your brand everywhere. Defaced pages, spam redirects and malware warnings damage trust and can pull your site out of search and AI answers.
How to fix it
1. Find out which PHP version your site runs
In WordPress, go to Tools → Site Health → Info → Server. Your hosting control panel (cPanel, Plesk or your host’s dashboard) also shows it.
2. Get onto a patched PHP release
PHP.net lists these patched versions:
| PHP branch | Patched release |
|---|---|
| 8.5 | 8.5.12 |
| 8.4 | 8.4.27 |
| 8.3 | 8.3.36 |
| 8.2 | 8.2.35 |
PHP 8.1 and older no longer get official releases. The PHP team published minimal source fixes for 7.4 through 8.1, but for a typical business site the real answer is to move to a supported version. PHP 8.2 itself reaches end of life on December 31, 2026, so 8.3 or newer is the better choice.
Linux distributions and hosting vendors got the patches early, so your host may ship the fix in its own package. The version number you see might not match the table, so ask your host to confirm in writing that both CVEs are fixed.
3. Make sure PHP workers are restarted
Installing the patch isn’t the end. Old PHP processes keep running the vulnerable code until they’re restarted. php2shell.com says to restart Apache, PHP-FPM and any long-running PHP workers. On managed hosting, your host handles this, but confirm that it happened.
4. Check your host’s status page
Most major hosts and CDNs have posted PHP2Shell notices. Read yours to see what has been patched and when. Cloudflare has deployed firewall rules for known attack patterns, including on free plans, but calls them a “stopgap only.” A firewall rule doesn’t replace the PHP update.
5. Look for warning signs
The researchers list signals worth checking: repeated HTTP 500 errors, memory-limit errors after unusual upload requests, oddly large session cookies, and PHP processes crashing for no clear reason. None of these proves an attack, and seeing none doesn’t prove you’re safe. Amazon recommends reviewing activity back to at least October 17.
Ongoing hardening and maintenance
PHP2Shell is the latest example of a pattern: the software under your website needs website development and maintenance too. Going forward:
- Stay on a supported PHP version and plan upgrades before end-of-life dates.
- Turn off public error display (
display_errors = 0) so server details aren’t shown to visitors. - Keep WordPress core, themes and plugins updated and remove the ones you don’t use.
- Keep off-site backups and test that you can actually restore from them.
- Put a web application firewall in front of the site as one layer of protection.
- Change passwords and API keys if there’s any sign your site was hit, since this flaw can leak them from memory.
Not sure where your site stands? Let FCG check it
Most site owners don’t know their PHP version, who manages it or whether their host has patched yet. We can find out quickly. Flagler Creative Group will check your PHP version, confirm the patch status with your host, review your WordPress setup and tell you plainly what needs to happen next.
We’re actively working with clients right now to check and update their websites for PHP2Shell. If you need help, reach out.
Useful references
- PHP.net, News Archive 2026, security advisory and releases
- PHP GitHub releases (PHP 8.2 end-of-life note)
- Wiz Research: PHP2Shell: AI uncovers critical RCE vulnerabilities affecting 70% of the Internet
- PHP2Shell disclosure site
- Tenable: PHP2Shell FAQ
- The Washington Post: Websites scramble to fix software flaw that could put much of internet at risk
- The Wall Street Journal: AI just found a bug that puts up to 70% of the world’s websites at risk
- Vercel: PHP2Shell security bulletin
- BleepingComputer: PHP ships emergency patches for critical PHP2Shell flaws
