
Many organisations chose a short closure while they fixed the lock.
On 21 October 2026, CNN reported that Japan's largest bank, MUFG, and the airline ANA had temporarily suspended some webpages and services. A day later, MyCERT, Malaysia's national computer emergency response team, told organisations to apply PHP's update immediately or consider taking their sites offline.
The cause was PHP2Shell, two critical flaws in PHP, the software that runs WordPress websites. On an unpatched server, they can let a stranger run commands without logging in, and updating WordPress does not fix that. Your host or developer must update PHP.
If your website runs on WordPress, you have three choices this week:
- Your host confirms the fix in writing: stay online, but ask when it went in and whether they checked for a break-in.
- They cannot confirm it today: a maintenance page until they can may cost less than a hacked site.
- Your host says your PHP is too old for official updates: ask them to add the fix to your current version today, or show a maintenance page until they do. Then plan an upgrade, or a move to a website with no PHP, so the next PHP flaw has nothing to attack.
Part 1 is for business owners in Malaysia and Singapore. IT managers and developers can jump to Part 2 for patched versions and fix steps.
Update, 24 October: PHP reported a smaller follow-up bug on 23 October. Question 5 below covers the setting your host can apply.
What PHP2Shell is, in plain English
PHP is the software that builds your WordPress pages on the server each time someone visits. PHP2Shell is the name for two critical flaws in PHP. Part 2 lists their official tracking numbers for your IT team.
The BBC reported the US National Security Agency's warning that the flaw could provide a "direct path" to a system's database. For a company website, that could mean altered pages or exposed enquiry-form data.
Three facts matter most if you own the website:
- Updating WordPress does not fix it. The flaw is in PHP itself, so WordPress automatic updates will not close it.
- The fix is a server update. Whoever runs your server, usually your hosting company or developer, has to install it.
- Older PHP versions get no new release. The PHP project ended security support for PHP 8.1 on 31 December 2025. Some hosts and control-panel vendors add the fix to old versions themselves, so ask yours. By our own count from WordPress.org's October 2026 statistics, roughly a third of WordPress sites run a PHP version with no security fixes. Treat that as an estimate.
The bugs are old. Calif, one of the research teams, found that part of the faulty code dates back to a PHP version retired in 2015. What is new is the speed of discovery: researchers used AI-assisted tools. Wiz Research, quoted by CNN, said that with the newest AI models a single researcher did in a week what would once have taken a world-class team months. Expect more emergencies like this one.
Governments and big companies chose: patch now, or switch off
Cyber security agencies told organisations to patch immediately. The US NSA and CISA said to take systems offline if you cannot update immediately; Malaysia's MyCERT and the EU's CERT-EU said to consider it. Big organisations accepted time offline, so ask your host now rather than wait.
Malaysia
NACSA, the National Cyber Security Agency, warned on 21 October and told organisations with PHP websites to put the security update first. A day later, MyCERT, Malaysia's national computer emergency response team, said to apply PHP's update immediately or consider taking the site offline. It lists government portals, e-commerce sites and hosting providers among those at high risk.
Singapore
The Cyber Security Agency (CSA) issued an alert on 21 October and notes reports of widespread exploitation attempts. Its guide for website owners says updating WordPress or its plugins alone does not patch PHP. Bernama reported that CSA's chief executive, Gwenda Fong, wrote on LinkedIn that the agency is reaching out through business associations and technology partners to help smaller organisations act.
Companies and governments elsewhere
- France: Orange said it had suspended access to certain services globally while it deployed fixes, the BBC reported.
- Netherlands: numerous hospital websites and the Port of Rotterdam went offline, according to a Reuters factbox carried by The Star.
- UK: a minister told the House of Lords that 32 government services were unavailable, largely as a precaution, The Register reported.
- Europe: government websites in Germany, France, Belgium, Finland and the Netherlands were also taken offline as a precaution, The Register reported.
- US: the National Security Agency recommended taking systems offline if an immediate update is not feasible. The agency CISA said organisations still on PHP 8.1 or older should take PHP systems offline until they are patched or updated.
Hosting companies
Do not wait for an email from your host. When we checked on 24 October, the Malaysian hosting websites we looked at had no PHP2Shell notice.
Several large global hosts said they had patched by 22 October, including WP Engine, Kinsta and SiteGround. Hostinger said the same for all its servers except virtual private servers, which customers manage themselves. Automattic said sites on WordPress.com were already protected.
Has anyone been hacked?
As of 23 October, The Register reported no publicly confirmed successful compromises attributed to PHP2Shell. The UK knew of no confirmed compromise of central government systems, and Australia's cyber security centre knew of no successful exploitation within Australia. The attempts are real, though. According to The Register, Cloudflare's chief executive said it saw thousands of exploitation attempts in the 10 hours before the flaws were announced, and millions since.
Why going offline briefly can cost less than being hacked
Large organisations chose temporary downtime
A source quoted by the Guardian put the trade-off plainly: "Shutting down a service for a few hours costs far less than a compromised server". Picture a clinic in Petaling Jaya or a renovation firm in Singapore that takes bookings through a WordPress form. A maintenance page costs it some hours of enquiries. A hacked site can cost it far more, because Google's warning can stay up for days to weeks.
Your host's timing is now part of your risk
Singapore's CSA says that if a service stayed unpatched for more than 12 hours after the fix was released, you should ask your provider to check it for signs of compromise. PHP scheduled the fix for 10 pm Malaysia and Singapore time on 21 October, so compare your host's finish time with about 10 am on 22 October. A patch does not remove a break-in that has already happened.
Old PHP needs more than a patch
The Guardian reported that the UK's National Cyber Security Centre said the patch would not work for some organisations running older systems, which would have to be replaced. Cybersecurity Dive reported that security firm Cisco estimated roughly half of internet-facing PHP instances were too old for the fixes. WordPress itself recommends PHP 8.3 or newer.
A hacked website costs more than the repair
Google shows "This site may be hacked" in search results when it believes a hacker might have changed pages or added spam pages. The label stays until the owner fixes the site and asks for a review, and that review "can take from a few days to a few weeks". For a business that gets its enquiries from Google, that can mean days to weeks of fewer enquiries.
Malaysia and Singapore can both require you to report a breach
If the server holds personal data, such as enquiry forms or customer records, a hack can become a legal matter. Treat these points as a starting point, not legal advice.
- Malaysia: the Personal Data Protection Act (PDPA) has required breach notification since 1 June 2025. Notify the Personal Data Protection Commissioner "as soon as practicable". Failing to notify carries a fine of up to RM250,000, up to two years' imprisonment, or both.
- Singapore: under Singapore's own PDPA, you must report a breach that is likely to cause significant harm, or that affects 500 or more people. Once you decide it is notifiable, you must tell the Personal Data Protection Commission (PDPC) within 3 calendar days, and PDPC guidance expects that decision within 30 calendar days. The maximum penalty is S$1 million, or 10% of annual Singapore turnover for organisations with more than S$10 million in turnover.
Is your website affected? Five questions for your developer or host
Singapore's CSA suggests three questions for anyone whose provider manages PHP. We have added two for older sites. Send them today; Part 2 below is for the person who answers.
- Does our website use PHP, and is the PHP2Shell fix installed? Ask for a written yes. Some hosts add the fix to the version you already have, so the version number does not change.
- When was the fix installed, and was PHP restarted so the fix took effect?
- Were firewall alerts, PHP errors and signs of compromise checked for the time before the fix? CSA says this matters if the site stayed unpatched for more than 12 hours.
- If our PHP is version 8.1 or older, what is the plan? There is no new PHP release for those versions. The answer should be a fix added to your old version today, or the site goes offline until it is fixed, followed by a date for the upgrade. "Next quarter" is not a plan.
- Have you turned off session upload progress, as PHP suggested on 23 October? It is a one-line server setting, plus a PHP restart, that blocks the follow-up bug until PHP's next release.
Then open Google Search Console and check the Security issues report, where Google flags hacked content. If you suspect a break-in to a Malaysian site, MyCERT asks you to isolate the server, keep the logs and report it to MyCERT. In Singapore, CSA's guide tells owners to ask their provider to check for signs of compromise.
Patch or migrate: which fits your business
Patching closes this hole. It does not change the fact that a WordPress site is a PHP program answering every visitor, and each PHP version now gets about four years of support. The next PHP flaw will need patching too.
The wiki host Weird Gloop switched off PHP for 13 hours, its longest outage ever, yet about 94% of page views kept working because its pages were cached as ready-made copies. A static website served from a host with no PHP works on the same principle: visitors receive pre-built pages, so there is no PHP for a flaw like this to attack. If your static site sits on ordinary shared hosting, check that PHP is not installed there anyway, as Singapore's CSA advises.
Before PHP2Shell was announced, we had moved a client's website from WordPress to a Next.js static export, which builds every page in advance as a ready-made file, with content edited in a separate system. We are not naming them, because this is a security matter. After launch, some old URLs returned "page not found" and needed redirects, so map every old URL before you switch.
When PHP2Shell was announced, their public website was ready-made files with no PHP behind it, so there was nothing to patch on it. The maintenance plans we proposed for them treat updates as planned work, not an emergency every time a plugin or PHP flaw appears.

