Cybersecurity news

Jessica Doner

Back to the list

phpAfterShell: How PHP’s Session Writer Became an Unauthenticated RCE

The CyberSec Guru,

PHP released updates to fix a critical bug that allowed attackers to run code on servers without logging in.

Vulnerabilities and patches

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.

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

Same story at other outlets

Related