Blog

Two Critical PHP Vulnerabilities Allow Unauthenticated Remote Code Execution

5 min. read
22/10/2026
By Laura Libeer
Vulnerability
PHP Vulnerability 01

⚡ TL;DR | Go Straight to the PHP2Shell Vulnerability Audit Report

On October 21, 2026, the PHP project released security updates for two critical vulnerabilities, collectively known as PHP2Shell, that could lead to unauthenticated remote code execution. Both vulnerabilities have a critical CVSS score of 9.2. The PHP project is aware of a working exploit against mod_php. We’ve added instructions below that will help you find vulnerable PHP versions running in your environment.

PHP2Shell Vulnerabilities CVE-2026-109618 and CVE-2026-109619

This security update from the PHP Project addresses 2 vulnerabilities, collectively knows as PHP2Shell, that affect all PHP installations that serve web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed.

Both vulnerabilities received a critical CVSS score of 9.2. The PHP project sees the highest risk for mod_php, where an unauthenticated request can trigger the attack before any application code runs.

  • CVE-2026-109618 allows remote code execution through memory corruption during out-of-memory (OOM) handling. It can interrupts PHP while internal request data is only partly initialized. Request cleanup may then treat that invalid data as valid.
  • CVE-2026-109619 allows remote code execution through stale global state. Request-owned internal state can survive after its backing memory has been freed. A later request handled by the same worker can use that stale state before normal initialization resets it.

Read the full technical details in the official PHP security advisory.

Update Vulnerable PHP Installations

These issues have been fixed in the new security update that PHP released on Wednesday. They have stated that updating is the only complete fix. There is no mitigation that makes an installation safe.

Source downloads for the new updates can be found on the PHP Project’s downloads page. Windows source and binaries can be found there as well.

VersionAffectedUpdated version
PHP 8.5All releases before 8.5.128.5.12
PHP 8.4All releases before 8.4.278.4.27
PHP 8.3All releases before 8.3.368.3.36
PHP 8.2All releases before 8.2.358.2.35
PHP 8.1 and olderAll releasesUpgrade to a supported version, or contact your vendor for details.

Keep these points in mind as you plan:

  • Linux distributions and LTS vendors received the patches in advance, so check your vendor for updated packages.
  • The PHP security team provided minimal source backports for PHP 7.4, 8.0, and 8.1 for teams that build from source or have no LTS vendor.
  • If you rely on rpms.remirepo.net, switch to distribution packages or build from source. The repository won’t have updates today.
  • PHP 8.2 will reach end of life on December 31, 2026 and will no longer received security updates beyond that date. Starting planning your move to a newer version now.

If You Can’t Update Immediately

There are steps that can reduce exposure to specific attack paths. However, they don’t make an installation safe. The only real fix is to update. Detailed information on the temporary mitigation steps can be found in PHP’s advisory.

Discover Vulnerable PHP Installs

If you are working in a Lansweeper on-prem installation, you can use the report from our report library linked below to find any vulnerable PHP version in your network.

If you are working in Lansweeper Sites, you can follow the instructions below. This how-to will take you through the steps you can use in your AI-assistant to find exposed devices using Lansweeper’s data.

PHP2Shell Lansweeper How-to

If you’re not a Lansweeper customers already, you can start your Lansweeper trial for free to get full visibility of your environment.

Connect to the Lansweeper MCP

Add the Lansweeper MCP to your AI assistant using https://mcp.lansweeper.com/mcp and logging into your Lansweeper account.

Prompt for Intelligence

Provide your AI assistant with the necessary details about PHP2SHELL, like the official PHP Security Advisory and ask it to check for any exposure in your environment using Lansweeper.

This will give you an actionable list of all exposed devices in your environment.

Optionally, you can use the further steps below to add this information back into Lansweeper so you can add it to your own custom views and dashboards.

PHP vulnerability prompt for intelligence

Adding the Custom Data to Lansweeper for Dashboards (Optional)

Grab the Lansweeper Custom Field Creation skill for your AI assistant and enable the AI Custom Field Creation/Population workflow from the Lansweeper marketplace. Be sure to follow the documentation of the workflow to set it up correctly and grab the URL that your AI assistant will need.

PHP Vulnerability workflow template

Prompt for Exposure Score Calculation

Ask your AI assistant to calculate an exposure score for devices in your environment.

PHP prompt for exposure score

Provide the Webhook URL to Send the Data to Lansweeper

Tell the AI assistant to send the data to lansweeper using the webhook URL from the workflow, optionally provide the name you want the custom field to have.

PHP vulnerability webhook

Once processed, you will find the data attached to your assets in Lansweeper allowing you to use it in custom views, dashboards and more!

Ready to get started?

Explore Lansweeper for free.
No credit card required.

Need help evaluating?
Get guidance on pricing at scale and enterprise requirements.
Talk to sales
Clear pricing as you grow
Transparent plans that scale with your environment.
View plans & pricing