v1.0

v1.0

/

/

PHP2Shell: two critical PHP vulnerabilities are being exploited — what to do now

PHP2Shell: two critical PHP vulnerabilities are being exploited, what to do now

PHP2Shell: two critical PHP vulnerabilities are being exploited, what to do now

PHP has patched two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can allow unauthenticated remote code execution. Here are the affected versions, fixed releases and immediate remediation steps.

Image

Connect your data, tools, and AI agents.

Automate complex workflows effortlessly.

Turn insights into intelligent actions.

  • Trello logo
  • Notion logo
  • Slack logo
  • Google logo
  • Salesforce logo
  • Zapier logo
  • Linear logo
  • Intercom logo
  • Dropbox logo
  • Jira logo
  • Google Drive logo
  • HubSpot logo
  • Google Sheets logo
  • HubSpot logo
  • Google Sheets logo
  • HubSpot logo
  • GitHub logo
  • Dropbox logo

Adil Harcha

Two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, can allow unauthenticated remote code execution under certain conditions. The PHP project shipped emergency security releases on October 21, 2026 and is urging users to update immediately.

Search interest around terms such as “PHP vulnerability”, “critical PHP flaw” and “PHP2Shell” has surged as details of the bugs and exploitation attempts spread. But the operational takeaway is straightforward: if your infrastructure serves web requests with PHP, verify the runtime version and patch now.

The PHP project says both flaws are rated CVSS v4.0 9.2 and can enable unauthenticated remote code execution. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

What happened with PHP2Shell?

On October 20, the PHP security team took the unusual step of warning users in advance that two critical security issues would be fixed the following day, without immediately disclosing the full technical details. Administrators were told to prepare for urgent upgrades.

On October 21, PHP published the patched releases and identified the two vulnerabilities:

  • CVE-2026-109618: an out-of-memory handling flaw can leave internal request data partially initialized. During cleanup, PHP may then treat invalid state as legitimate.

  • CVE-2026-109619: request-owned internal state can outlive the memory backing it, creating a stale-state / use-after-free condition that may be triggered by a later request handled by the same worker.

In both cases, the impact can be severe: a remote, unauthenticated attacker may be able to execute code with the privileges of the web process.

Which PHP versions are affected?

For PHP branches still maintained by the project, the fixed versions are:

PHP branch

Vulnerable versions

Fixed version

PHP 8.5

8.5.11 and earlier

8.5.12

PHP 8.4

8.4.26 and earlier

8.4.27

PHP 8.3

8.3.35 and earlier

8.3.36

PHP 8.2

8.2.34 and earlier

8.2.35

Google Cloud states that the broader vulnerable range extends from PHP 5.4 through 8.5.11. PHP 8.1 and older branches are end-of-life upstream, so the PHP project is not publishing equivalent fixes for those releases. Some Linux distributions and commercial long-term-support providers may still backport patches.

If your environment is still on an end-of-life PHP branch, the right response is not only to hunt for a one-off patch. You should also plan a move to a supported branch.

Who is exposed: PHP-FPM, mod_php, php-cgi, FrankenPHP and LiteSpeed?

PHP’s advisory says all PHP installations serving web requests should be considered at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed.

PHP considers the risk especially high for Apache mod_php, where an unauthenticated exploit path has been demonstrated before application code runs. That means an application can be vulnerable even if its framework, CMS or plugin layer is fully patched.

Are the PHP2Shell vulnerabilities being exploited?

This is the part that requires the most careful wording.

Multiple security organizations have reported real-world exploitation attempts and scanning activity. Amazon Threat Intelligence said it detected attempts as early as October 17, 2026, several days before the public fixes. Other security researchers have also reported scanning and attempted exploitation after disclosure.

That does not mean every observed request resulted in a successful compromise. What matters for defenders is that these are no longer purely theoretical bugs: exploit research is public, proof-of-concept material exists, and internet-facing PHP systems are being probed.

Why these PHP vulnerabilities are especially serious

The severity comes from both the impact and the layer being affected.

These bugs sit deep in the PHP runtime itself: memory management, request processing and worker state. An application can therefore be exposed without a vulnerable business route, WordPress plugin or application dependency being involved.

