Patch Ticker
EnglishEN
Notice Score pending

PHP session file corruption allows remote code execution (phpAfterShell)

Web servers running the PHP language can be hacked.

First seen
—

Mitigation

Update PHP to the fixed version of your own line. Find your product's fixed version in the list below.

Fixed version by product

PHP 8.6
8.6.0 or later
PHP 8.5
8.5.13 or later
PHP 8.4
8.4.28 or later
PHP 8.3
8.3.37 or later
PHP 8.2
8.2.36 or later

Summary

A flaw in how PHP writes session files lets a remote attacker run code when a write is interrupted. PHP applications using default session storage may be affected.

Affected when

  • Default session storage is active
  • An exploitation route such as upload progress tracking
  • PHP process stops mid-write of the session file
  • A request calls session_start() on the corrupted file
  • A deserialization-to-code-execution path exists

4 other Incidents of this product in the last 30 days

Incidents by product: PHP

Other recent Incidents of PHP

All Incidents of 2026-11-23

Read the write-up · securityweek.com (opens in a new tab)