PHP websites: the PHP2Shell flaws are now being used in working attacks
26 October 2026Working PHP2Shell attacks have now been recorded on unpatched PHP servers, and CISA has added both flaws to its known-exploited list. If your website runs on WordPress or PHP, ask your host today which PHP version you are on.
- Updated 27/10/2026: CISA added both PHP2Shell flaws to its list of known exploited vulnerabilities on 26/10/2026. It now advises that anyone who cannot update straight away, or still runs PHP 8.1 or older, should take PHP-based systems offline until they are patched. The advice for older PHP and for sites with no confirmed fix now follows CISA and the NCSC.
- Updated 31/10/2026: CISA says attackers are combining PHP2Shell with a Linux kernel flaw (CVE-2026-46300) to take full control of servers, so ask your host about the server's kernel as well as PHP. Palo Alto Networks says PHP2Shell is being used against its firewalls where the management page is reachable from the internet; fixed PAN-OS versions are out for every supported branch.

What happened
On 21/10/2026 PHP, the language behind WordPress and many other websites, fixed two serious flaws known as PHP2Shell. They let an attacker take over a web server without logging in. Until now, no attack had been shown to work. That has changed: Adel Karimi at Perplexity recorded working attacks on decoy servers running an out-of-date PHP, and Marcus Hutchins at Expel backed up his evidence (BleepingComputer, 26/10/2026). On 26/10/2026 the US agency CISA added both flaws to its list of vulnerabilities known to be exploited.
Does this affect you
If your website runs on WordPress, WooCommerce, Joomla, Drupal or another PHP system, yes, unless your host has already updated PHP. Some firewalls and control panels contain PHP too.
What to do
- Email your host or web person today. Ask: "Which PHP version is our site on, and has it been updated for PHP2Shell?"
- You want 8.2.35, 8.3.36, 8.4.27 or 8.5.12 or later on your version, or a patched package from your host's supplier.
- On 8.1 or older? There are no new releases for these versions. CISA advises taking PHP systems on 8.1 or older offline until they can be patched or updated (26/10/2026), so ask your host about moving up now. PHP published small source fixes for 7.4, 8.0 and 8.1; ask whether one has been applied in the meantime.
- Ask them to also apply the server setting PHP recommended on 23/10 for a related flaw that is not fixed yet.
- If nobody can confirm a fix, the NCSC advises applying PHP's temporary settings and, if that would take too long, taking the site offline until it is fixed. If the site could not be updated straight away, have the server checked for signs of a break-in.
Update 29/10/2026: the server underneath matters too
The US cyber agency CISA says attackers can combine PHP2Shell with an older flaw in Linux, the system most web servers run on, to take full control of the server. It added that Linux flaw to its list of bugs being used in attacks on 28/10/2026. A fix for it has been available since May 2026.
What to do:
- When you ask your host or developer to confirm PHP is updated, also ask: "Is the server's Linux kernel updated for CVE-2026-46300?"
- A kernel update only takes effect once the server restarts, so ask whether it has been restarted since.
- On shared hosting this is your host's job, so a yes from them is enough.
For developers
- CVE-2026-46300, Linux kernel,
net: skbuff: preserve shared-frag marker during coalescing. Named "Fragnesia" by its finder, William Bowling of the V12 security team, who disclosed it on 13/05/2026 with a public proof of concept (AlmaLinux, 13/05/2026). - Local privilege escalation: CVSS 3.1 7.8 (
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), scored by the Linux CNA, which notes a local account is required. That is why it is chained: PHP2Shell gets an attacker running code on the server, and this flaw takes them to root. - KEV: added 28/10/2026, federal due date 31/10/2026, description notes chaining with CVE-2026-109618 and CVE-2026-109619 to implant PHP webshells and run commands as root (catalogue 2026.10.30, checked 31/10/2026).
- Fixed in upstream stable kernels 5.10.257, 5.15.208, 6.1.174, 6.6.141, 6.12.91, 6.18.33, 7.0.10 and 7.1 (CVE.org record). Fix commits are listed in the KEV entry (kernel.org stable). Take your distribution's kernel update and reboot; AlmaLinux, for example, shipped kernel-4.18.0-553.124.3.el8_10, kernel-5.14.0-611.54.5.el9_7 and kernel-6.12.0-124.56.3.el10_1.
- If you can't reboot yet, AlmaLinux's stopgap is to stop the
esp4,esp6andrxrpcmodules loading. Don't use it if you rely on IPsec ESP or AFS, which it breaks.
Update 29/10/2026: Palo Alto Networks firewalls
Palo Alto Networks says attackers are now using the PHP2Shell flaws against its firewalls, where the firewall's management page can be reached from the internet. Its advisory, updated 29/10/2026, lists fixed software for every supported version.
Does this affect you? Only if your business has a Palo Alto Networks firewall (PA-Series or VM-Series) or Panorama. If you don't know, ask whoever set up your internet and network.
What to do:
- Ask your IT person or provider: "Is our Palo Alto firewall's management page reachable from the internet? If so, please lock it down today."
- Ask them to update PAN-OS to the fixed version Palo Alto lists for your branch.
For developers
- Advisory CVE-2026-109618 covers CVE-2026-109618 and CVE-2026-109619 on PAN-OS (PA-Series, VM-Series, Panorama). Vendor score CVSS 4.0 9.2 Critical when the management interface is exposed to the internet, 7.7 when access is restricted to a jump box. Exploit Maturity: Attacked. Palo Alto raised the advisory's severity to Critical and its urgency to Highest on 27/10/2026.
- First fixed versions per branch (copied from the advisory): 12.2.4-h1; 12.1.4-h13, 12.1.7-h11, 12.1.10-h3; 11.2.4-h23, 11.2.7-h23, 11.2.10-h16, 11.2.13-h4, 11.2.16-h1; 11.1.4-h38, 11.1.6-h40, 11.1.7-h12 (released 29/10/2026), 11.1.10-h36, 11.1.13-h16, 11.1.16-h4; 10.2.7-h39, 10.2.10-h42, 10.2.13-h27, 10.2.16-h12, 10.2.18-h13. Unsupported versions: move to a supported fixed version.
- Mitigation: restrict management access to trusted internal IP addresses or a jump box. Threat Prevention Threat ID 543004 and the others listed in the advisory only protect the management interface if its traffic is routed through a dataplane port, decrypted and inspected, as the advisory sets out. Cloud NGFW, Prisma Access and GlobalProtect App are listed as not affected.
- Both CVEs on CISA KEV since 26/10/2026.
Found by
People using Ai. Calif and Wiz found the flaws, with OpenAI credited alongside them; people led the research and used Ai models as tools.
For developers
- CVEs and severity: CVE-2026-109618 (RCE via OOM corruption, GHSA-w8hw-w9fx-j79w) and CVE-2026-109619 (RCE via stale global state, GHSA-6wmf-4rv5-p3rp). Both rated CVSS v4.0 9.2 by the PHP security team (php.net, 20/10/2026). Descriptions here follow php.net; Wiz's blog maps its individual bugs to the CVEs differently, so go by the PHP advisories.
- Affected: all PHP installations serving web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP considers mod_php highest risk, "with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs" (php.net). Earliest affected path is PHP 5.4.0, per Calif and Wiz.
- Fixed: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released 21/10/2026. Restart every worker after updating. PHP 8.2 reaches end of life on 31/12/2026 (php.net).
- 8.1 and older: no new releases from the PHP project. php.net: "Some distributions and LTS vendors provide backported fixes, so contact your vendor for details, or upgrade to a supported version." The PHP security team also "provided minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1 to help people building from source or without access to an LTS vendor." These are source branches, not releases:
PHP-7.4-CVE-2026-109618-109619,PHP-8.0-CVE-2026-109618-109619andPHP-8.1-CVE-2026-109618-109619in github.com/php/php-src. - Partial mitigations (php.net, 21/10): they "reduce exposure to specific attack paths but do not make an installation safe". For CVE-2026-109618:
memory_limit=-1set where applications can't override it (for examplephp_admin_value), a lowpost_max_size(8M without uploads, 32M with), and container or cgroup limits (notRLIMIT_ASorRLIMIT_DATA). For CVE-2026-109619:session.upload_progress.enabled=0inphp.ini, an FPM pool or server config, then restart every worker (notini_set()or.user.ini); on 8.5 alsofatal_error_backtraces=0. - CVE-2026-115560 (unpatched, still current as of 26/10/2026): announced by php.net on 23/10/2026 as "an unlikely RCE vector". It needs an app that sets
session.serialize_handlertophp_binaryorphp_serializein config, then switches it tophpat runtime withini_set()beforesession_start(), with session upload progress still enabled. Workaround:session.upload_progress.enabled=0until the next regular bugfix release, when PHP will publish the full advisory. No newer php.net advisory on these flaws has appeared since 23/10. - Exploitation evidence: BleepingComputer (Sergiu Gatlan, 26/10/2026 09:19 GMT) reports that Adel Karimi, detection and response lead at Perplexity, recorded confirmed RCE on honeypots running Apache mod_php on PHP 8.4.26. Karimi, quoted by BleepingComputer: "This is now confirmed RCE with usable memory disclosure, not just a crash followed by a suspicious process." Marcus Hutchins (Expel), in his own post on X (@MalwareTechBlog): "This is by far the highest quality confirmation of in-the-wild php2shell exploitation I've seen so far." The chain used an oversized
PHPSESSIDcookie for memory disclosure, then an execution request. BleepingComputer notes earlier activity was "limited to scanning, fingerprinting, and use of non-working exploits, with no known compromises" (quoting Dataminr's TRACE team). Wiz's suggested signals: unusual multipart requests followed by memory-limit errors or repeated HTTP 500s, oversized or malformedPHPSESSIDresponse cookies, and unexplained PHP worker churn. - Status at the agencies (re-checked 27/10/2026): both CVEs were added to the CISA KEV catalogue on 26/10/2026 (catalogue version 2026.10.26, released 26/10/2026 22:24 GMT, US federal due date 29/10/2026). CISA revised its alert the same day: organisations that cannot update immediately, or that run PHP 8.1 or earlier, "should take PHP-based systems offline until they can be patched or updated". NCSC's alert (published 21/10, updated 23/10) has no exploitation update.
- Retraction to know about: Palo Alto Unit 42 linked an attack on a European government agency to PHP2Shell on 23/10, then withdrew that link on 25/10: "We are unable to confirm that initial access is associated with the specific PHP2Shell CVEs."
- Finders, in their own words: Calif (Ryan Austin) found the first bug on 01/08/2026 during OpenAI's Patch the Planet initiative: "I asked my LLM companion for help", and "No special harness, or access to models that weren't generally available to everyone were used in the initial bug discovery." Wiz: "August 19, 2026: Wiz Research discovers the first PHP vulnerability using Wiz Atlas, Gemini 4 Argon, and GPT-5.6 Sol." Wiz adds that "Frontier models were critical to making this process practical".
Sources
- php.net, security advisory and releases, 21/10/2026; Session upload progress advisory, 23/10/2026
- NCSC alert, 21/10/2026, updated 23/10/2026
- CISA alert, 21/10/2026, revised 26/10/2026
- CISA Known Exploited Vulnerabilities catalogue, version 2026.10.26, checked 27/10/2026
- Calif write-up and timeline, 21/10/2026
- Wiz, 21/10/2026
- BleepingComputer, exploited in the wild, 26/10/2026
- Unit 42 threat brief with retraction, updated 25/10/2026
- PHP 8.1 source backport branch, GitHub
- CISA Known Exploited Vulnerabilities catalogue, CVE-2026-46300 added 28/10/2026, version 2026.10.30, checked 31/10/2026
- CVE.org record CVE-2026-46300, published 23/05/2026, checked 31/10/2026
- AlmaLinux, Fragnesia (CVE-2026-46300) patches released, 13/05/2026, checked 31/10/2026
- Palo Alto Networks, CVE-2026-109618 advisory, updated 29/10/2026, checked 31/10/2026
Read next
More from The Patch Wave
- Act today

SonicWall firewalls: VPN login flaw can skip SAML and MFA, and it is being used in attacks
SonicWall has fixed a SonicOS SSL VPN flaw that can get past SAML sign-in and the MFA it enforces; SonicWall says it investigated a report of possible exploitation, and CISA lists it as exploited. Ask your IT person to update Gen7 firewalls to 7.3.4-7013 or later and Gen8 to 8.2.3-8015 or later.
- This week

QNAP NAS boxes running Plex: attackers are getting in through Plex2Shell
QNAP says some customers' NAS boxes appear to have been compromised through Plex2Shell, four chained flaws in Plex Media Server. If you run Plex on a NAS or any other computer, update it to 1.43.3.10861 or later, and if it was reachable from the internet, treat the box as possibly compromised.
- Act today

Alpine and musl SSH: a long password can open key-only accounts
On Alpine and other musl systems without PAM, a long password can log into key-only SSH accounts (CVE-2026-123158). Update OpenSSH and restart sshd today, or turn password logins off. Previdian saw attacks start within nine hours and confirmed root on a honeypot.