New phpAfterShell Attack Lets Hackers Achieve Remote Code Execution on PHP Servers
A new attack technique allows hackers to achieve remote code execution on vulnerable PHP servers by exploiting interrupted session writes.
Overview
A new attack technique called phpAfterShell allows hackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher to achieve remote code executionA flaw that lets an attacker run their own code on someone else's computer over a network on vulnerable PHPA widely used server-side scripting language that builds dynamic web pages before sending them to browsers serversA computer or program on a network that stores data and responds to requests from client devices. The flaw was disclosed by Yuhang Wu on November 19, 2026, and is tracked as CVEThe public tracking code assigned to a specific known security flaw in software or hardware-2026-126714 with a critical CVSS v4.0 scoreThe standard rating scale used to score how severe a software security flaw is of 9.2. The bug exists in PHP's default file-based sessionAn active logged-in period of communication between a user or device and a server handler, which uses non-atomic operations to update session files. If a worker dies mid-update, the file can hold a mix of new and old data that PHP does not flag as corrupt. Attackers exploit this by manipulating length fields to create a serialized object that activates when the application later calls session_start(). PHP maintainersThe developer or small team responsible for reviewing changes and publishing releases for an open-source project shipped fixes the same day, warning administrators to prepare for emergency updates.
Terms in this story
- PHP
- 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.
- Hackers
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
- 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.
- code execution
- A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
- Servers
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- 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
- CVSS v4.0 score
- 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
- 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.
- maintainers
- The developer or small team responsible for reviewing changes and publishing releases for an open-source project. Supply chain attackers often target a volunteer maintainer with phishing emails or offers to help, hoping to gain publishing rights over a popular code library.
- 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.
- script
- A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
- patches
- 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
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 GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (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
"PHP maintainers shipped fixes the same day..." Found by reading the article; these exact words are in it - Security+ 2.3 Explain various types of vulnerabilities.
"......servers. Depthfirst researcher Yuhang Wu disclosed the flaw on November 19, 2026." Found in the opening sentences - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"......on vulnerable servers. Depthfirst researcher Yuhang Wu disclosed the flaw on November 19, 2026." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Recommend computing environment vulnerability corrections.
"PHP maintainers shipped fixes the same day..." Found by reading the article; these exact words are in it
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
- 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: How PHP’s Session Writer Became an Unauthenticated RCE
- 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