What is the PHP2Shell vulnerability?
PHP2Shell refers to two critical PHP vulnerabilities that can potentially enable remote code execution. CVE-2026-109618 and CVE-2026-109619 involve PHP request processing, error handling and memory management.
The issue is particularly significant because it exists below the application layer. Security measures built into an individual PHP application or framework may therefore not be sufficient to prevent exploitation of the vulnerable runtime.
The two vulnerabilities involve different conditions:
-
CVE-2026-109618: During a memory-allocation failure, PHP's internal request data may remain only partially initialised. Subsequent clean-up can process this data incorrectly, potentially creating a memory-corruption condition that can lead to remote code execution.
-
CVE-2026-109619: Certain error-handling and clean-up processes can leave PHP's global state referencing request memory that has already been released. If that stale reference is subsequently used, another memory-corruption condition and potential path to remote code execution can arise.
The specific exploitation path depends on factors including the PHP build, server configuration and runtime environment. Running a vulnerable PHP version indicates potential exposure, but does not by itself prove that the system has been compromised.