New phpAfterShell Attack Bypasses PHP2Shell Fix to Enable Remote Code Execution
A new attack allows unauthenticated remote code execution on vulnerable servers, even if they have the October patches for PHP2Shell.
Overview
Researchers at depthfirst disclosed a new vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend called phpAfterShell that allows attackers to run code on vulnerable serversA computer or program on a network that stores data and responds to requests from client devices without logging in. This flaw affects systems that use PHPA widely used server-side scripting language that builds dynamic web pages before sending them to browsers's default file-based sessionAn active logged-in period of communication between a user or device and a server handler to remember user details between requests. The issue arises when an interrupted session update leaves a file with mixed data, which PHP can later accept and use to rebuild objects. This process, known as deserializationTurning stored or transmitted data bytes back into a live object inside a running program, was not fully addressed by the October patches for the earlier PHP2Shell vulnerability. The new attack combines this behavior with a memory corruptionA class of software bugs where a program accidentally overwrites or misreads its own working memory flaw to achieve remote code executionA flaw that lets an attacker run any commands or program they choose on the target machine. The vulnerability has a CVSS v4.0 scoreThe standard rating scale used to score how severe a software security flaw is of 9.2 and is tracked as CVEThe public tracking code assigned to a specific known security flaw in software or hardware-2026-126714.
Terms in this story
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- 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.
- 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.
- 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.
- 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
- 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.
- 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
- 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
- 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.
- 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.
- security updates
- 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 Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security News (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
"Bypasses PHP2Shell Fix to Enable Remote Code Execution..." Found by reading the article; these exact words are in it - Who is affected: "...vulnerable servers..." Organizations using the product
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"......for PHP2Shell. Researchers at depthfirst disclosed the flaw on November 19 and demonstrated how it..." Found in the opening sentences - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"......October patches for PHP2Shell. Researchers at depthfirst disclosed the flaw on November 19 and demonstrated how it..." Found in the opening sentences - CYBR 101 week 3: cyber hygiene, privacy, OSINT and social engineering
"......servers, even if they have the October patches for PHP2Shell. Researchers at depthfirst disclosed the..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of system and application security threats and vulnerabilities (e.g., buffer overflow, mobile code, cross-site scripting, Procedural Language/Structured Query Language [PL/SQL] and injections, race conditions, covert channel, replay, return-oriented attacks, malicious code).
"...unauthenticated remote code execution on vulnerable servers..." 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
- 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: How PHP’s Session Writer Became an Unauthenticated RCE
- phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into 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