Cybersecurity, Threat Intelligence

A Critical Flaw in PHP: What Your Business Needs to Do Today

Table of Contents

What is PHP?

Firstly, PHP (originally Personal Home Page) is a server-side scripting language built and widely used for web page development.

PHP runs code on a web server (on within a user browser) so when a user requests a page, the server executes the PHP code and fetches data from other sources e.g. a database and sends an HTML response back to a browser. The user never actually sees the PHP, just the returned result.

What Is the PHP2Shell Vulnerability and Why Does It Matter?

  • PHP embargoed two critical PHP vulnerabilities (listed at the start of this article) which were only published on availability of vendor security patch updates on day of notification on 21/10/2026.
  • Research uncovered multiple critical vulnerabilities in core PHP prior to this date and release, which affected over 70% of all websites in the world. Successful exploitation could allow attackers to take control of affected servers, steal sensitive data, and deface the websites running on them.
  • PHP, and also incorporated via WordPress and other template platforms, is a backbone of the web: it’s the programming language powering WordPress, Joomla, Drupal, Wikipedia’s MediaWiki, and many others.
  • These PHP vulnerabilities include memory disclosure and unauthenticated remote code execution in PHP itself, independent of the application running on top of it, putting every affected website in immediate risk.
  • Every PHP version released in the last decade is affected by at least one of these vulnerabilities, going back to version 5.4. Attackers can exploit them remotely, in some cases fairly easily. Immediate patching is strongly advised.
  • There are significant number of users operating unpatched 5.x, 6.x and 7.x versions of PHP which are affected by this issue.
  • On October 21, 2026, PHP released the patch fixing multiple memory-safety vulnerabilities in the core engine. They also publicly acknowledged the existence of the vulnerability.
  • Frontier AI models have enabled the chaining of multiple vulnerabilities in PHP to enable active exploitation.

What Should Boards Do About the PHP Vulnerability?

One of the two bugs (CVE-2026-109618) actually dates back to 2024 and has been very complex to solve. PHP is an open-source organisation and completed a major external security review in 2024 which is when the issue was first identified.

It presented the development team with conflicting challenges in terms of scale of architectural changes required impacting many 3rd party extensions and versus the denial of service and compromise potential.

The change impact was deemed significant and as no known exploitation path to remote code execution could be identified at the time, the development of a fix was not viewed as a critical priority.

A large number of websites operate with various versions of PHP.

It is a widely adopted and excellent technology. The scope of the issue as of 22/10/2026 from VirusTotal analysis highlights 5.1 million active IP addresses operating PHP. Only the latest version 8 is a supported PHP instance so only these (after version 8.2 to be exact) will receive the published updates to resolve CVE-2026 109618 and 109619.

The most recent scan highlighted only 85,115 PHP instances were operating at this level whilst 50.3% were on unsupported PHP versions.

In 2026, the emergence of Generative AI has enabled code review at scale and this is not and will not be the last.

A cybersecurity researcher at Calif reported the bugs to PHP on 11/08/2026. This was also validated by Wiz and Trail of Bits who confirmed AI had created a valid exploit path to these enabling remote code execution. Resolving the PHP issues immediately became a top priority as these are critical vulnerabilities.

To contain exploitation, an embargo via a coordinated disclosure process was applied until a fix had been developed, tested and was ready for release given the scale of update requirements.

Given the volumetrics involved in this issue, containing awareness of this whilst minimising exploitations has been very challenging. To everyone’s credit, it has not seen widespread exploitation until wider awareness.

Distributors received the security updates in advance of general release as part of the coordinated disclosure to expedite update processes.

  1. For any Board, firstly get your PHP updated and maintain it now. Today.
  2. Secondly, in over 50% of discussions we have with small businesses around identified external exposure issues, the businesses take no action. The technical debt builds. Third parties and developers explain there is limited risk or no known exploitable path or it will involve significant backward compatibility rework. As AI is changing this landscape very quickly, this is no longer an acceptable response for any Board.
  3. With over half of all PHP instances operating at an unsupported level, when critical vulnerabilities are identified and exploited at speed, technical debt creates greater risk and exposure. So the Board Question is: What is the impact to your business of taking your offline or a compromised website vulnerability?

