Skip to content
Memory corruption Write-up Advanced

PHP2Shell Vulnerabilities (CVE-2026-109618 & CVE-2026-109619): Analysis and Remediation

Two memory corruption flaws in the PHP runtime's C code could let an unauthenticated attacker run code on a vulnerable server with the web server process's privileges. The text says one flaw involves handling of large or malformed requests and the other involves stale request state, and that patched PHP builds are the only complete fix.

Robert Vamosi Follow

Published on contrastsecurity.com

The PHP project released fixes on October 21, 2026, for two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619. Each is rated 9.2 on CVSS v4.0 and can allow unauthenticated Remote Code Execution (RCE).

Robert Vamosi, on contrastsecurity.com

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 corruption in PHP's C runtime, tied to handling of large or malformed requests and to stale request state such as session upload progress and diagnostic paths.

Impact

An attacker who can reach a vulnerable PHP runtime could run code as the web server user, potentially leading to webshells, data theft and lateral movement, though the text notes PHP and CISA had not confirmed exploitation in the wild at the time of writing.

What the attacker needed

Reachable PHP endpoint; unpatched PHP runtime; no login needed

The fix

It was fixed by updating to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, with interim measures such as disabling session upload progress and limiting request sizes only reducing exposure.

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 program that runs many websites, and these bugs are inside that program itself rather than in the website's own code. A memory bug means the program mishandles data in its own working memory, and here that could let an outsider make the server run their commands without logging in. The only real cure is installing a newer version of PHP.

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.

More by Robert Vamosi

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.