PHP2Shell: a critical PHP flaw and what a small business should do about its site
On Oct 21, 2026, PHP fixed two critical flaws (CVE-2026-109618 and CVE-2026-109619, CVSS 9.2) that allow remote commands without a login. The fix is in PHP, not WordPress. See who patches it and what to ask your host.
Photo: Mohammad Rahmani · on Unsplash
The PHP2Shell fix is in PHP, not in a WordPress update. On October 21, 2026, the PHP security team patched two critical flaws in the language core, CVE-2026-109618 and CVE-2026-109619, both scored 9.2 on CVSS v4.0. According to the CISC alert, a remote attacker, with no login, can run commands on the server. WordPress.org said the same day that no WordPress update is required or planned.
For a small or mid-sized business in Brazil or elsewhere in Latin America, without a large IT team, the step today is to confirm that the fixed version is already installed on the website, the shop, or the internal system. Scheduled does not count.
What these flaws allow
The flaw is not in a plugin or a theme. CISC ties both issues to how requests are handled: running out of memory can leave internal structures inconsistent (CVE-2026-109618), and a block of memory that was already freed can be used again (CVE-2026-109619). The alert names PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed. The risk is highest with mod_php, where unauthenticated exploitation was demonstrated before the site’s own code runs.
A business can see a defaced site, a shop that is down, changed files, exposed customer data, and movement into other systems on the same network. Personal data in that access can be a security incident under Brazil’s LGPD. Amazon saw an attempt on October 17, 2026, four days before disclosure, and on the 21st proof-of-concept exploits and broad attempts within hours. It is not clear whether they would have worked on real systems. CISA, in the alert revised on October 23, had not observed successful exploitation as of publication, and still calls for an immediate fix.
Updating WordPress does not fix this
The dashboard, plugins, and themes do not patch this flaw. WordPress.org was direct: the problem is not specific to WordPress and affects any PHP application, including a shop and an internal system. CISA and the FBI, in the IC3 alert of October 23, note that PHP is often bundled inside other software.
Who applies the fix
Shared or managed hosting. The host updates PHP. What you need is a straight answer: is it already installed on this account, or only planned?
VPS, dedicated server, or cloud the company administers. The update is yours, your server provider’s, or the freelancer you hired. The plan that hosts the site does not, by itself, cover the VPS.
One example of how a host says this, with no endorsement from CGT. HostGator is not a CGT client. On October 23, 2026, HostGator Brasil said shared, reseller, and WordPress plans needed no action from the customer, and that VPS and dedicated servers were updated automatically unless access had been changed or ports blocked. In that case, the status page says to check the version.
How to see the version in WordPress
In the dashboard: Tools > Site Health > Info > Server. The fixed versions, according to CISC and CISA, are 8.5.12, 8.4.27, 8.3.36, and 8.2.35, or later on the same line. An 8.3.30 is still before the fix. After the change, the PHP processes need to be restarted.
PHP 8.1 or older
There is no official fix from the PHP project for those lines. CISC recommends migrating, or using a fix the vendor publishes, if one exists. PHP 8.2 security support ends on December 31, 2026 (official table), so a sensible target is 8.3 or newer, tested first on staging. Anyone who administers the server and cannot patch now should take it offline, as WordPress.org, CISA, and the FBI ask. CISA extends that to anyone still on 8.1 or older.
If the fix does not land today
A mitigation is not a substitute for the update. CISC and Amazon say a configuration change narrows some paths but does not remove both flaws.
Until the new version is in place, you can ask for session.upload_progress.enabled=0 and a restart of every PHP process, limits on request size (post_max_size and upload_max_filesize), and, on PHP 8.5, fatal_error_backtraces=0. CISA says a web application firewall (WAF) may offer some protection until the fix. If you control the server and the patch is not immediate, CISA and the FBI recommend taking it offline.
What to check from October 17
Amazon says to investigate from October 17, not only from the 21st. With whoever looks after the site, look for a new administrator nobody created, a page or file changed without a request, an odd redirect, and a PHP process launching a shell or downloading a file, which is what the FBI and CISA say to monitor. If any of that shows up, isolate what you can, keep the logs, and treat it as an incident, including under the LGPD if personal data is involved.
Questions to ask the host or the technician
- What is the exact PHP version on this account, today?
- Is the fix already installed (8.5.12, 8.4.27, 8.3.36, 8.2.35, or later), or only scheduled?
- Were the PHP processes restarted after the update?
- Is the plan shared, managed, VPS, dedicated, or cloud under our administration?
- Could a password, firewall, or port change have blocked the automatic update?
- Does any internal system ship its own PHP, separate from the site?
- On 8.1 or older, is there a staging environment for a move to 8.3 or newer?
- Were there changed files, new users, or odd activity from October 17 onward?
Frequently asked questions
What is PHP2Shell?
It is CVE-2026-109618 and CVE-2026-109619, in the PHP core, scored 9.2 on CVSS v4.0. They allow remote commands with no login.
Do I need to update WordPress?
No. No WordPress update is required or planned. What has to change is the PHP on the server.
Which versions already include the fix?
8.5.12, 8.4.27, 8.3.36, and 8.2.35, or later on the same line. PHP 8.1 and older have no official fix from the project.
On shared hosting, do I do nothing?
The host applies the fix. You confirm that it is already installed on your account, not that it will be.
On a VPS, who updates?
Whoever administers the machine. If the host’s access changed, check the version.
Does PHP 7.4 or 8.1 have an official fix?
No. Migrate, preferably to 8.3 or newer, and test on staging. Security support for 8.2 ends on December 31, 2026.
Does a WAF or a PHP setting remove the risk?
No. The effective step is the fixed PHP version.
From what date should we look for signs of intrusion?
From October 17, 2026. If personal data was accessed or changed, it can be a security incident under the LGPD. This article does not describe a CGT client.
How CGT can help
CGT supports small and mid-sized businesses with IT management and security, within the scope agreed with each client: checking the PHP version, getting a clear answer from the host, following the update on a VPS or a company-run server, and guiding the migration when there is no longer an official fix.
Want to know whether your company’s site is already on the fixed version? Meet CGT and talk to us.
Sources: CISC, Oct 21, 2026, CISA, revised Oct 23, 2026, FBI IC3, Oct 23, 2026, AWS Security Blog, Oct 21, 2026, WordPress.org, Oct 21, 2026, PHP supported versions, and HostGator Brasil, Oct 23, 2026.


