Skip to content
RCE Write-up Advanced

php2shell: Critical PHP RCE (CVE-2026-109618 & CVE-2026-109619)

Two critical unauthenticated remote code execution flaws in PHP arise from unsafe interruption during memory exhaustion and stale global state surviving between requests. An attacker could execute code with the web worker's privileges.

intruder.io

Published on intruder.io

On 21 October 2026, the PHP project released fixes for two critical vulnerabilities nicknamed php2shell, discovered and reported by the researchers at Calif.io. The two issues are closely related but distinct:

The author, on intruder.io

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 unsafe interruption during memory-limit termination and failure to reset request-owned state between requests.

What the attacker needed

Internet-facing PHP; Unauthenticated

The fix

Upgrade PHP to a fixed release (8.5.12, 8.4.27, 8.3.36, or 8.2.35); interim measures are not reliable.

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 a programming language used by many websites. These bugs let someone run their own code on a server without logging in, which could let them take control. They happen when PHP is interrupted at a bad moment, like running out of memory, leaving things in a confused state.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.