FSOC
Mediumgeneral

phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution

First reported 19 Nov 2026, 16:59 UTC · last update 19 Nov 2026, 16:59 UTC · 1 source

PHP's default file-based session storage can be made to return objects an attacker chose, by cutting off a session write at the right moment. When combined with a second weakness, such as a suitable gadget chain in the app, those objects can allow the attacker to run code on the server.

What to do

CVE-2026-126714 is critical severity (CVSS 9.2). Check whether you run the affected product and schedule the update.

Summary is an excerpt from the lead source; advice is generated by fixed rules from exploitation data.

Linked vulnerabilities

  • CVE-2026-126714· CVSS 9.2 · EPSS 13%

    Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, t…

Sources (1)

Why it ranks here

Ranking score 41 / 100
  • Coverage10
  • Source trust11
  • Exploitation8
  • Severity10
  • Recency3
  • SEA boost0