FinSecurionFinSecurion
Platform
Frameworks
RBI Cyber Security FrameworkSEBI CSCRFCERT-In Directions 2022DPDP Act 2023ISO/IEC 27001SOC 2PCI DSS
Who needs itTrust portalResourcesContact
Sign in
FinSecurionFinSecurionby Securion.ai

Financial cybersecurity. Clearer control, stronger confidence.

Platform

  • Requirement mapping
  • Evidence workspace
  • Remediation

Frameworks

  • RBI Cyber Security
  • SEBI CSCRF
  • CERT-In Directions
  • DPDP Act 2023
  • ISO 27001

Company

  • About
  • Who needs to comply
  • Contact
  • Privacy

© 2026 FinSecurion. All rights reserved.

Privacy PolicyTerms of ServiceContact
Back to Resources
Vulnerability Management 8 min read

PHP2Shell: Patch Your PHP Now — Two Critical RCE Flaws Under Active Attack

Two critical PHP engine flaws — CVE-2026-109618 and CVE-2026-109619, together nicknamed PHP2Shell — let an attacker run code on your server with no login. Both score CVSS 9.2, both are under active exploitation, and patching your application or plugins will not fix them. Here is what they are, how to patch, and how to tell if you were already hit.

PHP2Shell: Patch Your PHP Now — Two Critical RCE Flaws Under Active Attack
In This Article
  • What happened
  • The two flaws: CVE-2026-109618 and CVE-2026-109619
  • Why this is bigger than your application code
  • The AI accelerant — on both sides
  • How to fix it — a step-by-step response
  • How to tell if you were already hit
  • Stay in front of the next one with Securion

What happened

On 20 October 2026, technical details of two unpatched remote code execution (RCE) vulnerabilities in the PHP interpreter leaked online — ahead of their coordinated disclosure and before any fix existed. The PHP project shipped emergency patches the next day, 21 October 2026. Together the two flaws are being tracked under the nickname PHP2Shell.

Both carry a CVSS v4.0 base score of 9.2 (Critical), and both allow an unauthenticated attacker to execute their own code on a vulnerable server. Within hours of the patches landing, exploitation was observed at scale across the internet, concentrated on PHP’s session upload-progress path. Because PHP runs a very large share of the world’s websites, several public-sector and media organisations pre-emptively took sites offline while they arranged emergency fixes — a precaution that, by itself, does not mean those sites were breached.

If you operate anything that runs PHP — a CMS, a bespoke app, an internal tool, a container image — this advisory is about you until you have confirmed otherwise.

The two flaws: CVE-2026-109618 and CVE-2026-109619

Both vulnerabilities are use-after-free bugs: the engine keeps using a piece of memory after it has been freed, so stale data (or attacker-controlled data) survives into a later request handled by the same worker process. That is the root of both remote memory disclosure and remote code execution.

  • CVE-2026-109618 — upload-progress unserializer use-after-free. A flaw in PHP’s session upload progress deserialization path leads to a use-after-free that both leaks server memory (potentially exposing passwords, session tokens and API keys from other requests) and enables remote code execution. This is the path attackers are hitting first and hardest.
  • CVE-2026-109619 — fatal-error backtrace use-after-free + OPcache type confusion. A use-after-free triggered while building a fatal-error backtrace, combined with a type-confusion weakness in OPcache, gives an attacker a route to remote code execution.

“Remote code execution with no authentication” is as bad as it sounds: a successful exploit lets an attacker run commands as your web server — plant a web shell, read your database credentials, pivot inward. The memory-disclosure half of CVE-2026-109618 is just as dangerous in a quieter way, because secrets read out of memory let an attacker walk straight back in even after you patch, if you don’t rotate them.

Why this is bigger than your application code

The flaws live in the PHP engine itself, not in any one application. That has an uncomfortable consequence: your own code can be flawless and you are still exposed. Every application sitting on a vulnerable interpreter inherits the vulnerability — popular content-management and e-commerce platforms among them.

The affected code reaches back a long way. Builds from PHP 5.4 through the PHP 8 series are affected. Two takeaways follow:

  • Updating your app, theme or plugins does nothing here. The fix is the interpreter — the PHP runtime on your servers, in your containers and in your CI images. A CMS core update that does not also move the underlying PHP version leaves you exposed.
  • End-of-life PHP has no fix coming. If you are on a branch older than 8.2, there is no official patch for you — the only remedy is to move to a supported, patched branch.

The AI accelerant — on both sides

What makes PHP2Shell a signal of where security is heading is how it surfaced. Researchers used advanced AI to reason through the long, intricate sequences of steps these exploits require — work that is painstaking and easy to get wrong by hand. AI made a technically brutal class of bug practical to demonstrate.

