➤  MELBOURNE | SYDNEY | BRISBANE | PERTH | CANBERRA | AUSTRALIA-WIDE  📞 1300 650 063

PHP2Shell: Critical PHP Vulnerabilities and What Australian Businesses Should Do Now

If your business runs a website, customer portal or web application, there is a good chance PHP is running underneath it. On 21 October 2026, that became a serious problem.

The PHP project released emergency security updates for two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, now known as PHP2Shell. Both can allow an attacker to take control of a vulnerable web server without a password, a user account or any user interaction. At Cyber Forte, we help Australian businesses find and fix exactly these kinds of weaknesses through CREST penetration testing, and PHP2Shell is one of the most significant web server issues we have seen in years.

“Patching closes the door. It doesn’t tell you whether someone walked through it before you closed it.”

This guide explains what PHP2Shell is, who is affected, the real business risk, the five steps to take now, and why regular testing is the best defence against the next vulnerability like it.

Not sure where to start? Talk to our team about a PHP2Shell exposure check.

What Is PHP2Shell and Why Does It Matter?

PHP2Shell is the name given to two memory-safety flaws in the PHP runtime itself, not in any particular application or plugin. The PHP security team rates both at CVSS v4.0 9.2 (Critical).

CVEType of flawImpact
CVE-2026-109618Memory corruption when PHP runs out of memory while a request is only partly set upUnauthenticated remote code execution; can also expose data from other requests
CVE-2026-109619Use-after-free caused by leftover state from a previous requestUnauthenticated remote code execution and memory disclosure

In plain terms, an attacker can send a specially crafted web request that corrupts PHP’s memory and takes control of the process serving your website. From there, they can run their own code with the same permissions as your web server.

Researchers traced the earliest affected code back to PHP 5.4, so the weakness has existed for more than a decade. PHP has been clear that there is no complete workaround: updating is the only safe fix.

Who Is Affected?

According to PHP, every installation that serves web requests is at risk. That includes Apache with mod_php, PHP-FPM (common with Nginx), php-cgi, FrankenPHP and LiteSpeed.

PHP branchAffected versionsFixed version
PHP 8.5Before 8.5.128.5.12
PHP 8.4Before 8.4.278.4.27
PHP 8.3Before 8.3.368.3.36
PHP 8.2Before 8.2.358.2.35
PHP 7.4 to 8.1AllNo official release; source backports only
PHP 7.3 and olderAllEnd of life; no fix from the PHP project
  • Apache mod_php is the highest risk. Researchers showed a single unauthenticated request can trigger the attack before any application code runs.
  • Older PHP versions are a serious concern. Many businesses still run PHP 7.x or 8.1 on legacy systems. These need a vendor-supplied fix or an upgrade to a supported version.
  • Managed hosting doesn’t mean managed risk. Your hosting provider, developer or software vendor may need to apply the update, and you should confirm they have.
  • PHP is often hidden. It can sit inside third-party products, appliances, containers and internal tools, not just your public website.

Running WordPress, Joomla, Drupal or Magento?

These platforms all run on PHP. Even if your CMS and plugins are fully up to date, your site is exposed if the server underneath runs an affected PHP version. Ask your host which version you are on.

Why PHP2Shell Is a Business Risk, Not Just an IT Issue

A compromised web server is rarely where an attack ends. For Australian businesses, the consequences can include:

  • Data theft: customer records, credentials and databases connected to your website or application.
  • Credential exposure: the memory disclosure aspect means passwords, session tokens and API keys from other users’ requests could leak.
  • Ransomware and wider compromise: a breached web server can become a foothold into your internal network and cloud environment.
  • Downtime and reputational damage: defaced websites, disrupted online services and loss of customer trust.
  • Regulatory obligations: a breach involving personal information may trigger mandatory reporting under the Notifiable Data Breaches scheme.

How fast this moved

Advance notice was posted on 20 October, a proof-of-concept video leaked that same evening, and Cloudflare and watchTowr reported exploitation attempts within hours of the official release on 21 October. In the Netherlands, several government services, including DigiD, were taken offline as a precaution. The window between disclosure and attack is now measured in hours, not weeks.

What Your Business Should Do Now

  1. Identify your exposure. List every website, web application, API, server, container and third-party product that uses PHP. Start with internet-facing systems, and note any running Apache with mod_php.
  2. Patch immediately. Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, matching your branch. If you use a Linux distribution, managed host or appliance, apply the vendor’s patched package. Restart every PHP worker and service afterwards so the fix takes effect.
  3. Investigate potential compromise. Patching doesn’t undo a breach that may already have happened. Review web server, application and authentication logs, look for unexpected processes, files, accounts and outbound connections, and rotate credentials and secrets your PHP applications handle.
  4. Contain what can’t be patched straight away. Escalate the risk and consider isolating affected internet-facing systems until they can be safely remediated.
  5. Verify and document remediation. Confirm the deployed PHP version on every system, validate the fix with testing, assess residual risk and keep evidence of what was done and when.

Interim measures if you can’t patch today

