- What is PHP2Shell, and why is it critical?
- Artificial intelligence also played a role in the discovery
- Are you a Pandora FMS customer? Start by checking your own installation
- How to find PHP installations using Pandora FMS inventory
- Which PHP versions need updating?
- After patching: verify that the issue has been fixed
- Inventory as part of vulnerability response
- The next vulnerability will come. How long will you take to respond?
Two critical PHP vulnerabilities allow unauthenticated remote code execution. Patches are already available. The challenge is knowing which servers you have and updating them in time.
On October 20, 2026, details of two critical PHP vulnerabilities were leaked. Identified as CVE-2026-109618 and CVE-2026-109619, they are collectively known as PHP2Shell.
Both have a CVSS 4.0 score of 9.2 out of 10 and can allow an attacker to execute code on a server without credentials.
The PHP development team released security fixes on October 21. Researchers at watchTowr have already reported exploitation attempts.
The urgency is justified. PHP powers millions of web applications: WordPress, Drupal, Joomla, enterprise platforms and internal tools.
But having a patch available does not solve the problem.
Do you know how many servers run PHP in your infrastructure? Which versions are installed? Which servers are exposed to the internet?
If answering those questions means checking every system individually, time is working against you.
What is PHP2Shell, and why is it critical?
PHP2Shell refers to two flaws affecting the PHP interpreter itself:
- CVE-2026-109618: incorrect handling of out-of-memory conditions can cause PHP to process internal data in an inconsistent state.
- CVE-2026-109619: certain references to freed memory can be reused while processing subsequent requests.
Both can allow unauthenticated remote code execution. In some scenarios, an attacker may also be able to access sensitive information held in process memory.
What makes these flaws serious is their reach. They affect the interpreter, not the application running on top of it. Updating WordPress and its plugins does not fix a vulnerable PHP version on the server.
The PHP security team warns that installations handling web requests are exposed, including configurations using PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed.
The demonstrated risk is greater with Apache and mod_php, where an attack can be triggered before the application’s code runs.
That is why internet-facing systems should come first.
Artificial intelligence also played a role in the discovery
PHP2Shell has another distinguishing feature: some of these flaws had been present in the PHP codebase for more than a decade.
According to research published by Wiz on October 21, advanced artificial intelligence models helped identify and demonstrate the exploitation of flaws that had proved exceptionally difficult to analyse.
That changes the conditions of security research. Vulnerabilities that once demanded months of specialist work can now be discovered with fewer resources and in less time.
This capability benefits researchers trying to find flaws before attackers do. It may also lower the technical barrier for those seeking to exploit them.
There is no public evidence that the exploitation attempts observed against PHP2Shell have used artificial intelligence.
Wiz’s research shows that AI can reduce the effort needed to discover and exploit complex flaws. For infrastructure administrators, that means the time available to respond may become even shorter.
Are you a Pandora FMS customer? Start by checking your own installation
The Pandora FMS web console uses PHP. If you manage an on-premises installation, check which PHP version it runs and whether the installed packages include the security fixes.
Before updating, verify compatibility with your Pandora FMS version.
Do not move to a newer PHP release branch without checking the product requirements first. Security fixes may be available for the branch you already use or through updated packages from your Linux distribution.
Check the PHP version actually used by the web server and consult the security advisory from your package provider.
If you need guidance for your installation, contact the Pandora FMS support team.
How to find PHP installations using Pandora FMS inventory
Once you have checked the console itself, turn to the rest of your infrastructure.
Pandora FMS includes hardware and software inventory capabilities: you can see which applications and versions are recorded for each monitored system. This information is collected through Endpoints installed on servers or through remote inventory modules.
Software inventory must be configured and up to date. A server can be monitored without having software inventory enabled. These are two different things.
Step by step: search for PHP in the inventory
These instructions apply to Pandora FMS 777 and 800, although the filter layout may differ slightly between versions.
- Go to Operation → Monitoring → Inventory.
- Open the filters, select all agents and the Software module.
- Enter php in Free Search and apply the filter.
- Review the Version and Agent columns: they show the recorded versions and the corresponding systems.
- Check the date of the latest available inventory and widen the date filter if necessary.
From the same view, you can export the results to CSV and build a list of servers to review. This shows where PHP is recorded in the inventory and which version is listed.
One important distinction: finding PHP in the inventory does not mean the server is vulnerable.
Inventory tells you which software has been recorded. Actual exposure also depends on the installed security patches, the configuration and the version used by each web service.
And an empty search does not guarantee there are no PHP installations. Containers, manual installations or applications that bundle PHP may not appear if inventory is not configured to collect that information. Systems without software inventory will not appear either.
Read the Pandora FMS inventory documentation →
Which PHP versions need updating?
If you use PHP 8.2, 8.3 or 8.4, these are the patched releases published on October 21:
| PHP branch | Patched version |
|---|---|
| PHP 8.2 | 8.2.35 |
| PHP 8.3 | 8.3.36 |
| PHP 8.4 | 8.4.27 |
These are patched PHP interpreter releases. They are not a recommendation to switch PHP branches, nor do they establish compatibility with any particular Pandora FMS version.
If you are still using PHP 8.1 or an earlier version, examine your situation carefully: those branches no longer receive official maintenance from the PHP project.
Some Linux distributions and extended-support providers ship security fixes under version numbers that differ from PHP’s own releases. Looking at the version number alone can lead to the wrong conclusion. Check the security advisory for the package you have installed.
How to prioritise affected servers
Not all systems face the same exposure.
Prioritisation depends on what is accessible from the internet, how critical the application is and whether exploitation is feasible in its configuration.
Start with internet-facing systems, whether they are in production, testing or development. Then review internal systems according to their accessibility and criticality.
Pay particular attention to older installations that have fallen outside routine maintenance. They may still be running vulnerable versions precisely because nobody is maintaining them.
After patching: verify that the issue has been fixed
The process does not end when a package is updated. To verify that the fixes have actually taken effect:
- Verify the active version. Confirm which PHP version the web service uses. It may differ from the version installed for
php-cli. - Restart the necessary services. PHP processes or the web server must load the patched components.
- Check functionality. Applications must continue to work normally after the update.
- Refresh the inventory. Check Pandora FMS again to see which systems still need review.
- Look for signs of compromise. Examine web server logs, unexpected files, anomalous processes and any suspicious activity since the vulnerabilities were disclosed.
If you cannot update immediately, apply the temporary measures recommended by PHP to reduce exposure.
They do not provide complete protection and are no substitute for patching.
Inventory as part of vulnerability response
PHP2Shell shows why your software inventory needs to be up to date before a security alert arrives.
With a current inventory, finding the servers that need reviewing can be a matter of a single query. You still need to check the versions actually in use, the patches installed and which systems remain exposed.
In Pandora FMS, software inventory provides that first layer of visibility, provided the relevant modules are configured and the data is current.
The procedure described here uses inventory. It is not automatic detection of the PHP2Shell CVEs. Confirming a system’s security status requires checking its installed packages and the fixes applied.
Vulnerability monitoring adds another layer: it compares installed software against public CVE databases and relies on that same inventory to identify where to look.
For the full process, from identification through remediation, see our article on vulnerability and patch management.
The next vulnerability will come. How long will you take to respond?
PHP2Shell will be fixed in many installations. Others will continue running vulnerable versions for months, especially where inventory is incomplete or systems have been left outside routine maintenance.
No one can prevent vulnerabilities from emerging in third-party software.
What you can control is how quickly you find out which systems may be affected, decide what to update first and verify that the fix worked.
When a critical vulnerability is disclosed, finding out which servers you have should not consume the time you need to protect them.
Need assistance?
If you are a Pandora FMS customer or partner and need help reviewing your installation or identifying which servers running PHP should be checked, contact our support team →
Sources
- PHP: Official security advisory, October 21, 2026
- Wiz Research: Technical analysis of PHP2Shell and the role of AI
- watchTowr: Exploitation activity and PHP2Shell analysis
- Ubuntu: Security fixes for PHP packages
- Pandora FMS: Inventory documentation
Pandora FMS’s editorial team is made up of a group of writers and IT professionals with one thing in common: their passion for computer system monitoring. Pandora FMS’s editorial team is made up of a group of writers and IT professionals with one thing in common: their passion for computer system monitoring.






