PHP2Shell: What South African Website Owners Must Do This Week (CVE-2026-109618 & CVE-2026-109619)
Disclosure: some links on this page are affiliate links, which means we may earn a commission at no extra cost to you. We only recommend tools we have used or would use ourselves.
On 21 October 2026 the PHP project released emergency fixes for two critical vulnerabilities that allow an attacker to run their own code on your server without logging in. They are being exploited in the wild right now. If your website runs on PHP — which covers WordPress, Drupal, Magento, Joomla, Laravel and most of the web — this is the most urgent thing on your list this week.
This post explains what the flaws are, how they were actually found, which versions are affected, and exactly what to do. Including, importantly, what to do if you are stuck on PHP 8.1 — which a lot of South African businesses are, and which receives no official patch.
If you only read one paragraph
- Update PHP now. Fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
- PHP 8.1, 8.0 and 7.4 get no official fix. They are end-of-life. You need a distribution or LTS backport, or you need to upgrade.
- No setting on its own protects you. PHP has said plainly that no configuration change fully mitigates these flaws.
- Restart your PHP workers after updating or the fix does not take effect.
What PHP2Shell is
The two flaws are tracked as CVE-2026-109618 and CVE-2026-109619, and security researchers have nicknamed them together PHP2Shell. Both are rated 9.2 (Critical) under CVSS v4.0 by the PHP project. The security firm watchTowr rates them a full 10.0.
| CVE | What goes wrong | CVSS | Exploited in the wild |
|---|---|---|---|
| CVE-2026-109618 GHSA-w8hw-w9fx-j79w | Out-of-memory corruption. If a request hits PHP's memory limit at exactly the wrong moment, PHP can leave internal data half built, then treat that broken data as valid during cleanup. | 9.2 | Yes |
| CVE-2026-109619 GHSA-6wmf-4rv5-p3rp | Stale global state. A fatal error can leave internal state pointing at memory from a previous request. The next request handled by the same PHP worker picks up that leftover data — a use-after-free. | 9.2 | Yes |
Both sit in parts of PHP that nearly every request touches: memory management and error handling. That is what makes them serious.
Why your setup matters
Every installation serving web requests is in scope — PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, which is what a great many South African hosts run.
PHP considers the risk highest on Apache mod_php, where an unauthenticated request can trigger the attack before any of your application's own code runs. In plain terms: a working exploit has been demonstrated that does not need WordPress, your plugins, or your theme to have a single weakness of their own.
How it was discovered
This is the most interesting part of the story, and it is worth understanding because it changes how these things will be found in future.
It started with an audit in 2024
In 2024 PHP had its first external security audit in years, funded by the Sovereign Tech Agency, organised through OSTIF and carried out by Quarkslab. While fixing an unrelated issue that Quarkslab reported, a PHP core developer found the first signs of the out-of-memory problem behind CVE-2026-109618. An exploit was theorised at the time, but no concrete attack path was found, and other issues with clearer impact took priority.
Fixing it properly turned out to be hard. The security team developed several competing approaches, and each came with a cost: breaking backward compatibility, opening a new denial-of-service route, or requiring coordinated changes across a large ecosystem of third-party extensions. Unable to agree, and short of people with the deep engine knowledge needed, work on the fix stalled and restarted repeatedly over months. The PHP Foundation has since called this what it was — "a structural failure, caused by both the security team's decision process and its lack of resources."
Then AI-assisted research found the attack path
The PHP Foundation got PHP into OpenAI's Patch the Planet programme, and the security firm Calif began auditing PHP on 30 July 2026. On 11 August 2026, researcher Ryan A at Calif — using OpenAI's GPT-5.6 Sol model to assist — reported an unconditional remote code execution with the same root cause as the OOM problem found in 2024.
OpenAI independently reported the same root cause. Wiz reported further attack vectors on 24 August. From 11 August onward, fixing it became the top priority for everyone working on PHP security.
The lesson worth taking: the flaw had been sitting in one of the most-used pieces of internet infrastructure for years. It took funded, focused, AI-assisted research to turn a theoretical problem into a demonstrable attack path — and then it got fixed in about ten weeks.
The disclosure went wrong
PHP planned to disclose on 22 October. On 20 October at around 15:00 UTC, the CVE identifiers began circulating on Hacker News and social media, along with an incorrect release time and an incorrect CVSS score of 10.0. No technical details leaked at that point.
The PHP security team brought the release forward to 21 October at 14:00 UTC. watchTowr became the first to publicly confirm the flaws were real. The GitHub advisories then published at 13:34 UTC on 21 October — 26 minutes before the announced time — and fixed releases followed shortly after.
How bad the exploitation has been
This is not theoretical. The timeline is uncomfortable:
- 17 October — Amazon Threat Intelligence observed an exploitation attempt against its MadPot honeypot network. That is four days before public disclosure, and it is not clear how the attacker got the details.
- 20 October — within 45 minutes of the news getting out, Cloudflare saw tens of thousands of exploit attempts. Within two hours, hundreds of thousands. By the evening of 21 October, millions.
- 21 October — watchTowr confirmed exploitation in the wild through its honeypot network. CISA issued an alert. The European Commission, ENISA, CERT-EU and Europol issued a joint statement.
- Governments in Belgium, the Netherlands, Finland, France and Germany took websites offline as a precaution while they patched.
Censys scanned roughly 2.6 million hosts and found about 1.5 million still running an unpatched PHP version. Analysts estimate around 884,000 end-of-life hosts will receive no fix at all.
PHP underpins roughly 70% of the world's websites.
Which versions are affected — and the bit that catches South Africans out
| PHP branch | Affected versions | Fixed version |
|---|---|---|
| PHP 8.5.x | below 8.5.12 | 8.5.12 |
| PHP 8.4.x | below 8.4.27 | 8.4.27 |
| PHP 8.3.x | below 8.3.36 | 8.3.36 |
| PHP 8.2.x | below 8.2.35 | 8.2.35 |
| PHP 7.4, 8.0, 8.1 | All versions | No official release — end-of-life |
| PHP 7.3 and older, including PHP 5 | All versions | No fix available. Upgrade. |
Here is the trap. A very large number of South African business websites — and a fair number of local hosting packages — still run PHP 8.1 or older. Those branches reached end of life, so the PHP project is not shipping a fix for them. If that is you, "just update PHP" is not something your host can do with a one-click button.
Your options on an end-of-life branch are:
- Use a distribution or LTS vendor backport. Major Linux distributions were given the patches ahead of release. Ubuntu, Debian, AlmaLinux and others may ship a patched 8.1 package even though upstream PHP will not. Ask your host specifically whether they have applied a backported patch.
- Use PHP's minimal source backports for 7.4, 8.0 and 8.1, which the PHP team published alongside the release.
- Upgrade to a supported branch. This is the only answer that keeps you safe beyond this one vulnerability. It is the right move, even if it is the harder one this week.
What to do, in order
1. Find out what version you are on
WordPress users: go to Tools → Site Health → Info → Server and look at the PHP version. Or ask your host. Do not guess.
If you have more than one site, check every one. Inventory first, patch second.
2. Update to a fixed release
Update to the fixed version for your branch: 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Linux distributions received the patches ahead of the public release, so if you are on a managed host, look for an updated package rather than compiling anything yourself.
If moving between branches, test on staging first. PHP 8.2 and above removed and changed things that older WordPress plugins occasionally rely on.
3. Restart every PHP worker
This catches people out constantly. The update is not live until the worker restarts. On PHP-FPM that means restarting the service; on LiteSpeed, restarting the server or the PHP process. Confirm the running version changed, do not assume it did.
4. If you cannot patch immediately
PHP has been explicit: no configuration change fully mitigates these vulnerabilities. Partial mitigations that have been published include:
- On PHP 8.5, turning off
fatal_error_backtraces(it is on by default in that version), which blocks the confirmed fatal backtrace attack path. - Reviewing
session.upload_progresshandling, which the PHP project confirmed as another attack path. - Applying a web application firewall ruleset. AWS published WAF rules for this, and Cloudflare and most managed WAF providers pushed coverage quickly.
Treat these as buying time, not as a fix. If you run an end-of-life branch and cannot patch today, the honest options are to take the site offline temporarily — which is what several European governments chose to do — or to prioritise the upgrade above everything else.
5. Assume you may already have been targeted
Exploitation was observed from at least 17 October. If you run an internet-facing PHP site and have not patched, it is worth checking access logs for unusual requests, reviewing whether any new admin users or files appeared, and rotating credentials — database passwords, FTP, and WordPress application passwords.
What this means for South African businesses specifically
Three things are worth saying plainly.
Hosting matters more than you think. A good host applied patches within hours and told you about it. If you have not heard from your host at all since 21 October, that is information. Quality hosting is not worth economising on — Hostinger is what we recommend for most small South African business sites, and they pushed patched PHP versions quickly.
End-of-life software is a debt that comes due. Roughly 884,000 hosts will never get a fix for this because they are on branches nobody supports any more. If your site is one of them, the upgrade is now overdue rather than optional — and if the site is WordPress on a page builder, ElementPack Pro is our usual route to rebuilding a layout cleanly on a modern PHP branch without paying for a full redesign.
Your website is infrastructure, not a brochure. It sits on a server, on a language, maintained by volunteers, that 70% of the web depends on. Something like this will happen again. The businesses that were fine this week were the ones with a host that patches fast and someone who checks.
Frequently asked questions
Is my WordPress site affected if all my plugins are up to date?
Yes. This is a flaw in PHP itself, not in WordPress or any plugin. Keeping plugins updated is still essential, but it does not protect you here. On Apache with mod_php, an attack can succeed before WordPress even loads.
We are on PHP 8.1. Are we definitely exposed?
PHP 8.1 is end-of-life and has no official fix. Your host may have applied a backported patch from your Linux distribution — ask them directly and get a specific answer. If they cannot confirm one, treat the site as vulnerable and prioritise upgrading to 8.2 or above.
Does turning off a setting make us safe?
No. PHP has said no configuration change fully mitigates these flaws. Settings and WAF rules reduce exposure and buy time. Only updating closes it.
How urgent is this really?
Very. Exploitation was observed four days before public disclosure, millions of attempts were recorded within a day of the news breaking, and CISA, ENISA and Europol all issued warnings. Treat it as same-day work.
How do I check what version I am on?
In WordPress: Tools → Site Health → Info → Server. Otherwise ask your host, or check your hosting control panel. Verify the running version after any change, not just what the control panel says is selected.
Need a hand?
If you are unsure what version you are on, whether your host patched, or how to plan an upgrade without breaking a live site, start with a digital marketing audit — we will check the technical foundations as part of it. We also cover the wider picture in our guide to WordPress security in South Africa, and hosting options in our South African hosting comparison.
Last updated 23 October 2026. Details in this post are drawn from the PHP Foundation's release announcement, watchTowr's vulnerability FAQ, CISA, ENISA and CERT-EU advisories.