That cuts both ways. The same capability that helps defenders find and fix a flaw helps attackers build and adapt exploits against everyone who has not yet patched. The practical effect is that the window between disclosure and mass exploitation keeps shrinking — here it was measured in hours. The old assumption that you have days or weeks to get around to patching is gone. Speed of detection and response is now the differentiator.

How to fix it — a step-by-step response

Treat this as an emergency change. In order:

  • 1. Find every PHP runtime you operate. Web servers and PHP-FPM pools, yes — but also container base images, serverless/runtime layers, CI/CD build images, developer machines and any managed hosting. You cannot patch what you have not inventoried.
  • 2. Upgrade to a patched release (or your OS vendor’s backported package), then restart PHP-FPM / your web server so every worker reloads the fixed binary and OPcache is flushed. The fixes released on 21 October 2026 are:
PHP branchPatched version
8.5.x8.5.12
8.4.x8.4.27
8.3.x8.3.36
8.2.x8.2.35
8.1.x and earlier (end-of-life)No official fix — migrate to a supported, patched branch
  • 3. If you genuinely cannot patch within the hour, mitigate — then patch anyway. As a stopgap, disable the upload-progress path that CVE-2026-109618 abuses by setting session.upload_progress.enabled = Off in php.ini (and restart). Block or rate-limit the upload-progress request pattern at your WAF/CDN. Where neither is possible, isolate the service or take it offline until it is patched — a brief outage beats a breach.
  • 4. Verify. Confirm php -v reports a patched build on every host and pool. Check that the web tier was actually restarted — a patched binary on disk does nothing while an old worker is still serving traffic.
  • 5. Assume compromise for anything that was internet-facing and unpatched after 20 October. Because CVE-2026-109618 can read secrets out of memory, patching closes the door but does not undo what may already have leaked. Rotate exposed secrets — database credentials, API keys, session and signing keys — and hunt for web shells and unexpected files in your webroot.

How to tell if you were already hit

Exploitation has concentrated on the session upload-progress path, which gives you something concrete to look for:

  • Request logs: unusual bursts of POST requests carrying session_upload_progress / multipart upload fields, especially to endpoints that don’t normally receive uploads.
  • Process health: unexplained PHP-FPM worker crashes, segfaults or restarts clustered in time — a common side effect of use-after-free exploitation attempts.
  • Filesystem: new or modified files in the webroot (classic web-shell drop), unexpected cron entries, or changes to PHP configuration.
  • Network: outbound connections initiated by your web servers to unfamiliar hosts — a web server should rarely “call out.”

If you find any of these, work the full incident path: isolate, preserve logs, rotate every secret the host could reach, and rebuild from a known-good image rather than cleaning in place.

Stay in front of the next one with Securion

PHP2Shell is a preview of the new tempo: AI-accelerated discovery, hours — not weeks — to mass exploitation, and a flaw buried in a runtime that your own code can’t see. The only durable answer is to shift from scrambling after each advisory to continuously knowing your exposure. That is what Securion is built for.

  • Proactive, AI-driven scanning. Securion’s security agents probe your externally reachable surface on a schedule — not once a year — so a newly disclosed flaw like PHP2Shell is checked for across your estate in hours, and raised as a finding you can assign, track and close.
  • Know every asset that could be running PHP. Continuous discovery of your cloud resources across AWS, GCP, Azure and DigitalOcean gives you the inventory this response depends on — so no forgotten server or container image is the one that stays unpatched.
  • Turn findings into tracked remediation. Each exposure becomes a prioritised, owned task with status, instead of a line in a report — shrinking the window an attacker relies on.
  • Defend and prove it in one place. Securion maps the same work to the frameworks you’re held to — ISO/IEC 27001:2022 and others — so emergency patching, asset inventory and secret rotation also build your audit evidence.

When the next PHP2Shell lands — and at machine speed, it will — the organisations that stay safe are the ones already watching. See your own exposure: book a walkthrough at securion.ai and put proactive scanning, cloud asset discovery and compliance evidence behind your defence — before the next advisory, not after.

Why Securion?

  • AI-driven threat detection across cloud and SaaS
  • Continuous compliance for SOC 2, ISO 27001, and more
  • Hundreds of security agents — no extra headcount
  • Live audit trail your auditors can self-serve
Try Securion Free
Article Info
Author
Securion Team
Published
22 October 2026
Read time
8 min read
Tags
PHP2ShellRemote Code ExecutionVulnerability ManagementAppSecPatch Now