PHP2Shell flaw puts New Zealand websites at risk as the NCSC urges immediate patching and a scan finds most still unpatched

In this news:

Key takeaways

  • New Zealand NCSC urges immediate patching for PHP2Shell flaws.
  • Active exploitation attempts surged globally within hours of disclosure.
  • Most scanned New Zealand sites lacked immediate evidence of a patch.

New Zealand’s National Cyber Security Centre is telling every organisation that runs a website to patch it now, after the PHP project released emergency fixes on Thursday morning for two flaws that let an attacker take over a web server without logging in. A scan of New Zealand websites on the same day found that most of those showing a PHP version had not yet installed the fix, and a third were running versions so old that no official fix exists.

PHP is the programming language behind WordPress, Drupal, Joomla and Magento, and so behind a large share of New Zealand business, council and government websites. Security researchers have given the two flaws the nickname PHP2Shell. The PHP project’s security advisory, published on 21 October, says the fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and that “All PHP users are strongly encouraged to update immediately.” The advisory says every PHP installation serving web requests is at risk, and adds that “We consider the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs.”

The NCSC’s statement on 22 October puts the stakes in plain terms. “This vulnerability could be used by an attacker to take full control of a website, web server or web service; this could include defacing or taking down websites.” It says the patch was released at 3am New Zealand daylight time and that “The NCSC recommends that organisations patch immediately.” Organisations that cannot patch straight away should consider disabling public-facing web services, the agency says. Its separate vulnerability alert, updated at 10.20am on Thursday, says “The NCSC is aware of reports of active exploitation.” The alert also warns that firewalls, edge devices and other embedded products that bundle PHP may need their own separate updates from the vendor.

Global exploitation and emergency responses

The flaws were found with help from artificial intelligence. Cloud security company Wiz says in its research write-up that its team discovered the first vulnerability on 19 August and reported both to the PHP security team on 24 August, and that “We used Wiz Atlas, Gemini 4 Argon and GPT-5.6 Sol throughout this research.” Cloudflare, the web security and content delivery company, says in its own post that Calif.io, Wiz, OpenAI and Quarkslab disclosed the vulnerabilities together, that they affect all web servers running PHP 5.4 or later, and that details leaked before the official release. “Cloudflare successfully deployed multiple mitigations for all its customers while the vulnerability was leaked before the official release date and we observed attack traffic targeting our customers,” the company says.

The scale of the attack traffic grew fast. Cloudflare chief executive Matthew Prince said in a post on X, quoted by Reuters, “In the 10 hours before it was publicly announced, across the network we saw thousands of attempts to exploit it,” and “That jumped to tens of thousands in the 45 minutes post announcement, hundreds of thousands within two hours, and millions now.” Reuters reports that Japanese companies including the brokerage Nomura, the airline ANA and East Japan Railway suspended some internet services on Thursday as a precaution, that Finland’s state IT provider had shut down government public web services the day before, and that the Dutch cyber security agency took its own site offline. Microsoft chief executive Satya Nadella told an event in Germany, “I’ve not seen anything like this in a long, long time.”

New Zealand website scans reveal wide exposure

In New Zealand the picture is quieter but not comfortable. The NCSC would not name sites, but a spokesperson told the New Zealand Herald that some websites will have been taken down to apply patches and mitigations, and that it was too early to tell the full impact. The Herald reported that major government websites remained up. The same report quoted tech consultant Adam Holt, who used AI agents to check every .nz website and found at midday on Thursday that 90 per cent had not applied the patch.

Holt’s tracker at TheColab.ai gives the detail. It checked 277,875 .co.nz domains between 8.53am and 12.45pm on Thursday with one ordinary homepage request each. Of the 19,122 sites that openly reported an exact PHP version, 9.1 per cent were on a patched release. Some 44.7 per cent were on PHP 8.1 or older, for which the PHP project ships no official release, and 33.6 per cent were on PHP 7.4 or older, which the PHP project no longer supports. WordPress made up 47.8 per cent of the sites where a platform could be identified. Hourly re-checks of the same sites since then show the patched share rising, and it stood at 15.8 per cent at the 9.21am check on Friday.

Those numbers come with a caveat the tracker itself leads with. Most sites do not reveal their PHP version at all, and many shared hosts apply a back-ported fix without changing the version number the server reports. “So this is the share we can see is patched, not a count of who is exposed,” the page says. In other words the figures show how many sites can be seen to be fixed, not how many are still vulnerable.

Expert advice and recommendations for site owners

