| Security | Craig Evans

PHP2Shell: The PHP Flaw That Took cyber.gov.au Offline

PHP2Shell: The PHP Flaw That Took cyber.gov.au Offline

On the night of 21 October, cyber.gov.au — the website of the Australian Cyber Security Centre — went offline. It wasn’t hacked. It was taken down on purpose, along with other federal websites, while staff dealt with a pair of critical flaws in PHP, the programming language that runs a large share of the world’s websites. The flaws have been nicknamed PHP2Shell, and if your business has a website, there’s a fair chance they affect you.

What Is PHP2Shell?

PHP2Shell is the name given to two vulnerabilities, CVE-2026-109618 and CVE-2026-109619. Each has a severity score of 9.2 out of 10. Both can let an attacker on the internet run their own code on a web server, without needing a username or password.

In plain English, the bugs are in how PHP cleans up memory between web requests:

  • CVE-2026-109618 happens when PHP runs out of memory partway through setting up a request. Half-built data is left behind, and the clean-up code trusts it anyway.
  • CVE-2026-109619 happens when data from one visitor’s request outlives the memory it points to, and the next request handled by the same PHP process acts on those leftovers.

Researchers have also shown the flaws can leak the contents of server memory, which can include passwords, session tokens and API keys.

The important point for business owners is that this is a flaw in PHP itself, not in a plugin or theme. WordPress, Drupal, Joomla, Magento and GovCMS, the Drupal platform behind many federal government sites, all run on PHP. Updating WordPress alone does not fix it. The PHP version on the server has to be updated.

How It Unfolded

The bugs were found by the security firm Calif, working with AI tools through OpenAI’s “Patch the Planet” programme. Cloud security company Wiz found them separately a few weeks later. Both reported them privately to the PHP project in August, and public disclosure was planned for 22 October.

That plan didn’t survive. Details leaked on social media on 20 October, and PHP rushed out emergency fixes the next day. Security firm watchTowr saw attacks against its decoy servers from 21 October, and Cloudflare reported attack traffic too. On 26 October the US Cybersecurity and Infrastructure Security Agency (CISA) added CVE-2026-109618 to its catalogue of vulnerabilities known to be exploited.

Things have since got worse. Security firm Dream reported a campaign that chained PHP2Shell with a Linux kernel flaw (CVE-2026-46300, “Fragnesia”) to take full control of 25 servers in the US and Asia, including servers linked to the US government.

Why So Many Sites Are Exposed

The numbers are big. Qualys found around 167 million PHP installations in its data, and about 71% of those with a known version were on releases that no longer get security updates. Only around 199,000 were patched in the first 12 hours.

The flaws reach back a long way. OpenAI President Greg Brockman said the bug had been sitting in PHP for 14 years. Every supported version is affected, and so are older ones going back to PHP 5.

What You Should Do Now

  1. Find every PHP system you have. Your website is the obvious one, but also check staff portals, booking systems, intranets, old marketing sites and anything a developer set up years ago. Ask your web host or developer if you’re not sure.
  2. Update PHP. The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. If your server gets PHP from a Linux distribution such as Ubuntu or Debian, install their patched package. They may keep the old version number, so check their security notice.
  3. Restart PHP afterwards. Patched files don’t protect you until the running PHP processes (PHP-FPM or Apache) are restarted.
  4. Deal with older versions. PHP 7.4, 8.0 and 8.1 only have limited back-ported fixes, and there is no fix at all for PHP 7.3 and older. Those sites need upgrading. Until then, take them off the internet or put them behind a firewall.
  5. Use the stop-gap if you can’t patch today. PHP’s interim advice includes setting session.upload_progress.enabled=0 in php.ini or your server settings (not in application code), then restarting PHP. That reduces the risk but doesn’t remove it.
  6. Assume secrets may be exposed. If an unpatched server was on the internet after 20 October, change the database passwords and API keys it holds, and check for unfamiliar files or admin accounts.

If you use managed hosting, don’t assume it’s been done. Ask your host directly which PHP version your site is running, and when it was patched.

The Bigger Picture

PHP2Shell follows the wp2shell WordPress flaw we covered in July, and it shows the same pattern: AI helps researchers find deep, old bugs, details spread fast, and attackers move within hours. The time between a flaw being announced and being exploited is now measured in hours, not weeks.

How Electriclatte Can Help

If you’re not sure which PHP version your website runs, or who is responsible for patching it, we can find out quickly. Our cybersecurity services include website and server reviews, emergency patching and ongoing patch management, so the next one of these doesn’t catch you out. Get in touch today.

Sources

Photo by Ilya Pavlov on Unsplash.