How Much Damage Could a PHP Attack Cause?

The Blast Radius is the scope of damage a compromise prior to containment. The exploitation of these vulnerabilities which have architecturally existed in multiple PHP versions for over a decade is now enabled at speed by AI. This statement applies equally to nearly every technology stack utilised.

  • The Scope: Nearly every PHP version is affected by at least one of these issues, including releases dating back to PHP 5.4. These vulnerabilities can allow unauthenticated attackers to execute code on affected servers or read sensitive process memory. The issue centres on the ability to execute additional remote commands remotely in stale memory routines.  That memory may contain passwords, authentication tokens, API keys and certificates belonging to other requests or the server itself.
  • Connected Technologies: PHP is the programming language behind much of the web, powering WordPress, Drupal and Wikipedia, the software that runs associated connections.
  • The Blast: The PHP2Shell as this is currently known, illustrates how AI can change the practical exploitability of longstanding vulnerabilities. Building the exploit required chaining multiple flaws and adapting to each target’s memory layout through repeated testing and debugging. Frontier models have been critical to making this process practical, enabling bad actors to develop and adapt working exploits across multiple applications in hours. As the time and expertise required for this work decrease, complexity no longer provides a meaningful barrier to protection, changing how defences must change and respond faster to these newly identified vulnerabilities in practice.

CloudGuard Threat Research would like to thank the PHP team, Wiz, Trail of Bots, Recorded Future, Calif and OpenAI for their work on discovery, coordination and patch verification. OpenAI and Calif also published blogs containing details on the vulnerability, its history, technical details, and insight into the disclosure process. PHP posted as well.

We’d also like to express our sincere gratitude towards Automattic, Akamai, AWS, Cloudflare, Fastly, Google, Imperva, Microsoft, Vercel, and many others, for helping prepare guidance and out-of-the-box mitigations for customers who cannot apply the patch immediately.

How Do CVE-2026-109618 and CVE-2026-109619 Work?

All of the disclosed vulnerabilities are memory-safety issues that stem from bugs in how PHP handles fatal errors while processing requests, particularly out-of-memory errors. 

These bugs can leave a corrupted internal PHP state behind after a request ends unexpectedly. A later request or worker can reuse that stale state, leading to memory disclosure or corruption.

Below you can find a table that demonstrates what type of impact was demonstrated by each of the bugs we reported to PHP. 

The applications listed below are targets we chose for the RCE demonstrations. They are representative targets – exploitation does not require one of these CMSs, as the vulnerable code is in PHP itself.

Article content

While this article covers only four instances of exploitable bugs (grouped under two CVEs) that follow this problematic pattern, there are other tracked, and likely untracked, variants of this issue in the PHP codebase.

These variants have different requirements for exploitation and can lead to different types of impact. In any case, the patch provided by the PHP team fixes the issue at its core and eliminates all variants in the patched release.

Which Websites Are Affected: WordPress, Drupal, Joomla and More

These vulnerabilities were combined into a single exploit script, php2shell, and demonstrated that it could execute code remotely without authentication on deployments of WordPress (wordpress:latest), Drupal (drupal:latest), and Joomla (joomla:latest), using their latest container images at the time of testing.

These platforms illustrate the impact, but the vulnerabilities are in PHP itself. Exploitation does not depend on a flaw in the application’s code. Separately, Wiz demonstrated that attackers could read sensitive data from the PHP process’s memory, including passwords, tokens, and API keys, without needing to achieve remote code execution.

Summary: What the PHP2Shell Vulnerability Means for Your Business

Frontier AI models have made it practical to chain these flaws into a working attack in hours rather than months, and that pattern will repeat across other technologies. Only currently supported PHP 8 releases receive the fix, yet more than half of PHP websites still run unsupported versions. For those organisations, outdated software is now a direct business risk rather than a technical inconvenience.

Update PHP today, and then make sure it stays updated.

