Skip to content
RCE Write-up Advanced

Threat Brief: Critical Vulnerabilities in PHP: CVE-2026-109618, CVE-2026-109619 (Updated November 19)

Two critical remote code execution flaws in PHP, tracked as PHP2Shell, arise from improper handling of out-of-memory and fatal errors via longjmp(), leaving request memory uninitialised or pointing at freed regions. An attacker could trigger these conditions to reliably execute arbitrary code, and the flaws were reportedly exploited in the wild against internet-facing management interfaces.

Unit 42 Follow

Published on unit42.paloaltonetworks.com

Unit 42 is aware of two critical vulnerabilities in PHP: CVE-2026-109618 and CVE-2026-109619, referred to as PHP2Shell. Both are remote code execution (RCE) vulnerabilities rated as 9.2 (CVSS 4.0).

Unit 42, on unit42.paloaltonetworks.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 improper control flow when handling out-of-memory and fatal errors via longjmp(), which leaves request memory uninitialised or global pointers referencing freed memory.

Impact

An attacker could achieve remote code execution, and the flaws were reportedly chained with a Linux kernel privilege-escalation bug to gain root on exposed management interfaces; the maintainers noted critical paths generally require non-default configurations.

What the attacker needed

Internet-facing management interface; non-default or uncommon setup

The fix

PHP released patches for the affected versions, and Palo Alto Networks states that customers who applied the available patches are not affected.

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 that powers many websites. These two bugs are mistakes in how PHP cleans up after a serious error: instead of safely stopping, it can leave memory in a confused state that an attacker can influence. Because of that, someone sending crafted requests could make the server run their own code, which is about as bad as it gets for a web server.

What is RCE?

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

More by Unit 42

View all

3 more disclosed reports, best first.

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.