The Lifecycle and Operational Realities of PHP2Shell (CVE-2026–109618 & CVE-2026–109619)
Two memory-safety flaws in the PHP core interpreter, an out-of-memory corruption issue and a use-after-free in upload progress handling, allowed unauthenticated attackers to corrupt worker memory and, in some unhardened setups, execute arbitrary commands. The out-of-memory flaw also let attackers read chunks of worker memory to extract credentials, tokens and session identifiers.
Published on medium.com
In enterprise cybersecurity operations, critical remote code execution (RCE) vulnerabilities in foundational infrastructure represent the highest category of operational risk. The recent disclosure and subsequent response surrounding PHP2Shell,the collective designation for two severe flaws in the PHP core…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely memory-safety defects in PHP's core runtime: an out-of-memory corruption flaw and a use-after-free in native file upload progress handling.
Impact
Attackers could achieve arbitrary command execution in unhardened environments and read worker memory for credentials and session data, though reliable cross-platform exploitation was environment-dependent and many scripts failed.
What the attacker needed
Unpatched PHP runtime; attacker can send requests to the server; Apache mod_php raises exposure
The fix
Upgrading to the fixed PHP releases (8.2.35, 8.3.36, 8.4.27, 8.5.12) was the primary remediation, with disabling upload progress tracking and tightening memory limits as interim workarounds.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
PHP is the software that runs many websites. Two mistakes in how it handled memory could let someone send crafted requests that confuse the server, and in some setups run their own commands or read leftover data such as passwords. Not every attempt worked, because the outcome depended on how the server was built and configured.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.