That is also why application-level controls are not enough. PHP explicitly says there are no complete mitigations that can replace installing the patched releases.

What should teams do now?

The remediation priorities are short and concrete:

  1. Inventory the PHP versions actually running across servers, containers and build images.

  2. Update immediately to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, depending on your branch.

  3. Rebuild and redeploy containers that embed a vulnerable PHP runtime instead of only restarting workloads.

  4. Check forgotten environments: staging, old subdomains, admin tools, internal panels and secondary services.

  5. Review logs and compromise indicators if the service was internet-facing before patching.

  6. Move off end-of-life PHP branches when no reliable vendor backport exists.

The UK National Cyber Security Centre is also urging organizations to act immediately and says systems that cannot be remediated quickly should be evaluated for temporary removal from public exposure.

Are WordPress, Drupal or Laravel directly vulnerable?

The vulnerabilities are not in WordPress, Drupal, Laravel or any particular plugin. They are in PHP itself.

A site built with one of those platforms can still be exposed if it runs on a vulnerable PHP version and configuration. Updating the CMS or framework alone does not replace updating the PHP runtime.

What this means for modern infrastructure teams

The PHP2Shell disclosure is a useful reminder that modern stacks remain only as secure as the infrastructure layers beneath the application. Containers, runtimes, reverse proxies, operating-system packages, hosting panels and embedded services can all introduce material risk even when application code itself is clean.

The same principle applies to AI and agentic systems. Strong model permissions, observability or agent isolation do not cancel out a critical flaw in a network-exposed dependency. Security still starts with accurate asset inventory, dependency visibility and the ability to patch quickly.

PHP2Shell: what to remember

  • Two critical vulnerabilities: CVE-2026-109618 and CVE-2026-109619.

  • Severity: CVSS v4.0 9.2.

  • Impact: possible unauthenticated remote code execution.

  • Patched releases: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

  • Internet-facing PHP installations are at risk, with particularly high exposure for mod_php.

  • Real-world exploitation attempts have been reported.

  • PHP says no complete mitigation replaces patching.

If your infrastructure runs PHP, the priority is not to debate whether your application “looks exploitable.” First identify the runtime version and move to the patched release for your branch.

Frequently asked questions

What is PHP2Shell?

PHP2Shell is the name used for two critical PHP runtime vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can allow unauthenticated remote code execution under certain conditions.

Which PHP versions fix the October 2026 vulnerabilities?

The PHP project fixed the vulnerabilities in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

Is WordPress affected by PHP2Shell?

The flaw is in PHP rather than WordPress itself. A WordPress site can still be exposed if it runs on a vulnerable PHP version.

Are PHP2Shell attacks happening in the wild?

Security organizations have reported scanning and exploitation attempts targeting the vulnerabilities, but not every observed attempt should be treated as a successful compromise.

Can PHP2Shell be mitigated without updating PHP?

PHP says there are no complete mitigations that replace patching. Upgrading to a fixed version remains the primary remediation step.

Related Resources

Related Resources

An open-source foundation for building your own agents.

ApowerB is the open-source agentic framework developed by thaink² to build, orchestrate, and operate AI agents on your own stack, using your models, tools, and data.

What if your next analysis were ready before your next meeting?

Show us your environment and a use case. See how thaink² can query, monitor, and act on your data.

Our mission
Our vision

Move from data you look at to data that works continuously for your business.

We believe the next generation of Data platforms will do more than show what happened. They will monitor, explain, anticipate, and prepare decisions before some questions even need to be asked.

Image

What is an Agentic Data Platform?

An Agentic Data Platform uses specialized AI agents to work with enterprise data. Unlike a static dashboard or a simple chatbot, agents can explore multiple sources, run analyses, generate visualizations, produce deliverables, and execute recurring missions.

What’s the difference between Proactive Mode and Exploratory Mode?

In Exploratory Mode, the user asks a question and thaink² runs the analysis on demand. In Proactive Mode, a mission is defined in advance: agents monitor the data based on a set schedule or specific conditions and automatically deliver the relevant results.

Do I need to know SQL to use thaink²?

Not for business use cases. Users can ask questions in natural language and get analyses, tables, charts, and dashboards without writing SQL queries themselves.

