<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/frMIMnVUw" -->

---
title: phpAfterShell Explained: How Hackers Could Turn a PHP...
description: PHP has patched a critical session flaw called phpAfterShell, tracked as CVE-2026-126714 and rated 9.2 out of 10 on CVSS 4.0. The bug lets an attacker cut off...
canonical: https://daily.dev/posts/frmimnvuw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution | daily.dev
og:description: PHP has patched a critical session flaw called phpAfterShell, tracked as CVE-2026-126714 and rated 9.2 out of 10 on CVSS 4.0. The bug lets an attacker cut off...
og:url: https://daily.dev/posts/frmimnvuw
og:image: https://api.daily.dev/og/posts/frMIMnVUw.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[PHP Dev](https://daily.dev/sources/phpdev)** · [@damienseguy](https://daily.dev/damienseguy) · 1 upvotes · 0 comments

## Summary

PHP has patched a critical session flaw called phpAfterShell, tracked as CVE-2026-126714 and rated 9.2 out of 10 on CVSS 4.0. The bug lets an attacker cut off a session write at the right moment so PHP's file-based session handler returns an attacker-chosen object, which can lead to code execution when paired with a gadget chain. Fixed releases are PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0, which also ship today. Depthfirst, a security company, says it found the flaw and reported it to the maintainers. The attack path it tested uses PHP's upload progress feature, which the new releases disable by default. No attacks using phpAfterShell have been reported.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thehackernews.com/2026/11/phpaftershell-explained-how-hackers.html>

## Similar posts on daily.dev

- [PHP2Shell: Why One PHP Vulnerability Put Much of the Web on Emergency Patch Mode](https://daily.dev/posts/php2shell-why-one-php-vulnerability-put-much-of-the-web-on-emergency-patch-mode-gllstobba) · Medium · 0 upvotes · 0 comments
- [PHP2Shell, one week on: The patch does not cover the secrets already exposed](https://daily.dev/posts/php2shell-one-week-on-the-patch-does-not-cover-the-secrets-already-exposed-vcigzmxpx) · Medium · 1 upvotes · 0 comments
- [A 14-Year-Old PHP Bug Lets Strangers Run Code on Your Server. Here's How to Stop It](https://daily.dev/posts/a-14-year-old-php-bug-lets-strangers-run-code-on-your-server-here-s-how-to-stop-it-vd0nya50m) · Medium · 2 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#php](https://daily.dev/tags/php), [#authentication](https://daily.dev/tags/authentication)

[View this post on daily.dev](https://daily.dev/posts/frmimnvuw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/frmimnvuw","headline":"phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution","text":"Shared: phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution","url":"https://daily.dev/posts/frmimnvuw","datePublished":"2026-11-20T09:21:17.127Z","dateModified":"2026-11-20T09:22:44.258Z","author":{"@type":"Person","name":"Damien seguy","url":"https://daily.dev/damienseguy","image":"https://media.daily.dev/image/upload/s--nPbjKqol--/f_auto,q_auto/v1698422671/avatars/avatar_G85JhYcDxAg024Omc8Rlp","description":"PHP developer passionate about deep language knowledge, testing, static analysis, and sustainable it","worksFor":{"@type":"Organization","name":"Exakat","logo":"https://media.daily.dev/image/upload/s--ibtl6fze--/f_auto/v1749051132/companies/exakat"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":45350}},"image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/fS1HRVvL0"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/phpdev","name":"PHP Dev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PHP Dev","item":"https://daily.dev/squads/phpdev"},{"@type":"ListItem","position":3,"name":"phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution"}]}
```