A migration is planned work, done once, instead of emergency repairs every few months. Photo by Darya Sannikova via Pexels.
What a static site does not fix:
- The separate editing system still needs its own security updates, and some of those updates are rated critical.
- Features that need a live server on every visit, such as member logins, have to be designed differently.
If your site is small and its PHP is too old for official updates, compare an upgrade quote with a rebuild without PHP. A five-page Business website on Next.js, with no PHP to patch, normally costs RM3,000 in Malaysia. It comes at no extra charge with our 12-month AI SEO Growth and Managed plans, in both Malaysia and Singapore. See our AI SEO plans for Malaysia or for Singapore.
If your site is larger, or your team edits content itself, talk to us about a WordPress migration. We check your PHP exposure first, then quote the move. For typical costs and timelines, see our WordPress migration guide.
For IT managers and developers: how to fix PHP2Shell
The rest of this guide is technical. Share it with whoever runs your server.

PHP2Shell targets the server software, not your website's design. Photo by panumas nikhomkhai via Pexels.
What the two PHP2Shell bugs do
- CVE-2026-109618, "RCE via OOM corruption": out-of-memory handling can interrupt PHP while request data is only partly set up, and cleanup may then treat the invalid data as valid.
- CVE-2026-109619, "RCE via stale global state": request-owned state can survive after its memory is freed, and a later request on the same worker may use it. PHP says a crafted heap layout can produce full remote code execution.
PHP rates both 9.2 on CVSS v4.0. Every PHP installation serving web requests is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP rates mod_php highest, "with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs", so a WordPress security plugin comes too late on that path.
PHP2Shell patched versions (as of 24 October 2026)
The PHP project's fixed releases, and the patched packages cPanel lists for its EasyApache 4 PHP builds:
| PHP branch | Fixed release from PHP | cPanel EasyApache 4 package |
|---|---|---|
| 8.5 | 8.5.12 | ea-php85 8.5.12 |
| 8.4 | 8.4.27 | ea-php84 8.4.27 |
| 8.3 | 8.3.36 | ea-php83 8.3.36 |
| 8.2 | 8.2.35 (security fixes end 31 December 2026) | ea-php82 8.2.35 |
| 8.1 | None (end of life) | ea-php81 8.1.34-5 (backported fix) |
| 8.0 | None (end of life) | ea-php80 8.0.30-12 (backported fix) |
| 7.4 | None (end of life) | ea-php74 7.4.33-19 (backported fix) |
| Older than 7.4 | None (end of life) | None; cPanel points to TuxCare Extended Lifecycle Support |
Backported builds keep the old version number, and Hostinger says the same of its own fix. CloudLinux builds carry other numbers again, for example ea-php82 8.2.34-2. PHP also published minimal source patches for 7.4 to 8.1, for teams that build PHP themselves. Amazon's bulletin on 5.4 to 8.1 says: "Migration to a supported branch is required."
How to fix PHP2Shell on a Linux or WordPress server
- Check the PHP version, as a first filter. In WordPress, open Tools, then Site Health, then Info, and look at the Server section. OpenAI's free php2shell-checker reads the version a site reports and sends no exploit probes. Because backported builds keep their old number, confirm the fix in the package changelog, not the version string.
- Update PHP. Install your distribution's updated package, then restart PHP-FPM or Apache. Distributions and LTS vendors received the patches in advance.
- Turn off session upload progress. Set
session.upload_progress.enabled=0in php.ini, the FPM pool or the server configuration, and restart every worker. Do not rely onini_set()or.user.ini. Since 23 October, PHP suggests this even on patched servers, until its next regular release. - Check for compromise. Amazon advises investigating from at least 17 October, looking for POST requests carrying
PHP_SESSION_UPLOAD_PROGRESS. The UK NCSC says to look for backdoors on any system left unpatched, and New Zealand's NCSC notes that patching does not remove an existing compromise.
How to fix PHP2Shell on a cPanel server
cPanel tells administrators to refresh the package cache, run /scripts/update-packages, and confirm the fix in the package changelog:
rpm -q --changelog ea-php81-php-cli | grep -m1 CVE-2026-109618
Replace php81 with each installed version. On Ubuntu, cPanel uses zgrep on the Debian changelog instead. On shared hosting, the host runs these commands; ask which ea-php packages your sites use and whether each lists the PHP2Shell CVEs.
If you cannot update yet
PHP says these measures "reduce exposure to specific attack paths but do not make an installation safe":
- For CVE-2026-109619:
session.upload_progress.enabled=0, as above. On PHP 8.5, also setfatal_error_backtraces=0and restart every worker. - For CVE-2026-109618: set
memory_limit=-1where applications cannot override it, such asphp_admin_valuein the FPM pool or Apache configuration. With no PHP memory limit, PHP tells you to use a container or cgroup limit as the availability boundary, and not to substituteRLIMIT_ASorRLIMIT_DATA. Also set a lowpost_max_size: 8M without file uploads, 32M with them. - Do not count on hiding errors. PHP says hiding diagnostics with
error_reporting,display_errorsor@does not help.
If you cannot patch, CISA says to take PHP systems offline until they are patched or updated, MyCERT and CERT-EU say to consider taking them offline or isolating them, and the UK NCSC says to consider it if the temporary measures are not possible or would take too long. PHP's own summary: "There are no complete mitigations, updating is the only safe choice."
CVE-2026-115560, the 23 October follow-up
PHP's informational advisory describes an "unlikely RCE vector": an application must switch its session serializer at runtime with ini_set() before session_start(), while session upload progress is enabled. CERT-EU notes it affects only unusually configured applications and gets no out-of-band release; PHP will publish the full advisory with its next regular release. If you set session.upload_progress.enabled=0 on 21 October, keep it.
Firewalls help, but do not replace the patch
Cloudflare says it protected free and paid WAF customers by default from 03:02 UTC on 21 October, and still tells them to patch PHP. AWS says its WAF rule group for PHP blocks CVE-2026-109619 but does not target CVE-2026-109618.
Exploitation status, as of 24 October
- Amazon logged an exploitation attempt dated 17 October, four days before disclosure, and says it is unclear how the attacker got the details before disclosure. Of the proof-of-concept attempts it saw from about 02:00 UTC on 21 October, it says it is unclear whether any would have succeeded on real systems.
- A public proof-of-concept exploit was posted to Exploit-DB on 22 October. VulnCheck told The Register that very few of the hundreds of public proof-of-concept repositories work, largely because of ASLR, and that it had built one that gets past ASLR with PHP's recommended production settings, shared only with its customers.
- CERT-EU says circulating proofs of concept raise the likelihood that attackers are already exploiting the flaws.
- As of 23 October, The Register reported no publicly confirmed successful compromises attributed to PHP2Shell, and none of the three CVEs was in CISA's Known Exploited Vulnerabilities catalogue.
PHP2Shell is a flaw in PHP itself. Flaws in your own application code are a separate risk; to find those before release, read our SAST tool guide.
PHP2Shell FAQ
What is PHP2Shell?
PHP2Shell is the name for two critical vulnerabilities in PHP itself, CVE-2026-109618 and CVE-2026-109619. The PHP project rates both 9.2 on CVSS v4.0 and says they can allow unauthenticated remote code execution, meaning an attacker who never logs in may be able to run commands on the web server.
How do I check if my website is affected by PHP2Shell?
Ask your hosting company or developer which PHP build runs your site and whether the PHP2Shell fix is installed. In WordPress you can see the PHP version under Tools, then Site Health, then Info, then Server, but some hosts add the fix without changing the version number, so the number alone does not prove you are safe. PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 from the PHP project are patched. On a cPanel server, the package changelog lists CVE-2026-109618 once the fix is in.
How do I fix PHP2Shell?
Your host or developer updates PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or installs their own patched package, and restarts every PHP worker. The PHP project says there are no complete mitigations and updating is the only safe choice. PHP 8.1 and older get no new release, so get a fix added to your old version or take the site offline until it is fixed, then upgrade. Since 23 October, PHP also suggests setting session.upload_progress.enabled=0 until its next regular release, even after updating.
Is WordPress affected by PHP2Shell?
Yes, if it runs on an unpatched PHP version. The flaw is in PHP, not in WordPress, themes or plugins, so WordPress automatic updates do not fix it. Wiz Research confirmed unauthenticated remote code execution against WordPress in testing.
Is there a temporary workaround for PHP2Shell?
PHP lists interim settings, such as session.upload_progress.enabled=0, that reduce exposure to specific attack paths but do not make an installation safe. A web application firewall helps, but Cloudflare itself tells customers to patch PHP even with its protection on. If you cannot patch quickly, Malaysia's MyCERT and the UK NCSC say to consider taking the site offline until it is fixed, and the US agency CISA says organisations that cannot update immediately should take PHP systems offline.
What is CVE-2026-115560?
A further PHP bug that PHP announced in an informational advisory on 23 October 2026, two days after the PHP2Shell patches. PHP calls it an unlikely remote code execution vector: it needs an application that switches its session serializer at runtime while session upload progress is enabled. CERT-EU notes it affects only unusually configured applications. PHP will fix it in its next regular release and suggests setting session.upload_progress.enabled=0 until then.
Is PHP2Shell being exploited?
There are many attempts, but no publicly confirmed break-ins as of 23 October 2026. Amazon logged an exploitation attempt dated 17 October, before disclosure, and according to The Register, Cloudflare's chief executive said it had seen millions of attempts. As of 23 October, The Register reported no publicly confirmed successful compromises attributed to PHP2Shell. On 22 October, VulnCheck told The Register it had built an exploit that gets past ASLR, a standard memory protection.
Does moving from WordPress to Next.js remove the PHP2Shell risk?
For the public website, yes: a Next.js static export is served as plain HTML, CSS and JavaScript files, so there is no PHP running for PHP2Shell to attack. It does not make a site unhackable. A headless CMS still needs its own security updates, and its admin panel should be kept away from the public site.
Correction, 24 October 2026: the first version of this guide said we had found no MyCERT advisory. MyCERT published one on 22 October (MA-1484.102026).
Sources
- PHP project: PHP 2026 security release notes and the 23 October advisory, supported versions, end-of-life versions and GHSA-6wmf-4rv5-p3rp
- Researchers: Calif and Wiz Research
- News: CNN, BBC, the Guardian, the Guardian explainer, Cybersecurity Dive, The Star (Reuters factbox), Malay Mail (Bernama), and The Register on UK government services, attack volumes, the VulnCheck exploit and the third bug
- Agencies: NACSA (NC4), MyCERT MA-1484.102026, CSA Singapore alert and CSA guide, NSA, CISA and its KEV catalogue, UK NCSC, CERT-EU, ASD's ACSC, NCSC New Zealand, University of Washington IT
- Exploitation: Amazon Threat Intelligence, AWS bulletin 2026-143, Cloudflare, AWS WAF mitigations, OpenAI php2shell-checker, Exploit-DB 52704
- Hosting: cPanel, WP Engine, Kinsta, SiteGround, Hostinger, Automattic, Wordfence, Weird Gloop
- Impact and law: Google "This site may be hacked", Google Search Console security issues, Malaysia's PDPA (Amendment) Act 2024, Act A1727, with its commencement dates, Singapore PDPA ss 26B–26D and 48J, Notification of Data Breaches Regulations 2021, PDPC advisory guidelines
- Usage and architecture: WordPress.org PHP statistics, WordPress requirements, WordPress Site Health, Next.js static exports, an example of headless CMS security advisories
Free consultation
Not sure whether your website is exposed to PHP2Shell?
Tell us your website address. We will check which PHP version it reports and what that does and does not tell you, explain your options in plain English, and quote a patch or a WordPress migration in RM or SGD.

