Skip to content
Free since 2014. Built for the engineers who keep things running.

cat /articles/phpaftershell-from-interrupted-session-writes-to-remote-code-execution.md

PHP

phpAfterShell: From Interrupted Session Writes to Remote Code Execution

A new PHP release patches a critical remote code execution flaw in the default file-based session handler, following up on last month's PHP2Shell fix. The bug was found by a researcher at depthfirst.

PHP News19 Nov 2026 · 1 min read · summary

article --summary

The summary

This post announces that today's PHP release fixes CVE-2026-126714, a critical remote code execution bug rated 9.2, in the default file-based session handler. It is the successor to last month's PHP2Shell fix, so readers running PHP with that default handler should treat it as urgent. According to the researcher, PHP can write to a file-backed session while it is still parsing an unauthenticated multipart upload, before the target script runs. By interrupting those upload-progress writes, an attacker can splice together the start of one valid session with the end of another, producing corrupted session data that the server accepts as genuine. The attacker can then control session values and trigger object deserialization. Combining that with a memory-corruption flaw in a PHP-native class yields remote code execution. The full write-up has the technical details of the exploit chain.

Editorial note: This is a summary of an article first published by PHP News. The full piece is on their site.

Reading now

Topic
PHP
Source
PHP News
Published
19 Nov 2026
Format
Curated summary

Have a take on this?

Write it up and submit it. It goes on the list once an editor approves it.

Submit an article

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

LaraChat Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.