| PHP2Shell key facts (source: NVD, checked 3 November 2026) | |
|---|---|
| CVE IDs | CVE-2026-109618 (out-of-memory handling leaves request memory uninitialized), CVE-2026-109619 (global state keeps pointing at freed request memory) |
| Published | 21 October 2026, CVE source security@php.net |
| Affected | PHP before 8.2.35, 8.3 before 8.3.36, 8.4 before 8.4.27, 8.5 before 8.5.12. NVD lists CVE-2026-109618 from PHP 7.3.0 and CVE-2026-109619 from PHP 5.4.0. |
| Fixed in | PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 |
| PHP 7.x | Listed as affected by NVD (7.3 and 7.4 for both CVEs). End of life: no official fix. |
| Impact | Remote code execution, no login and no user interaction required |
| CVSS 3.1 (NVD) | CVE-2026-109618: 9.8 critical. CVE-2026-109619: 8.1 high |
| CVSS 4.0 (PHP) | 9.2 critical for both |
| Exploited | Both CVEs added to the CISA Known Exploited Vulnerabilities catalog on 26 October 2026 |
| Advisories | GHSA-w8hw-w9fx-j79w (CVE-2026-109618), GHSA-6wmf-4rv5-p3rp (CVE-2026-109619) |
On this page
What is PHP2Shell?
PHP2Shell is the name used for two related vulnerabilities in the PHP interpreter itself, not in a specific application. Both were reported by the PHP project (CVE source security@php.net) and published on 21 October 2026, together with fixed releases for every supported PHP branch.
- CVE-2026-109618: PHP uses
longjmp()to abort a request when it runs out of memory. Some code paths leave request memory uninitialized before an allocation, and the request cleanup can then read or branch on that memory. According to NVD, several out-of-memory strategies trigger this reliably and lead to remote code execution. - CVE-2026-109619: some global state in PHP temporarily points into request memory and is not always reset correctly. A later request can then read stale state that refers to freed memory, which NVD also describes as leading to remote code execution.
NVD rates CVE-2026-109618 at CVSS 3.1 9.8 (network attack, low complexity, no privileges, no user interaction) and CVE-2026-109619 at 8.1 (high attack complexity). CISA added both to its Known Exploited Vulnerabilities catalog on 26 October 2026, which means attacks have been seen, not only theorised.
Why IPTV panels are a special case
On a normal Ubuntu web server you install the distribution's PHP fix with apt upgrade, restart PHP-FPM and you are done. IPTV panels usually work differently:
- Bundled PHP. Most IPTV panels (Xtream UI, XUI.ONE and Xtream Codes forks) ship their own PHP binary inside the panel folder and run their own PHP-FPM and nginx with it.
apt upgradedoes not touch it. The system packages and the panel's bundled binary are separate files. You can be fully up to date on Ubuntu and still run an old, unpatched PHP for the panel.- Abandoned panels stay exposed. If the panel is no longer maintained, nobody builds a fixed PHP for it.
- Many servers. Every main server and every load balancer carries its own copy of the binary. One forgotten load balancer is enough.
How to check which PHP your IPTV panel really runs
Do not run php -v on its own: that only shows the system PHP, which may not be the one serving your panel. Find the binary the running processes use, then ask that exact binary for its version.
Step 1: List the running PHP processes
Step 2: Ask that binary for its version
Step 3: Repeat on every server
Run the same check on the main server and on every load balancer. Compare each version with the facts table: 8.2.35, 8.3.36, 8.4.27, 8.5.12 or newer on that branch is fixed; anything older is affected; 7.x has no official fix.
Reduce exposure now (any panel)
These steps do not fix PHP, but they cut down who can reach it while you plan the real fix:
- Put the admin and reseller login behind access codes or a non-default path, and firewall the panel port to known IP addresses where you can.
- Firewall SSH and database ports to known IP addresses.
- Keep streaming ports open only on the servers that need them.
- Take a fresh database backup and download it off the server before you change anything.
- Look for files you did not create in the panel's web folders and for unknown admin or reseller accounts. If you find any, treat the server as compromised and rebuild it rather than cleaning it.
How to fix PHP2Shell, by panel type
| Your situation | What to do |
|---|---|
| Plain PHP site or app on Ubuntu packages | Update PHP to 8.2.35, 8.3.36, 8.4.27, 8.5.12 or newer on your branch and restart PHP-FPM. |
| Maintained IPTV panel | Apply the vendor's PHP update on every main server and load balancer, then re-run the version check above. |
| Unmaintained panel (no vendor updates) | A bundled PHP that nobody patches stays exposed. Lock it down now and plan a migration to a maintained panel. Your database (users, lines, bouquets, streams, movies, series, resellers) can be moved. |
| Xtream UI | No vendor updates are published for Xtream UI. Treat it as an unmaintained panel. |
| XUI.ONE | Check the vendor's own announcements and update channel for a PHP update. |
| Xtream-Masters | Move every server to Solo, see the next section. |
Xtream-Masters servers: move to Solo
If you run the Xtream-Masters OTT panel, the fix is in the panel itself:
Main server: Migrate to Solo
Open Manage Servers. For a main server without the Solo tag, open Options, then Main, and choose Migrate to Solo.
Load balancers: Reinstall Balancer with Solo
For every load balancer without the Solo tag, choose Reinstall Balancer and select Solo.
When every server in Manage Servers shows the Solo tag, you are done.
Migrating from Xtream UI, XUI.ONE or NXT
If your panel gets no PHP updates, every new PHP flaw is another one you cannot fix. Moving to a maintained panel is a database migration, not a rebuild. The Xtream-Masters OTT panel imports Xtream UI, XUI.ONE and NXT databases (users, lines, bouquets, streams, movies, series, categories, resellers and settings) on a fresh Ubuntu server, 20.04 to 26.04. The license is €40/month until 31 December 2026, then €70/month from 1 January 2027.
- Step-by-step: migrate Xtream UI or XUI.ONE to Xtream-Masters.
- Comparing options first: best IPTV panel software.
- Panel features, requirements and pricing: Xtream-Masters OTT panel.
- Still on Xtream UI and setting up a new server? Read Xtream UI on Ubuntu 24.04 first to compare a community install with a maintained panel.
Sources: NVD CVE-2026-109618 and CVE-2026-109619, PHP security advisories GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp, CISA Known Exploited Vulnerabilities catalog.