Experts gathered by the Science Media Centre on Thursday were united on the advice. Dr Vimal Kumar, a senior lecturer in computer science at the University of Waikato, said “The good news is that the bug fixes are out, so the best advice would be to patch your systems as quickly as possible and take your website down if you can until that happens.” Dr Shawn Rasheed, a senior research software engineer at Victoria University of Wellington, said the flaws carry a severity score of 9.2 out of 10, and warned that “Applying a fix does not undo damage or remove access an attacker may have already established.” For the many New Zealand businesses that do not run their own servers, his advice was direct. “Small businesses and anyone who owns a website should contact their hosting provider or website administrator to confirm whether their services are affected and whether the necessary updates have been applied.”

Dr Farkhondeh Hassandoust, a senior lecturer in information systems at the University of Auckland Business School, said people should not read too much into a site that is down. “A website going offline does not necessarily mean it has been hacked. In some cases, temporarily shutting down a service is a sensible precaution while security teams apply the required fixes.” She also pointed to the AI angle that has made this episode different from earlier PHP scares. “The same tools that help security researchers discover hidden flaws can also help attackers exploit them.” Professor Dave Parry of Murdoch University, who spent most of his career in New Zealand, said PHP is old enough in internet terms to turn up in unexpected places, and “Site owners might not even know they are using it.”

For WordPress site owners, which means a large share of New Zealand small business sites, the fix is not a WordPress update. The WordPress project’s notice says “These vulnerabilities are not specific to WordPress and affect any server that hosts a PHP application. No WordPress update is required or planned for these issues.” It says site owners can see which PHP version their site runs under Tools, Site Health, Info and then Server in the WordPress dashboard, and that versions of PHP before 8.2 no longer receive security updates from the PHP project. The PHP advisory says the security team has published minimal source backports for PHP 7.4, 8.0 and 8.1 for people who build from source or have no long-term-support vendor, and that Linux distributions received the patches in advance.

The practical checklist for a New Zealand business is short. Ask your host, in writing, whether the PHP build serving your site has been patched against CVE-2026-109618 and CVE-2026-109619 and whether the fix is actually running. If you run your own server, update to one of the four fixed releases and restart PHP. If you are on PHP 8.1 or older, the NCSC’s advice is to consider taking the site offline until it can be moved to a supported version. And because a patch does not undo a break-in that has already happened, check logs and files for anything unusual from the past week.

Share the article:

Top Trending Cryptocurrencies on The Market

Current Price

$0.6306

7 Days
VIRTUAL 7 days: -4.58%

Market Cap

$415.7M -1.81%

24h Volume

$37.1M

Supplies

1.0B / 1.0B

Current Price

$0.1787

7 Days
FET 7 days: -8.08%

Market Cap

$413.8M 0.27%

24h Volume

$111.3M

Supplies

2.7B / 2.7B

Current Price

$0.006460

7 Days
HASH 7 days: -2.43%

Market Cap

$382.2M 1.14%

24h Volume

$1.8K

Supplies

95.0B / 100.0B

Current Price

$1.041

7 Days
No 7d data

Market Cap

$380.1M -0.71%

24h Volume

$17.5M

Supplies

365.0M / ∞

Current Price

$0.3706

7 Days
DRV 7 days: -7.03%

Market Cap

$370.4M -5.94%

24h Volume

$11.6M

Supplies

1.5B / 1.5B

Current Price

$0.05418

7 Days
SEI 7 days: -14%

Market Cap

$365.5M -2.36%

24h Volume

$68.4M

Supplies

10.0B / ∞

Current Price

$0.04453

7 Days
9BIT 7 days: +0%

Market Cap

$365.1M 5.92%

24h Volume

$8.0M

Supplies

10.0B / 10.0B

Current Price

$0.04740

7 Days
STRK 7 days: -26.07%

Market Cap

$360.3M -4.15%

24h Volume

$213.1M

Supplies

10.0B / 10.0B

Current Price

$0.07624

7 Days
Q 7 days: +207.08%

Market Cap

$359.2M -29.07%

24h Volume

$11.1M

Supplies

10.0B / 10.0B

Current Price

$0.9995

7 Days
SOFID 7 days: +0.03%

Market Cap

$357.4M 0.00%

24h Volume

$6.5M

Supplies

357.6M / ∞

Current Price

$0.000000365

7 Days
BTT 7 days: +10.26%

Market Cap

$353.0M -2.15%

24h Volume

$10.8M

Supplies

990.0T / 990.0T

Current Price

$2.014

7 Days
PENDLE 7 days: -2.9%

Market Cap

$350.4M -0.60%

24h Volume

$62.7M

Supplies

281.5M / ∞

Notifications Login to see

Today

No Notifications

↑