What data sources can thaink² connect to?

The platform is designed to work with the systems already in place across your organization: databases, data warehouses, ERP, CRM, APIs, files, and document repositories. Available connectors depend on your environment and use case.

What types of outputs can the agents produce?

Depending on the agent and use case, outputs can include analyses, tables, charts, dashboards, forecasts, alerts, summaries, and reports. The goal is to deliver an actionable result, not just a text response.

Can thaink² be deployed on our own infrastructure?

thaink² supports deployment options designed around enterprise requirements, including organizations that need greater control over their infrastructure, models, and data. Our teams help define the architecture that best fits the project.

Which part of the thaink² ecosystem is open source?

ApowerB is the open-source agentic framework developed by thaink². It enables technical teams to build and operate their own agents, with support for RAG, Text-to-SQL, multi-LLM setups, and APIs.

How do I get started with thaink²?

The easiest way to start is with a concrete use case: reporting, analysis, forecasting, document search, or monitoring. An initial session helps define the available data, expected outcomes, and the most suitable deployment approach.

Join our Discord community

Connect with builders, Data teams, and AI practitioners. Share ideas, get technical help, discuss agentic architectures, and follow the latest developments around ApowerB.

Our newsletter (Soon)

Data that takes action, straight to your inbox.

Field insights, agentic architectures, benchmarks, use cases, and the latest from ApowerB. Only what’s worth reading.

© 2026 thaink² SAS — All rights reserved

An open-source foundation for building your own agents.

ApowerB is the open-source agentic framework developed by thaink² to build, orchestrate, and operate AI agents on your own stack, using your models, tools, and data.

What if your next analysis were ready before your next meeting?

Show us your environment and a use case. See how thaink² can query, monitor, and act on your data.

Our mission
Our vision

Put the power of data in the hands of decision-makers.

Today, too many business questions still depend on an export, a dashboard, or the availability of a Data team. thaink² changes that by letting teams query their data directly, while agents handle the analysis and recurring work.

Image

What is an Agentic Data Platform?

An Agentic Data Platform uses specialized AI agents to work with enterprise data. Unlike a static dashboard or a simple chatbot, agents can explore multiple sources, run analyses, generate visualizations, produce deliverables, and execute recurring missions.

What’s the difference between Proactive Mode and Exploratory Mode?

In Exploratory Mode, the user asks a question and thaink² runs the analysis on demand. In Proactive Mode, a mission is defined in advance: agents monitor the data based on a set schedule or specific conditions and automatically deliver the relevant results.

Do I need to know SQL to use thaink²?

Not for business use cases. Users can ask questions in natural language and get analyses, tables, charts, and dashboards without writing SQL queries themselves.

What data sources can thaink² connect to?

The platform is designed to work with the systems already in place across your organization: databases, data warehouses, ERP, CRM, APIs, files, and document repositories. Available connectors depend on your environment and use case.

What types of outputs can the agents produce?

Depending on the agent and use case, outputs can include analyses, tables, charts, dashboards, forecasts, alerts, summaries, and reports. The goal is to deliver an actionable result, not just a text response.

Can thaink² be deployed on our own infrastructure?

thaink² supports deployment options designed around enterprise requirements, including organizations that need greater control over their infrastructure, models, and data. Our teams help define the architecture that best fits the project.

Which part of the thaink² ecosystem is open source?

ApowerB is the open-source agentic framework developed by thaink². It enables technical teams to build and operate their own agents, with support for RAG, Text-to-SQL, multi-LLM setups, and APIs.

How do I get started with thaink²?

The easiest way to start is with a concrete use case: reporting, analysis, forecasting, document search, or monitoring. An initial session helps define the available data, expected outcomes, and the most suitable deployment approach.

Join our Discord community

Connect with builders, Data teams, and AI practitioners. Share ideas, get technical help, discuss agentic architectures, and follow the latest developments around aPowerB.

Our newsletter (Soon)

Data that takes action, straight to your inbox.

Field insights, agentic architectures, benchmarks, use cases, and the latest from ApowerB. Only what’s worth reading.

© 2026 thaink² SAS — All rights reserved