Runtime vulnerability, severity medium
PHP session flaw "phpAfterShell" (CVE-2026-126714) can lead to code execution; fixed in new PHP releases
Published
A flaw in PHP's default file-based session storage lets an attacker make PHP return objects of their choosing by cutting off a session write at the right moment. Combined with a second weakness, such as a suitable gadget chain in the application, this can allow code execution on the server. New PHP releases published on the day of the article fix the flaw.
What's affected
- php runtimeevery version
What to do
- Update PHP to the latest release that fixes CVE-2026-126714
- Review applications that use file-based PHP sessions for gadget chains that could be abused through unserialized session objects
Check whether you were affected
To check a machine, run this in Claude Code with the Pharon plugin, in the repository that uses it. The check is free and needs no account:
/pharon:check-incident php-aftershell-session-flaw-2026-11Don't wait for the next one to reach the news. Pharon tells the team that owns the affected repo within minutes. Free for 7 days, no card.
Get alerted for the next oneReferences
Notice php-aftershell-session-flaw-2026-11, signed with key feed-prod-2026-10 (Ed25519). The Pharon CLI verifies the signature before using a notice.