phpAfterShell: How PHP’s Session Writer Became an Unauthenticated RCE
PHP released updates to fix a critical bug that allowed attackers to run code on servers without logging in.
Overview
On November 19, 2026, the PHP project released updates that closed eighteen vulnerabilities, including a critical flaw named phpAfterShell. This bug allows an attacker to execute code on a server without logging in, a capability known as unauthenticated remote code executionA flaw that lets an attacker run their own code on someone else's computer over a network. The vulnerability exists because the system uses two separate commands to update a file, and if the process stops between them, the file is left in a broken state. This broken state can be manipulated to trigger a memory corruptionA class of software bugs where a program accidentally overwrites or misreads its own working memory bug, giving the attacker full control. The issue is significant because it was found in code that had already been patchedA software update released by a developer to fix a bug or close a security flaw for a previous attack called php2shell. Organizations using PHP versions 8.2.36, 8.3.37, 8.4.28, 8.5.13, or 8.6.0 must apply these updates to stop attackers from taking over their systems.
Terms in this story
- Unauthenticated
- Done without logging in or holding a valid account on the target system. An unauthenticated flaw is especially urgent in the news because any stranger on the internet can trigger it without needing a username or password first.
- unauthenticated remote code execution
- A flaw that lets an attacker run their own code on someone else's computer over a network. This is one of the most dangerous bug classes in the news because an attacker across the internet can send a crafted request and take control of a server.
- patched
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
- PHP's
- A widely used server-side scripting language that builds dynamic web pages before sending them to browsers. Because millions of websites and content management systems run on PHP, a newly discovered vulnerability in the PHP engine can put a huge portion of the web at risk.
- Session
- An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
- CVE
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- race condition
- A timing bug where two operations run at once and their order changes the result unexpectedly. An attacker can exploit a race condition by sending two requests at the exact same instant, such as withdrawing the same balance twice before the server updates the account. Security+ objective 2.3 lists the term
- deserialization
- Turning stored or transmitted data bytes back into a live object inside a running program. If a server performs deserialization on untrusted data from a user without checking it, an attacker can craft an object that automatically runs malicious commands as it unpacks.
- memory-corruption
- A class of software bugs where a program accidentally overwrites or misreads its own working memory. Buffer overflows and use-after-free bugs are forms of memory corruption that can crash an application or let an attacker redirect the processor to run malicious code. Security+ objective 2.3 lists the term
- advisory
- An official bulletin from a vendor or agency warning users about a flaw and its fix. When a bug is patched, the vendor publishes a security advisory listing affected versions, the CVE code, the severity rating, and instructions for updating.
- CVSS v4.0
- The standard rating scale used to score how severe a software security flaw is. Security advisories include a CVSS rating from low to critical based on how easy a bug is to exploit and how much damage it allows. Security+ objective 4.3 lists the term
- use-after-free
- A memory bug where a program keeps using a memory slot after releasing it. Software makers frequently patch use-after-free bugs because an attacker can fill that freed memory slot with crafted data and trick the program into running malicious code.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The CyberSec Guru website. Cite the article, not this page.
Read the full article on The CyberSec Guru (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
...closing eighteen vulnerabilities, seven of them... Found by reading the article; these words are close to its own - Security+ 2.3 Explain various types of vulnerabilities.
"How CVE-2026-126714 turns a race condition in PHP's..." Found in the opening sentences - Security+ 4.3 Explain various activities associated with vulnerability management.
"How CVE-2026-126714 turns a race condition in PHP's..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"How CVE-2026-126714 turns a race condition in PHP's..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- PHP security updates fix 18 flaws, including critical RCE bugs
- PHP2Shell aftershock: 18 more PHP flaws put enterprise web admins on alert
- New phpAfterShell Attack Lets Hackers Achieve Remote Code Execution on PHP Servers
- phpAfterShell (CVE-2026-126714) Slips Past PHP2Shell Patch
- Drupal Fixes Critical RCE Flaw That Could Let Unauthenticated Hackers Take Over Websites
- Critical PHP Flaws Allow Code Execution, But Don't Panic 'PHP2Shell'-Style
- phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution
- New phpAfterShell Attack Bypasses PHP2Shell Fix to Enable Remote Code Execution
- PHP security updates fix 18 flaws, including critical RCE bugs
- PHP Releases Patches to Fix 18 Vulnerabilities
- PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution
- PHP Warns of Critical Security Flaws Affecting All Supported Versions, Urges Users to Update
- Drupal Patches Critical Installer Flaw That Could Give Unauthenticated Attackers Control of Sites
- Drupal patches critical RCE flaw, warns exploits may surface quickly
- PHP Warns of Critical Flaws Ahead of November Security Release
- PHP Security Release 19 November 2026: Critical Flaws in All Supported Versions and the CVE-2026-115560 Fix
- PHP Warns of Critical Security Vulnerabilities, Urges Users to Prepare for Emergency Updates
- PHP Warns of Critical Security Flaws Affecting All Supported Versions, Fixes Coming November 19
- PHP Security Team Warns of Critical Vulnerabilities, Urges Users to Prepare for November 19 Updates
- PHP schedules a critical security release for 19 November, including CVE-2026-115560
- PHP2Shell flaw exploited in chained attacks targeting unpatched Check Point gateways
- The firewall becomes the foothold: Attackers turn Check Point gateways against customers
- Check Point gateways hacked via PHP2Shell to deploy VMware ESXi wiper
- Unpatched Check Point Gateways Are Being Wiped exploiting PHP2Shell
- Hackers Exploit Check Point PHP2Shell Flaws to Gain Root Access and Deploy Wiper Malware
- Hackers Exploit PHP2Shell Flaws in Check Point Gateways to Deploy TSGA Backdoor and Wipe ESXi Files
- Hackers Exploit Check Point Firewall Flaws to Gain Root Access and Deploy Wiper Malware on VMware ESXi
- PHP2Shell Exploitation on Check Point Gateway