On October 21, 2026, the PHP Foundation released an unscheduled patch for two critical vulnerabilities in PHP itself—not in a plugin, not in a theme, not in a CMS, but in the language that powers most websites in the world. The pair was named php2shell and a threat rating of 9.2 out of 10. Below, you’ll find out exactly what happened, why standard security measures don’t work here, how to check your website in five minutes, and what to do if you find that you’re running an outdated version.
What was found
There are two separate vulnerabilities:
- CVE-2026-109618 — an error in handling a situation where PHP runs out of available memory. If memory runs out while the internal data for the request has not yet been fully constructed, the cleanup process after the failure treats it as if it were normal.
- CVE-2026-109619 — accessing memory that has already been freed. The residual state from a single request points to memory that has already been released to the system, and a subsequent request within the same thread can take advantage of this. The confirmed result is the reading of unrelated data from memory.
Both allow you to run your own code on the server without any authorization. According to the researchers, the vulnerable code has been present since at least PHP 5.4—that is, for more than ten years.
Why is this more serious than a typical vulnerability in a plugin?
Key detail: the attack is taking place before your website's code runs. A standard HTTP request is first processed by PHP, and only then is control passed to WordPress, OpenCart, or your own code. Because of this, none of the things you would normally expect work:
- A strong administrator password and two-factor authentication—it never even gets to the login screen;
- security plugins, login attempt limits, CAPTCHAs—they're all built into the CMS;
- closed
/wp-admin/or another admin panel based on IP—the attack doesn't require an admin panel at all.
All methods of running PHP for the web are vulnerable: PHP-FPM, Apache with mod_php, php-cgi, LiteSpeed, and FrankenPHP. mod_php is considered to pose the highest risk.
Which versions have been fixed
- Corrected: PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35. If you're running one of these versions or a newer one, this specific issue has been resolved.
- PHP 7.4–8.1: There are no official releases; the PHP security team has made only minor changes to the source code. Major hosting providers and the packages built from them have applied these changes and rebuilt their packages—but you should verify this with your specific provider rather than assuming it’s the case by default.
- PHP 5.x – 7.3: There is no support, and a fix will not be released. The only option is to upgrade to the latest version.
How to Check Your Website in Five Minutes
Three methods, from simple to precise:
- Hosting Control Panel. Every control panel has a section for selecting the PHP version for a domain. There you can see the current version—for example, 8.2 or 8.3. The problem is that the control panel usually shows only two digits, but we need the third one: not “8.2,” but “8.2.35.”
- WordPress Admin Panel. "Tools" → "Site Status" → "Information" tab → "Server" section. There you'll find the full PHP version number, consisting of three digits.
- Server response headers. Many servers include the version number in the header themselves
X-Powered-By. You can check this using any online headline-checking service. If the headline is hidden, that's normal—and even a good thing—just use the methods described above.
What to do with the result:
- version 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 or higher—everything is fine;
- version 8.2–8.5, but lower than those listed — You need to update it; this can be done in the hosting control panel or by submitting a support request;
- version 7.4 – 8.1 — Contact the hosting provider's support team and ask directly: Has the php2shell fix been applied to your build? If the answer is vague, assume it hasn't;
- version 7.3 and below — Migrate to a new version, which is a separate task: older websites often won't run on modern PHP without code changes.
If you can't update right now
PHP has published temporary settings that reduce pose a risk, but do not make the server secure: memory_limit=-1 without the ability to override it from within the application, session.upload_progress.enabled=0, and on PHP 8.5, additionally fatal_error_backtraces=0. After making changes, be sure to restart all PHP processes. It’s also important to note that the common advice to “just disable session upload progress” is not a fix—it only addresses part of the problem.
If the website is critical and it's not possible to upgrade the hosting quickly, a reasonable temporary measure is to block external access to it until the upgrade is complete, rather than relying on configuration changes.
Are they attacking already?
The picture as of the end of October is mixed, and it’s important to be honest about that. Amazon reported an attempt to exploit its decoys on October 17—four days before the public disclosure; researchers at watchTower have observed activity on their network of decoys since October 21. At the same time, Cisco Talos and Rapid7 did not record any confirmed cases of successful breaches on October 21–22, and as of October 23, these CVEs have not been added to CISA’s catalog of actively exploited vulnerabilities. Public demonstrations work only for specific combinations of operating system, PHP version, and web server; a universal and reliable exploit has not yet been identified.
The conclusion here is not that “there’s no need to rush,” but rather the opposite: there’s currently a window of opportunity when updating isn’t too expensive yet. This has already been the case with past vulnerabilities of this type—massive automated scans begin weeks after disclosure, once someone has stabilized the exploit.
What lessons should we take away from this for the future?
php2shell is a special case, but the reason why such incidents are so painful is systemic:
- The PHP version is not a “minor technical detail.” A website built on PHP 7.3 works and looks fine until news like this comes out—and once it does, there are no more options.
- Updates must be controlled. Between “updating PHP” and “the site working again after the update” lies a challenge: some older plugins and custom code refuse to work on newer versions. That’s why it’s best to tackle this on a scheduled basis, rather than on the day a CVE is released.
- You need to back up before, not after. Before changing the PHP version, you should have a fresh copy of the files and the database that you know how to deploy.
We keep PHP versions up to date on all the projects we support—so this time, the updates were completed without any involvement from our clients. We’ve written a separate post about what this support entails: What is included in website support and how much does it cost?. General safety and hygiene guidelines for the site — see the article How to Protect a Website from Hacking.
Let's check your website
If you don't want to figure it out on your own—just let us know, and we'll take a look. Here's what we'll do:
- Check the actual PHP version on your server, not the one shown in the control panel;
- We check whether the fix has been applied if the version is one for which there is no official release;
- Let's check the rest: the CMS version, outdated plugins, file permissions, the presence of working backups, and signs of a previous breach;
- We update the PHP version using a backup copy and verify that the website is fully functional afterward—not just that the homepage loads;
- Here is a list of what we found, with an explanation of what is critical and what can wait.
Checking your website for this vulnerability is free and takes about fifteen minutes. Message me on Telegram @imajik or at in@aws.in.ua. If, after inspection, we find something that needs fixing, we'll let you know the scope of work and the price before we start; we also work on other websites: Website maintenance and development.