PHP lists the following as reducing exposure, but none of them makes a system safe:

  • Set memory_limit=-1 in a way applications cannot override (CVE-2026-109618).
  • Set session.upload_progress.enabled=0, and on PHP 8.5 also fatal_error_backtraces=0 (CVE-2026-109619).
  • Restart all PHP workers after any change.

A web application firewall can help as a stopgap, but Cloudflare has already seen attackers adjusting payloads to evade rules. It is not a substitute for patching.

Find out if your servers are exposed to PHP2Shell

Book a free 30-minute consultation with a Cyber Forte consultant. We’ll help you identify where PHP is running across your internet-facing systems, confirm whether it’s vulnerable and outline a practical path to remediation.

The Bigger Lesson: Vulnerability Management and Regular Testing

PHP2Shell shows how a system that was secure yesterday can be exposed today. Nothing changed in affected applications; the risk arrived overnight with a newly disclosed flaw in the software underneath them.

With approximately 40,000 new vulnerabilities identified globally in 2025 alone, point-in-time security doesn’t last. The businesses that responded fastest to PHP2Shell had three things in place:

  • An accurate asset inventory, so they knew exactly where PHP was running.
  • A process for prioritising critical vulnerabilities, so patching started within hours rather than weeks.
  • The ability to verify remediation, so they could prove the fix worked rather than assume it.

Regular penetration testing supports all three. It finds outdated software, misconfigurations and exposed services that automated scanners can miss, and confirms that patches have been applied effectively. It also supports frameworks such as ISO/IEC 27001, SOC 2, PCI DSS and the Essential Eight, all of which expect security controls to be tested.

We recommend penetration testing at least annually, and after any major system change.

Why Australian Businesses Choose Cyber Forte

As a CREST Approved Member, Cyber Forte is independently accredited to the highest standard for penetration testing services. Our CREST-certified, OSCP-qualified testers help Australian businesses respond to vulnerabilities like PHP2Shell and stay ahead of the next one.

  • PHP2Shell exposure check: we identify where PHP is running across your internet-facing systems and whether it’s vulnerable.
  • Remediation verification: independent testing to confirm patches have been applied and are effective.
  • Penetration testing: external and internal networks, web applications, APIs, cloud, mobile and wireless, with a prioritised report and a retest to confirm every fix.
  • Incident response: if you suspect a compromise, our digital forensics and incident response team can help you investigate and contain it.

Don't Assume You're Already Patched

PHP2Shell is serious, but it is manageable. The businesses that come through it well are the ones that know where PHP is running, patch quickly, check for signs of compromise and verify the fix rather than assume it.

Your hosting provider or development team may well have this in hand, but “may” isn’t good enough for a vulnerability being exploited within hours of disclosure.

Confirm your exposure today.
Request a consultation with Cyber Forte about PHP2Shell.

Frequently Asked Questions

PHP2Shell is the name for two critical vulnerabilities in the PHP runtime, CVE-2026-109618 and CVE-2026-109619, disclosed on 21 October 2026. Both can allow an unauthenticated attacker to run code on a vulnerable web server.

Security firms Cloudflare and watchTowr have reported exploitation attempts against both vulnerabilities since 21 October 2026. PHP has not confirmed successful exploitation, but attempts are underway, so treat this as urgent.

WordPress runs on PHP, so if your server runs an affected PHP version, your site is exposed regardless of how up to date WordPress and its plugins are. Check with your host which PHP version is in use.

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Update to the fixed version for the branch you are running, then restart all PHP services.

A WAF can reduce risk temporarily, but attackers have already been seen modifying payloads to evade WAF rules. Patching is the only complete fix.

The PHP project no longer issues official releases for these versions. Check whether your Linux distribution or long-term support vendor has backported a fix, or upgrade to a supported PHP version.

Patching closes the vulnerability, but it doesn't remove an attacker who got in beforehand. Review logs for signs of compromise, restart PHP services, rotate exposed credentials and verify the fix through testing.

Yes. As a CREST Approved Member, we can identify where PHP is running across your internet-facing systems, confirm whether it is vulnerable, verify remediation and investigate any signs of compromise. Book a free 30-minute consultation.

Get your PHP exposure checked before attackers find it

Don’t wait for an attacker, a customer or a regulator to find the gap first. Book a free 30-minute consultation with a Cyber Forte consultant and get a clear view of your exposure and a practical remediation plan, with no obligation.

Picture of Harshang Shah
Harshang Shah

Harshang holds a Master of Science (MSc) in Computer Systems Security (UK) and maintains key industry certifications including ISO 27001 Lead Auditor, CISA, PCI DSS ISA, and CEH. He is an active member of AISA, ISACA, and the Cyber Leadership Hub, contributing to the advancement of the cybersecurity profession.

Ready to strengthen your cyber security?

Cyber Forte helps Australian organisations with certification, compliance and security. Book a free 30-minute consultation with our team.

Share

On this page

Topics

SOCI & Critical Infrastructure

Penetration Testing

AI & Cyber Security

Why Cyber Forte

100+

Australian organisations protected

100%

ISO 27001 first-attempt success rate

Melbourne · Sydney · Brisbane · Perth · Canberra