On 21 October 2026 the PHP project released emergency fixes for two critical flaws in PHP itself, and any website running an unpatched version could be exposed to attackers who never need to log in. This guide explains what happened in plain English, how to check your own site, and how Website Hosting Australia can help if you are in trouble.
What happened
The PHP project shipped patches on 21 October 2026, one day after details of the flaws leaked online. The two bugs are tracked as CVE-2026-109618 and CVE-2026-109619, and security researchers have nicknamed the pair “PHP2Shell”. PHP rates each one CVSS v4.0 9.2 out of 10 (critical) and says both can allow unauthenticated remote code execution, which means an attacker can run their own commands on your server without a password. PHP’s official advisory urges every PHP user to update immediately.
| Date | What happened |
|---|---|
| 21 Oct 2026 | PHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 with full advisories. Researchers publish technical write-ups the same day (Huntress). |
| 20 Oct 2026 | Details of the flaws leak online. PHP posts an advance notice of an upcoming critical release, rated 9.2 for both bugs. |
| Aug 2026 | Researchers at Calif and Wiz privately report the flaws to PHP, and coordinated disclosure begins (Sansec timeline). |
The scale is large. Palo Alto Networks’ Unit 42 reports that its Cortex Xpanse telemetry found over 22.6 million exposed instances potentially vulnerable to the two flaws.
Why this one is different: the flaw is in PHP, not your plugins
Most website security alerts are about a plugin or a theme. This one sits in the PHP engine underneath your whole site, so WordPress, Elementor and every plugin can be fully up to date and your site can still be exposed. Sansec, a security firm that specialises in online stores, says Magento, Shopware and WooCommerce stores are exposed even when their own code is clean.
PHP says every installation that serves web requests is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The risk is highest with mod_php, where PHP has a demonstrated exploit in which a single unauthenticated request triggers the attack before any application code runs. Researchers say the vulnerable code dates back to PHP 5.4, released in 2012.
Security firm Rapid7 explains that a successful attack gives the attacker code execution with the web worker’s privileges, which is the same level of access your website itself has. In practice, an attacker could:
- Run malicious code on your server remotely, without logging in.
- Read sensitive server information. Sansec reports that CVE-2026-109618 can also leak server memory to the visitor.
- Reach your website files and the database login stored in them, then compromise your site or database.
- Install malware, add backdoors or quietly change your website files.
How the flaws work, in plain English
Both bugs are memory-handling mistakes. PHP handles every visit to your site as a separate request, and each request borrows a slice of the server’s memory. When something goes wrong halfway through a request, PHP has to tidy up, and in both cases the tidy-up trusts information that is no longer reliable.
CVE-2026-109618 (the memory-exhaustion bug). PHP’s advisory says that when the server runs out of memory, PHP can be interrupted while a request is only partly set up, and the clean-up then treats the half-built data as valid. Think of a kitchen hand who ticks “prep done” on the checklist before finishing the prep. If the work is interrupted, the cleaning crew trusts the tick and handles things that were never put in place. Rapid7 notes that specially crafted multipart requests, the type used by forms and file uploads, can exhaust memory even when their size looks inside PHP’s configured limits.
CVE-2026-109619 (the leftover-state bug). According to the same advisory, PHP can keep internal state for a request after the memory behind it has been freed. A later request handled by the same worker may then use that stale state before it is reset. It is like a sticky note that still points to a shelf that has since been cleared and restocked: the next person follows the note and picks up whatever is there now, which an attacker may have arranged. Datadog’s analysis adds that the attacker’s requests must reach the same PHP worker, and that PHP confirmed command execution on both mod_php and PHP-FPM.
Both are “use-after-free” bugs, a well-known class of memory flaw that attackers can often turn into code execution.
Not every vendor rates them identically. Red Hat classifies CVE-2026-109618 as Important rather than critical for its standard deployments, because it uses PHP-FPM, where reliable exploitation is harder in practice. PHP itself, however, rates both flaws 9.2, says there are demonstrated exploits, and says updating is the only complete fix. Treat them as urgent.
Which PHP versions are safe
You are protected if you run PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or anything newer on the same branch. These are the versions the PHP project released on 21 October 2026.
| PHP version | Safe from | Status |
|---|---|---|
| 8.5 | 8.5.12 or newer | Patched |
| 8.4 | 8.4.27 or newer | Patched |
| 8.3 | 8.3.36 or newer | Patched |
| 8.2 | 8.2.35 or newer | Patched, but 8.2 reaches end of life on 31 Dec 2026 |
| 8.1 and older | No official fix | Unsupported. Only safe if your vendor has back-ported the fix, otherwise upgrade |
| 8.6 release candidate | Not applicable | Not recommended for production |
The last number is what counts. A site on PHP 8.3.35 is still vulnerable, while 8.3.36 is fixed. Official sources: PHP release announcements and the Help Net Security summary.
Three details are worth knowing:
- PHP 8.1 and older no longer receive updates from the PHP project. Some Linux distributions and long-term-support vendors provide their own back-ported fixes, so ask your host rather than assuming. PHP also published minimal source back-ports for 7.4, 8.0 and 8.1, but these are meant for teams that build PHP from source.
- A patched package can still look “old”. Vendors sometimes back-port a fix without changing the headline version number, which is another reason to ask your host to confirm in writing.
- PHP 8.2 is patched but running out of road. PHP’s own release notice reminds users that 8.2 stops receiving security fixes on 31 December 2026. Plan your move to 8.3 or newer now. PHP 8.6 is still a release candidate and PHP says not to use it in production.
How to check your own site
You need two facts: which PHP version your site runs, and whether that version has the fix. Here is how to find out.
- Find your PHP version. In WordPress, open Tools, then Site Health, then the Info tab, and expand the Server section. Your hosting control panel also lists the PHP version for each site.
- Compare it to the table above. Look at the full number, for example 8.3.36, not just “8.3”.
- Work out who needs to update it. Codeable’s guidance for WordPress owners points out that who has to act depends on how the site is hosted. On managed or shared hosting, your host controls PHP, so ask them to confirm it is patched. On a VPS or dedicated server, you or your developer must install the update and restart PHP-FPM or the web server, because the old code keeps running until you do.
- Count every PHP site, not only the main one. Security firms Patchstack and Huntress both advise taking an inventory of every PHP install, including staging copies, old microsites, test installs, containers, and third-party software that bundles its own PHP.
- If you are on PHP 8.1 or older, book the upgrade now. Test on a staging copy first, because older plugins and themes can misbehave on newer PHP versions.
Are attackers using it yet?
Assume they are, or will be within days. Early reports differ on how much real-world exploitation there has been, which is normal in the first hours of a disclosure, but the warning signs are strong:
- The details leaked before the patch. Huntress notes the flaws leaked online on 20 October, a day before fixes were available, which gave attackers a head start.
- Working exploits exist. PHP’s advisory describes a demonstrated exploit against Apache with mod_php, and watchTowr says it has reproduced CVE-2026-109618.
- Probing has started. Patchstack’s live updates reported probing attacks shortly after the patch but no hard evidence of breaches at that stage. Huntress had not seen exploitation across its own customers as of the evening of 21 October (US Eastern time), although it noted that others were reporting attacks it could not verify.
- Official lists had not caught up yet. As of 21 October, SOCRadar said PHP had not reported in-the-wild exploitation and the US agency CISA had not added either flaw to its Known Exploited Vulnerabilities catalog.
- Defenders are bracing for impact. Security researcher Kevin Beaumont predicts “a mass of incidents”, and the UK’s National Cyber Security Centre urges organisations to take offline any system that cannot be fixed right away.
Speed matters here. In July 2026 the Australian Signals Directorate’s Australian Cyber Security Centre (ACSC) warned that advances in AI are shortening the time between a vulnerability being disclosed and attackers exploiting it, as summarised in AUSCERT’s weekly review. The safest approach is to patch first and wait for the exploitation numbers second.
If you cannot update straight away
Updating is the only complete fix. PHP states plainly that there are no complete mitigations, and that the stopgap settings below reduce exposure to specific attack paths without making a server safe. These are changes for your host or developer, not for a typical site owner, and some do not work on shared hosting.
For the memory-exhaustion bug (CVE-2026-109618), PHP suggests:
- Setting
memory_limit=-1in a way applications cannot override, such asphp_admin_valuein the PHP-FPM pool or Apache configuration, and checking nothing puts a finite limit back. - Setting a low
post_max_size: 8M for sites that do not need file uploads, 32M for sites that do, withupload_max_filesizekept below it. - Using a container or cgroup memory limit as a safety boundary that restarts only the affected worker.
For the leftover-state bug (CVE-2026-109619), PHP suggests:
- Setting
session.upload_progress.enabled=0inphp.ini, the PHP-FPM pool or the server configuration, then restarting every worker. Settings made withini_set()or.user.inifiles are too late to help. - On PHP 8.5 only, setting
fatal_error_backtraces=0and restarting.
If your server runs PHP 8.1 or older and cannot be upgraded today, Huntress recommends taking it off the internet or placing it behind a VPN or web application firewall until you can move to a supported version. A firewall adds a layer of protection, but it is not a substitute for the update.
Signs your site may already be compromised
Updating PHP stops new attacks, but it does not remove anything an attacker has already planted. If your site was running an unpatched version after the leak on 20 October, check for these warning signs:
- Unfamiliar
.phpfiles, especially in upload or media folders or the site’s top-level folder, or core files that changed when you did not change them. Huntress lists webshells and new web root files among the things to look for. - Administrator accounts you did not create, or new scheduled tasks (cron jobs) you do not recognise.
- Visitors being redirected, spam pages appearing on your domain, or browser or search engine security warnings.
- Unexplained spikes in server load or traffic, or a notice from your host about suspicious activity.
- For server administrators, shells or download tools being launched by PHP worker processes.
If you suspect an attack, work through these steps in order:
- Contain it. Put the site into maintenance mode or take it offline. Keep a copy of the web server and PHP logs and of the site files, because they help show what happened (Huntress advises preserving logs).
- Patch PHP. Move to a fixed version from the table above before bringing anything back online.
- Clean or restore. The safest route is a clean backup taken before the details leaked on 20 October, tested on a staging copy first. Then update WordPress, themes and plugins.
- Change every credential. That means your hosting login, WordPress admin passwords, the database password, FTP or SSH keys, API keys and the WordPress secret keys (salts).
- Watch closely afterwards. Re-check for new files, new users and unusual traffic over the following weeks.
Australian businesses can report a cyber incident through ReportCyber on cyber.gov.au. If personal information may have been exposed, the Office of the Australian Information Commissioner explains whether the Notifiable Data Breaches scheme applies to you. Consider getting professional advice, as this post is general information and not legal advice.
How Website Hosting Australia can help
Whether your site is hosted with us or somewhere else, we can help you work out where you stand and put it right. Updating PHP across client sites was the right first response, and the next step is making sure nothing slipped through. Here is how we can help, depending on your situation:
- If your site is hosted with us. We confirm the exact PHP version your site is running and that it is on a patched release. If you are on an older version, we help move you to a supported one and check that your site still works afterwards.
- If you are hosted elsewhere and unsure. We can review your site’s PHP version, flag any end-of-life exposure and look for the warning signs listed above. Then we explain your options in plain English, including moving to a patched, supported platform.
- If you think your site has been compromised. We can help contain the problem, clean the site or restore it from a clean backup, rotate passwords and keys, and set up monitoring so you know quickly if it happens again.
Five questions to ask any hosting provider today
You can put these to us or to any other host. A good provider will answer them clearly and quickly.
- Which exact PHP version is my site running right now?
- Is it patched for CVE-2026-109618 and CVE-2026-109619, and when was the update applied?
- If I am on PHP 8.1 or older, how are you protecting me, and when can I move to a supported version?
- Do you hold a clean backup of my site from before 20 October, and how long do you keep backups?
- Have you seen any suspicious activity on my account, and who do I contact if I do?
Not sure where to start? Contact the Website Hosting Australia support team with your domain name, and we will help you find out whether you are affected.
Frequently asked questions
Is WordPress itself vulnerable? No. The flaws are in PHP, the language WordPress runs on. WordPress sites are exposed when the server’s PHP is unpatched, even if WordPress and every plugin are up to date.
Will updating PHP break my website? A patch within the same branch, such as 8.3.35 to 8.3.36, contains security and bug fixes and is usually low risk. Jumping to a newer branch, such as 8.1 to 8.3, can break older plugins or themes, so test it on a staging copy first.
Can a firewall protect me instead of updating? It can add a layer, but it is not a replacement. Cloudflare has deployed initial rules for the known exploit vectors for all its customers, including free accounts, while PHP says updating is the only complete fix.
I use PHP-FPM, not mod_php. Am I safe? Not automatically. PHP rates the risk highest for mod_php, but it says every installation serving web requests is affected, and PHP confirmed command execution on both setups according to Datadog’s analysis.
Do I need to change my passwords? If you see any warning signs, yes, change them all straight away. If your site ran an unpatched PHP version after 20 October and you have no signs of a problem, patch first, then ask your host or developer whether rotating your passwords and keys is worthwhile.
Sources
This post reflects information available on 22 October 2026. The situation is changing quickly, so check the primary sources for updates.
- PHP project: security advisory and release announcements, plus the GitHub advisories GHSA-w8hw-w9fx-j79w (CVE-2026-109618) and GHSA-6wmf-4rv5-p3rp (CVE-2026-109619)
- Palo Alto Networks Unit 42: threat brief
- Rapid7: critical unauthenticated remote code execution in PHP
- Red Hat Customer Portal: CVE-2026-109618
- Datadog Security Labs: PHP2Shell analysis
- Sansec: PHP2Shell research
- Huntress: rapid response to the leaked vulnerabilities
- Patchstack: live alert and protection steps
- SOCRadar: PHP2Shell overview
- Help Net Security: PHP2Shell patched, update now
- Codeable: what WordPress site owners need to do
- AUSCERT week in review, 10 July 2026 (summarising the ACSC CMS alert)
- Australian Cyber Security Centre: cyber.gov.au and the OAIC


