Skip to content

Image: cdn.prod.website-files.com · rights & removal

Executive Summary

The PHP2Shell vulnerability involves four memory-safety bugs in the PHP engine that allow for unauthenticated remote code execution via HTTP requests. The flaws stem from how PHP handles memory management during fatal out-of-memory errors, leading to the exposure of session data and backtraces. Exploitation is possible on any internet-facing PHP server running affected versions, regardless of application code status. The vulnerability allows an attacker to execute code as the web-server user without requiring credentials or application bugs. While this can lead to remote code execution, a specific flaw also permits the leakage of secrets from other users' requests stored in memory. Various organizations and tools provide methods for detection, including Sysdig Secure, which offers threat intelligence, vulnerability management, and runtime behavioral analytics tailored for detecting post-exploitation activity like shell execution.

Facts Only

* CVE-2026-109618 and CVE-2026-109619 are the related vulnerabilities, dubbed PHP2Shell.
* Both vulnerabilities have a CVSS v4.0 score of 9.2.
* An unauthenticated attacker can exploit these flaws to run code on a PHP server using only HTTP requests.
* The vulnerable code dates back to PHP 5.4, released in 2012.
* The root cause involves the PHP worker reusing memory from one request to another, failing to clear global pointers after an out-of-memory error.
* CVE-2026-109618 concerns session upload progress and remote memory disclosure.
* CVE-2026-109619 concerns fatal-error backtraces and OPcache type confusion.
* Impact includes unauthenticated remote code execution, memory disclosure of secrets (credentials, session tokens), and potential container compromise leading to host access.
* Affected systems include any PHP installation serving web requests, such as those using Apache modphp, PHP-FPM, or FrankenPHP.
* The fix was released in emergency releases from the PHP project on October 21, 2026.

Full Take

The narrative highlights a systemic failure rooted in historical code and delayed remediation, exacerbated by the complexity of modern system operation. The fact that vulnerabilities dating back to 2012 remain exploitable, even with subsequent fixes, underscores a critical tension between the development cycle and security patching efficacy, especially in foundational components like a web runtime. The pattern of AI assisting in both discovery and exploit development suggests an acceleration of the threat landscape where the sophistication of attack methods is outpacing traditional defensive measures based on static vulnerability lists.
The layered defense described—patching, mitigating with interim settings, edge blocking, and runtime detection—reveals a necessary choreography between patching infrastructure, immediate risk reduction, and behavioral monitoring. The shift from focusing solely on the input (the HTTP request) to monitoring the output (syscalls, shell execution) demonstrates an evolution in defensive strategy, acknowledging that exploit success is often measured by subsequent actions rather than just the initial vector. The implication for agency is that relying solely on a vendor patch or a static scan is insufficient; true resilience requires implementing compensatory controls that address the downstream effects of memory corruption and post-exploitation persistence, recognizing that control flows are not linear but recursive.
Bridge Questions: If patching every worker immediately proved logistically impossible in large environments, what operational shift—in terms of workload segmentation or ephemeral deployment—would offer the greatest resilience against these legacy flaws? How should security teams weigh the risk of deploying interim mitigation settings versus the potential exposure created by their temporary nature? What is the long-term responsibility of runtime monitoring when the root cause resides deep within the memory management layer of an established core component?

From the original · Sysdig Blog

Get security briefings from the Threat Research Team New campaigns, attacker techniques, and detection guidance — straight to your inbox. Falco Feeds extends the power of Falco by giving open source-focused companies access to expert-written rules that are continuously updated as new threats are discovered.
Read the full story at webflow.sysdig.com

Sentinel unavailable

The automated check of the source article's wording did not complete, so no result is shown.

This looks only at the wording of the original source article, not at this page's AI-written sections. A small local AI model made this estimate. It has not been checked against known human and machine texts, so treat it as provisional. It cannot show who wrote an article.

PHP2Shell (CVE-2026-109618 and CVE-2026-109619): Detecting unauthenticated remote code execution in PHP core | Huntaegis