Do you have an incident?

Our S.O.S. line:

+49 89 262 025954

Our team of experts is ready to assist your organization in the event of a cyberattack.

details

PHP2Shell: When Cleanup Turns into a Disaster

Incident Response + Penetration Testing + Security Operations Center WhiteHat todayOctober 22, 2026

Background

This week’s CVE of the Week is the new hot topic that shaken the cybersecurity community on Wednesday (21st October) night. Organizations should not take these vulnerabilities lightly, if there’s a time for out-of-band emergency patching, this is it.

PHP2Shell-CVE-2026-109618

A critical PHP vulnerability discovered by Calif, Wiz and Google Gemini AI, now known as the PHP2Shell was disclosed. These vulnerabilities (CVE-2026-109618 and CVE-2026-109619) affect PHP versions 5.4–8.5. Both CVE were scored 9.2 in CVSS v4.0. (9.8 in CVSS v3.1)

With this exploit adversaries can initiate Remote Code Execution (RCE) on affected systems without authentication, even on the latest WordPress, Drupal, and Joomla installations. The most critically affected systems are those using the Apache web server with mod_php, as a publicly available PoC (Proof of Concept) video has already been released for this configuration. PHP-FPM, php-cgi, FrankenPHP, and LiteSpeed-based systems are also affected and therefore require updates.

Due to the severity of the vulnerability, security patches have also been released for PHP 7.4 and 8.1, as well as older versions. However, it is important to note that versions older than PHP 7.4 no longer receive patches.

How does it work?

PHP uses the longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. In some cases, this can leave partially initialized internal data behind, and the clearing sequence can run the code injected this way to memory before taking any other action leading to RCE.

Recommended actions

Update the affected systems as soon as possible to one of the following PHP versions:

  • PHP 8.5.12
  • PHP 8.4.27
  • PHP 8.3.36
  • PHP 8.2.35

In containerized environments, patching only the running containers is not sufficient. The container image must also be rebuilt using the patched PHP versions, and the containers must then be redeployed from the new container image.
It is also important to update PHP components in embedded systems (appliances) and on hosted platforms.
It is also recommended to update systems running PHP versions 8.2.X, as their security support will end on December 31, 2026.

If you notice any unusual behavior or suspicious activity on the affected systems, we recommend the following steps:

  • Rotate the secrets associated with the affected systems.
  • Contact your security team or security provider.

Official statement and advisory from PHP Foundation:
https://thephp.foundation/blog/2026/10/21/todays-php-security-release-and-how-were-strengthening-php-security/
https://www.php.net/archive/2026.php#2026-10-21-5

Technical write-ups and resources:
https://www.wiz.io/blog/php2shell-php-rce
https://calif.io/php2shell/


Do you want to be protected from vulnerabilities like the above? See our defensive services here: Managed Security – White Hat IT Security

Written by: WhiteHat

Tagged as: , , , , , .

Previous post

Similar posts

Cyber Threat Intelligence WhiteHat / November 6, 2026

Checked and Betrayed – high severity vulnerability in WordPress Core

Our choice for CVE of the Week is CVE-2026-119977, that is a high-severity security vulnerability affecting WordPress Core versions 4.7 through 7.1.3, with a CVSS score of 8.1. The vulnerability originates from a Time-of-Check to Time-of-Use (TOCTOU) race condition in the WordPress full-package update mechanism. The use of predictable staging paths accessible over the web ...

Read more trending_flat

Cyber Threat Intelligence WhiteHat / October 30, 2026

Citrix NetScaler Under Threat

This week’s CVE of the Week highlights CVE-2026-107406, a critical memory overflow vulnerability affecting Citrix NetScaler ADC and NetScaler Gateway, with a CVSS v4.0 score of 9.5.  Under specific configuration conditions, the flaw could allow attackers to execute code remotely (RCE) or trigger a Denial of Service (DoS), potentially disrupting critical enterprise services. What is ...

Read more trending_flat