Cybersecurity news

Jessica Doner

Back to the list

New phpAfterShell Attack Lets Hackers Achieve Remote Code Execution on PHP Servers

GBHackers,

A new attack technique allows hackers to achieve remote code execution on vulnerable PHP servers by exploiting interrupted session writes.

Vulnerabilities and patches

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.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related