“There’s no known way to exploit it” is no longer an acceptable reason to delay a fix. If you’re unsure which versions of PHP your websites and systems are running, CloudGuard can help you find out and close the gap fast.

PHP2Shell won’t be the last. See what attackers see first.

More than half of PHP websites run unsupported versions, and AI now turns old flaws into working exploits in hours. Our free External Exposure Analysis maps your public-facing attack surface, including domains, web servers, open ports and known vulnerabilities in public-facing components.

Our security experts then walk you through the high and critical risks and how to close them. It’s non-intrusive, with no strings attached, and we run a limited number each month.

Author: Matt Lovell
Share:
Author: Matt Lovell
Share:

Related Resources

Cat photo labelled "This is an image of a DOG" that an AI describes as a dog, with the text "Now imagine it's an invoice"
How to Prevent Prompt Injection: What It Is & How It Works
TL;DR Prompt injection is an attack where untrusted text, either typed by a user or hidden in content an AI application reads, is treated by a large language model (LLM) as instructions. This can make the model ignore its rules or take actions it shouldn’t. Prompt injection is ranked the...
Microsoft Purview licence guide: Is E5 the right choice for your small business?
If you’re trying to work out which Microsoft Purview licence you actually need (and what it’s going to cost you if you get it wrong), you’re not alone. It’s one of the most common questions our team fields, and the answer is rarely as straightforward as Microsoft’s licence table makes...
Who Owns Your Data? No CISO, No Problem: Microsoft Purview for SMBs
AI Cybersecurity: 8 Things Your IT Teams Need to Know In 2026
AI Cybersecurity: 8 Things Your IT Teams Need to Know In 2026 AI is changing how attackers work and how organisations manage risk. When deciding how your organisation should embrace AI, cybersecurity should be top of the consideration list. For IT leaders, a priority is control of AI tools that...
Microsoft Purview Licensing: The breakdown SMBs actually NEED
Microsoft Purview Licensing Explained: Business Premium vs E3 vs E5 If you’ve looked into Microsoft Purview and come away confused about which license you actually need, you’re not alone. It’s the single biggest blocker CloudGuard sees when SMBs and mid-sized organisations start a data governance project, not the technology, the...
Microsoft Project Perception, Explained: Why Multi-Model Security Changes Everything
Why Multi-Model Security Changes Everything  Six years building an agentic SOC analyst (ANSEL) teaches you something quickly: more data is critical but not the answer. Better understanding through context of what it means is.   Microsoft Project Perception is built on exactly that insight. It’s not another security product. It’s a different way of thinking about how AI should reason, with context, consequence, and...
A glowing vendor evaluation checklist on a dark purple background
Why Your Vendor Evaluation Process Is Failing You (do this BEFORE YOU SIGN)
Most vendor evaluation processes are built to survive procurement, not to protect you eighteen months after go-live. Here’s the gap almost nobody catches before signing. Outlining The Problem The majority of security technologies need 90 days just to establish an accurate behavioural baseline and fair comparison. Please remember your existing...
two men talking on a podcast posted on linkedin with a red arrow pointing towards a deepfake
Why Social Engineering Always Works: How Hackers Use Phishing & Deepfakes
We’ve all done the training, so why are attackers still getting through? Attackers no longer rely on bad spelling or suspicious links, they use AI-generated deepfakes and psychological profiling to manipulate people with astonishing precision. By exploiting the brain’s emergency response system, they trigger fear, urgency, or authority to override...
Dark purple background with claude logo and words pro, team and enterprise.
Claude Business Security: Choosing the Right Account for SMBs
When I shared my last article, a few people got in touch asking for a more practical follow-up, specifically around how small teams can use Claude Pro without putting business data at risk. This piece goes step by step through exactly that. Understand what you’re actually adopting Claude Pro is...
Get In Touch

Our Cybersecurity Services Can Instantly Improve Your Business’ Security Posture

Complete the form to find out more about any of our one-off or managed cybersecurity services. Not seeing what you’re looking for? Our cybersecurity consultants and MXDR experts are always on-hand to provide the guidance and support you need.