# PHP2Shell - Critical vulnerabilities in PHP (CVE-2026-109618, CVE-2026-109619): detection, analysis, and remediation

DevFeed: [PHP2Shell - Critical vulnerabilities in PHP (CVE-2026-109618, CVE-2026-109619): detection, analysis, and remediation](<https://devfeed.tech/articles/php2shell-critical-vulnerabilities-in-php-cve-2026-109618-cve-2026-109619-detection-analysis-and-remediation-92899.md>)

Original publisher: [Read original article](<https://securitylabs.datadoghq.com/articles/php2shell-critical-vulnerabilities-in-php/>)

Author: Nick Frichette, Emile Spir, Eslam Salem

Published: 2026-10-21T00:00:00Z

Content type: article

Language: en

Sources: [Datadog Security Labs](<https://devfeed.tech/sources/datadog-security-labs.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [Security research](<https://devfeed.tech/topics/security-research.md>), [vulnerability-research](<https://devfeed.tech/topics/vulnerability-research.md>), [cve remediation](<https://devfeed.tech/topics/cve-remediation.md>), [vulnerability management](<https://devfeed.tech/topics/vulnerability-management.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [code-execution](<https://devfeed.tech/tags/code-execution.md>), [critical](<https://devfeed.tech/tags/critical.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-109618](<https://devfeed.tech/tags/cve-2026-109618.md>), [cve-2026-109619](<https://devfeed.tech/tags/cve-2026-109619.md>), [detection](<https://devfeed.tech/tags/detection.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [exploits](<https://devfeed.tech/tags/exploits.md>), [memory-corruption](<https://devfeed.tech/tags/memory-corruption.md>), [php](<https://devfeed.tech/tags/php.md>), [php2shell](<https://devfeed.tech/tags/php2shell.md>), [remediation](<https://devfeed.tech/tags/remediation.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

## AI overview

PHP disclosed two critical remote code execution flaws, CVE-2026-109618 and CVE-2026-109619, each scored 9.2 under CVSS v4.0. The excerpt describes CVE-2026-109618 as invalid data left for cleanup after a failed memory allocation, and CVE-2026-109619 as reuse of stale state from a prior request. An unauthenticated POST can trigger the first flaw before application code runs, so application authentication and disabling session upload progress do not protect against these vulnerabilities; patching is the stated fix. PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12 include fixes. PHP 5 through 8.1 are also vulnerable but end of life and will not receive patches. For investigation, the excerpt recommends looking for large form submissions, memory-exhaustion errors during request initialization, and unexpected shell processes. Datadog Workload Protection is said to detect PHP applications spawning shells, covering exploitation of both flaws. The detailed walkthrough covers CVE-2026-109618; the account of CVE-2026-109619 relies on PHP's advisory, and analysis is ongoing.

## Source excerpt

Learn about the two critical vulnerabilities in PHP dubbed PHP2Shell.