On 21 October 2026, the PHP project released a PHP security update for two critical flaws. PHP is the language on the server that builds a page before it reaches the browser. WordPress, WooCommerce, and a large share of custom websites run on it. The flaws are in PHP itself. Updating WordPress, a theme, or a plugin does not fix them. Updating PHP does.
The patched releases are PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. Any later release in the same line includes the fix. Anything older in those lines does not. The two vulnerabilities are CVE-2026-109618 and CVE-2026-109619. Security reports often call the pair PHP2Shell. That nickname is a label, not a third flaw.
The same fortnight also brought security updates for GitLab and Node.js. Those are different products. A companion guide puts the three side by side and says who actually needs to act.
What this PHP vulnerability is
A vulnerability is a flaw someone can use. These two are rated Critical, 9.2 out of 10, on the CVSS 4.0 scale the PHP project published. Both can allow remote code execution. In plain terms, a person on the internet may be able to run their own commands on the server. Unauthenticated means they do not need a password, and they do not need a visitor to click anything.
They are related, and they are not the same bug.
- CVE-2026-109618 is in how PHP recovers when a request runs out of memory. Cleanup can then treat half-prepared internal data as if it were valid. The PHP project has demonstrated this on Apache with mod_php: one request can trigger it before any of your own site code runs.
- CVE-2026-109619 is leftover internal state. Information from one request can remain after its memory has been freed, and a later request handled by the same worker can use it. The confirmed impact includes exposing memory and running code. This one has been shown on mod_php and on PHP-FPM.
You do not need to learn those names to protect the site. You do need the full PHP version. “PHP 8.3” is not a version. PHP 8.3.36 is.
The PHP project also says exploitation is complex and depends on how the server is built. A high score with difficult conditions is still urgent: there is a demonstrated attack, technical detail is public, and PHP says there is no complete workaround.
Why website owners should act
If an attack succeeds, the attacker is in as the account that runs the website. On a typical site that account can read the configuration file, and that file often holds the database password. They can change pages, add an extra administrator, send spam, or leave code behind for later. That is the practical meaning of the confirmed impact. It is not a statement that this has already happened to you.
Two things are easy to mix up, so they are separated here.
- Confirmed. The PHP project has demonstrated that the flaws can be exploited without a login. On 21 October 2026, Cloudflare reported attack traffic against sites it protects, including requests that varied in an attempt to get past firewall rules. CERT-EU advised organisations to patch immediately, or to take internet-facing applications off the public network until the fix is verified.
- Not confirmed by this page. That your particular website has already been broken into. There is no public list of affected small businesses. A matching PHP version tells you the hole is closed. It does not tell you whether someone used it yesterday. Unexpected administrators or files you did not add are a separate problem, and the update alone does not remove a person who is already inside.
Waiting for proof that someone tried your site is the expensive way to answer the question. The patch is already published. The longer a known flaw stays open, the more time there is for someone to try it.
Which websites are at risk
The PHP project’s own line is: every PHP installation that serves web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed. It considers mod_php the highest risk. Modern managed hosts often use PHP-FPM. That setup is in scope too. Do not wait until you know which one you have.
The website is in scope when three things are true: it runs PHP, that PHP is older than the patched release for its line, and the site answers requests from the internet. That includes a careful WordPress or WooCommerce site with every plugin updated. It includes Drupal, Magento, Laravel, and a custom application. Neglect is not the condition. The version is.
A site already running a patched release, after PHP has been restarted, is not exposed to these two flaws. PHP that only runs a private scheduled task, and never serves the website, is outside the group the PHP project named. If you are unsure which PHP the website uses, check the website.
A store that lives entirely on Shopify’s hosted platform is not patched from a WordPress screen. Shopify operates that platform. If you also have a WordPress site, a server, or an application you host, that piece still needs its own check.
Affected PHP versions
Use the full number. A release is protected when it is the same line at or above the version in this table. PHP 8.3.37, when it exists, includes the fix. PHP 8.3.35 does not.
| If the site is on | You need at least | What to do |
|---|---|---|
| PHP 8.5 | 8.5.12 | Install the security update. Stay on 8.5. |
| PHP 8.4 | 8.4.27 | Install the security update. Stay on 8.4. |
| PHP 8.3 | 8.3.36 | Install the security update. This is a strong target for WordPress. |
| PHP 8.2 | 8.2.35 | Install 8.2.35 now. PHP 8.2 stops receiving security fixes on 31 December 2026, so plan a move to 8.3 or newer. |
| PHP 8.1 or older, including 7.4 | No normal update from the PHP project | Move to 8.3.36, 8.4.27, or 8.5.12 after a backup and a test. A vendor backport counts only if it names these two CVEs. |
WordPress recommends PHP 8.3 or greater. Current WordPress can still run on older PHP, including 7.4, and WordPress marks those older lines as end of life. “The site still loads” is not the same as “the PHP is supported.”
PHP 8.2.35 does fix these two flaws. It is a short-term patched stop if you cannot change lines this week. It is a poor place to stay, because that whole line reaches end of life on 31 December 2026.
The PHP project also published limited source backports for PHP 7.4, 8.0, and 8.1, for people who compile PHP and have no vendor to call. That is a specialist path. It is not a button in a hosting panel, and it does not make those lines supported. Do not install a PHP 8.6 test release to get this fix. Use one of the stable releases above.
Do not assume your host has already patched PHP
Automatic updates are easy to trust and easy to misread. Several different things get called “automatic,” and only one of them is this fix.
- WordPress automatic updates install WordPress, and sometimes plugins and themes. They do not replace the PHP binary on the server.
- A host that “keeps PHP current” may do that on a weekly or monthly schedule. A critical release on a Wednesday morning is not guaranteed to be on your site by Wednesday afternoon.
- A menu that offers “PHP 8.3” is offering a line, not a patch. The line still contained vulnerable releases an hour before 8.3.36 existed.
- The PHP project warned that the volunteer repository at rpms.remirepo.net would not have packages on the release day. If your server gets PHP from there, “I ran the updater” can still leave you on the old build.
- Staging and production are often different. The terminal command
php -vis often different again. The version that matters is the one that answers a request to the live website. - Installing the package is not the last step. PHP keeps running the old code until its service, or Apache, is restarted.
Ask a person who can see the server. Paste this, and keep the reply:
Please confirm the full PHP version serving my production website, for example 8.3.36, not only the line such as 8.3. I need to know whether the 21 October 2026 fixes for CVE-2026-109618 and CVE-2026-109619 are installed, and that PHP was restarted afterward. If they are not, please install PHP 8.3.36, 8.4.27, or 8.5.12, or a later release in that line, and tell me when it is live. Please do not move the site to an older PHP line.
A reply that says “you are on the latest PHP” is not an answer. A reply that contains a full version number is.
How to fix the PHP vulnerability
Install PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35, or a later release in that same line, then confirm the live site is serving it. Do the steps in this order. Skipping the backup is how a ten-minute patch becomes a down afternoon.
1. Check the PHP version the website is using
On WordPress, open Tools, then Site Health, then Info, then Server. Read the PHP version field. You want a number with three parts, such as 8.3.30 or 8.3.36.
If that screen is missing, look in the hosting panel for a PHP version selector, or use the email above. On a server you administer, php -v is a useful clue and a poor final answer. Compare it with the version WordPress or the panel shows. If they disagree, believe the one attached to the website.
Check production, not only a staging copy. Write the number down before you change anything.
2. Decide whether you are affected
Compare the number with the table above. If you are already on 8.3.36, 8.4.27, 8.5.12, 8.2.35, or a later release in that line, these two flaws are fixed, provided PHP was restarted after the install. If the third number is lower, you need the security update inside the same line. If the line is 8.1 or older, you need a planned move, not a one-click patch.
3. Back up the website
Take the files and the database. A host backup counts when it finished recently and you know how to restore it. Take your own copy as well when you can. For a jump from PHP 7 or 8.1, use a copy of the site as the test, or confirm you can restore, before you change production.
A patch inside the same line is the lower-risk change. You still want the backup before you press the button.
4. Check compatibility before you change lines
Moving from 8.3.35 to 8.3.36 should not require a code change. Moving from 7.4 or 8.1 to 8.3 or newer can. Old plugins and old themes are the usual reason a site breaks.
On a copy, switch PHP, then click through the homepage, a form, login, and checkout if you sell. Read the error. The message usually names the plugin. Update or remove that plugin, then retest. WordPress core is not the piece that usually blocks a current PHP version. An abandoned add-on is.
Prefer 8.3.36 or newer for a WordPress site that can run it. Use 8.4.27 or 8.5.12 when the theme and plugins have already been shown to work there. Use 8.2.35 only as the immediate patched stop when a line change has to wait.
5. Update to a patched, supported PHP version
Where you click depends on who operates the server. The goal is the same in each case: a patched release, then a restart, then proof from the live site.
Managed WordPress hosting
On many managed WordPress hosts you cannot replace PHP yourself, or the panel only lets you pick a line such as 8.2, 8.3, or 8.4. Send the email in the previous section. If the panel lets you choose, do not pick an older line because it feels familiar. Ask for the full version behind each option before you switch a shop or a booking site.
When they reply with a patched number, open Site Health again and confirm production shows it. Ask whether staging was updated too. A deploy from an old staging copy is a good way to get confused about which version is real.
A virtual private server
A VPS is a server you, or a person you hired, maintain. The host’s “managed” label on the invoice does not apply the PHP patch inside it.
- Record the version the website shows.
- Install the update from the operating system you already use, after that system has published it. On Debian or Ubuntu this is usually
apt updateand thenapt upgrade. On Amazon Linux, AlmaLinux, or Rocky Linux it is usuallydnf upgrade. - Restart the service that serves the site. For PHP-FPM the name includes the line, such as
php8.3-fpm. If Apache is running PHP as a module, restart Apache. - Read the version from the website again.
If the operating system does not offer the patched release yet, do not download PHP from a random website. Use your distribution’s packages, the official source from php.net if you already build PHP that way, or move the site to a host that has the update. The Remi repository was explicitly called out by the PHP project as not having packages on release day.
AWS
AWS does not update PHP inside your server because a security release exists. The version on the instance is the proof, not the fact that the account is on AWS.
- EC2 and Lightsail. Treat the instance as a VPS. Apply the system update, restart PHP, and read the version from the live site. Lightsail WordPress blueprints keep the PHP they were created with until that instance is updated. A newer blueprint does not rewrite an instance you already have. Backups, a firewall, and Systems Manager do not prove this patch is installed.
- Elastic Beanstalk. PHP comes from the platform branch or from what you deploy. Start the platform update or a deployment that contains a patched PHP, wait until the environment is healthy, and then confirm the version. Saving a setting is not the same as a finished deployment.
- Containers on ECS, Fargate, App Runner, or an image you built. The PHP version is baked in. Rebuild from a base image that already contains a patched release, deploy that image, and retire the old one. Restarting the current task keeps the old PHP.
- CloudFront or a load balancer in front of the site does not patch the origin. Check the machine or container that runs PHP.
The version numbers in this guide come from the PHP project, not from an AWS bulletin. If AWS publishes its own notice, use it to find the package or the platform version, then still confirm the PHP version the site returns.
6. Test after the update
Click the paths a customer uses, not only the homepage.
- The homepage and one ordinary interior page.
- Search, if the site has it.
- The contact form, or checkout, including a test you can delete.
- Logging in, and saving a draft if the site is WordPress.
- The host’s error log, for new PHP messages that were not there before.
A white screen or a critical-error email means stop and read the plugin or theme it names. Switch back to the previous PHP version only as a temporary recovery. Fix or remove that component, then return to the patched release. Do not leave the vulnerable version in place overnight because one plugin objected.
7. Confirm the fix is in effect
All of these should be true:
- The live site reports 8.2.35, 8.3.36, 8.4.27, 8.5.12, or a later release in that line.
- PHP, PHP-FPM, or Apache was restarted after the package was installed.
- The checks in the previous step pass.
- Any file you added only to print the version has been deleted. A public information page is a fresh risk of its own. Prefer Site Health or the host’s reply, and do not leave a version script on the server.
If you cannot see the server, the host’s reply with the full version, dated after the restart, is the confirmation. Refresh Site Health after they write. Panels sometimes show the number from before the restart.
A checklist for website owners
Use this as the working list. Website security here is one specific job: close these two flaws, then prove the live version.
- Read the full PHP version on the live site, not only the line in a menu.
- Compare it with 8.5.12, 8.4.27, 8.3.36, or 8.2.35.
- Back up the files and the database, and know how to restore.
- If you must change PHP lines, test theme and plugins on a copy first.
- Install a patched, supported release. Do not move backward to an older line.
- Restart PHP or the web server.
- Retest the homepage, a form, login, and checkout.
- Confirm the live version again, and delete any temporary version script.
- If the host did the work, keep their written version number.
- If you are on PHP 8.2.35, book the later move off 8.2 before 31 December 2026.
If you cannot get into the hosting account, that is the first problem, not a detail. The Project Rescue Checklist starts with access. An update you cannot apply is an update that has not happened.
Have this checked before it becomes an incident
You do not have to become a server administrator to close this. If the version is unclear, the hosting login is somewhere you cannot find, or the site is old enough that a PHP change needs a test, I can take it from here.
That work is specific. I find the PHP version visitors actually reach, back up, move the site onto a patched release it can run, test the pages that matter to the business, and confirm the number afterward. If a plugin cannot make the jump, you will know which one, instead of discovering it as a blank homepage. If the host has to do the change, I will ask them the question that produces a version number rather than a reassurance.
This is cheaper before something is wrong. Book a conversation or send a short brief, and include the words “PHP update” plus the version if you already have it. If you do not, name the host. If you have already seen an administrator you did not add, or files you do not recognise, say that too. The update still has to happen, and it will not, by itself, remove someone who is already in.