php2shell is two critical memory-safety bugs in PHP itself (not in your code or plugins). The PHP security team rates both CVSS v4.0 9.2 and says they can allow unauthenticated remote code execution. Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. PHP 8.1 and older get no official release: upgrade, or use a vendor or source backport. Exploitation is happening in the wild; Amazon saw the first attempt on 17 October.
What happened
On 21 October 2026 the PHP project released fixes for CVE-2026-109618 and CVE-2026-109619, together known as php2shell. They were found and reported by Calif.io, Wiz, OpenAI, Quarkslab and others. The CVE identifiers leaked a day earlier, so the release was moved up by one day.
Both bugs are in how the PHP runtime cleans up memory when a request fails. CVE-2026-109618 is triggered by running out of memory while internal request data is only partly set up; cleanup then treats that data as valid. CVE-2026-109619 is a use-after-free: state left over from one request points at freed memory, and a later request on the same worker uses it. PHP says both can be exploited by an unauthenticated remote attacker, and memory disclosure is a confirmed impact of CVE-2026-109619.
Because the flaw is in the runtime, updating your app code, WordPress core or plugins does not fix it. PHP itself has to be updated.
Am I affected?
Probably yes if your app runs on PHP 5.4 or later and serves web requests. PHP says every installation that serves web requests is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed, and considers mod_php the highest risk.
- Yes: WordPress, Drupal, Joomla, Magento or Laravel sites, on any host.
- Yes: PHP shared hosting such as Hostinger web hosting plans (the classic
public_htmlhosting). The host manages PHP, so check the PHP version in the control panel and ask support if it isn't patched. - Yes: your own server or VPS with PHP installed (Hetzner, DigitalOcean Droplets, AWS, Coolify and similar). You patch it yourself.
- Yes, if you deployed a PHP app as a container on Railway, Render, Fly.io or DigitalOcean App Platform. These hosts run whatever runtime your image or buildpack uses, so rebuild with a patched PHP.
- No: static sites and JavaScript/TypeScript apps on Vercel, Netlify or Cloudflare Pages, apps hosted by Lovable or Bolt, Node apps on Replit, Railway or Render, and Supabase. None of these run PHP unless you added it yourself.
- No: a Node.js web app on Hostinger (Business or Cloud plan). It runs on Node, not PHP; a WordPress site on the same account still needs checking.
If you're not sure: if your project has .php files or a composer.json, it runs on PHP.
How to check your PHP version
- Shared hosting: look for the PHP version (often 'PHP configuration') in your hosting panel, e.g. hPanel on Hostinger.
- WordPress: Tools → Site Health → Info → Server shows the PHP version.
- Server or container: run
php -v(CLI) and check the FPM/Apache version too, since they can differ. On Debian or Ubuntu packages, the distribution's security tracker tells you which package version contains the fix. - Temporary check page: a file with
<?php echo PHP_VERSION;shows the version the web server uses. Delete it right after.
php -v
# PHP-FPM, if installed (binary name varies, e.g. php-fpm8.3)
php-fpm -v What to do
- Update PHP to a fixed release: 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or your distribution's patched package). Then restart every PHP worker (PHP-FPM, Apache).
- On PHP 8.1 or older: the PHP project ships no official release. Upgrade to a supported version (8.2 or newer), or get a backported fix from your distribution or LTS vendor. The PHP security team also published minimal source backports for 7.4, 8.0 and 8.1 for people who build from source. 5.4 through 7.3 get nothing from the project.
- On shared or managed hosting: you can't patch PHP yourself. Ask your host whether the update has been applied, and switch your site to a supported PHP version in the panel if it's on 8.1 or older.
- Containers (Railway, Render, Fly.io, Cloud Run): rebuild the image on a patched base image and redeploy.
- Stopgap: put the site behind Cloudflare. Cloudflare deployed WAF rules against php2shell on all plans with WAF, including Free, from 21 October 03:02 UTC. Cloudflare's CTO calls this a stopgap only, and it covers only traffic routed through Cloudflare. Patch anyway.
- If you cannot update right away, PHP lists configuration changes that reduce exposure but do not make an installation safe:
memory_limit=-1(not overridable by apps) for CVE-2026-109618, andsession.upload_progress.enabled=0(plusfatal_error_backtraces=0on PHP 8.5) for CVE-2026-109619. Restart workers afterwards. - Look for signs of compromise from 17 October onward, not just from the disclosure date: unknown PHP files, new admin users, changed files, odd outbound traffic. Amazon Threat Intelligence saw a first exploitation attempt on 17 October and says php2shell is now broadly exploited.
Is it being exploited?
Yes. Amazon Threat Intelligence reported an exploitation attempt against its honeypots on 17 October 2026, four days before disclosure, and more attempts from multiple actors on 21 October. Cloudflare and watchTowr also report attack traffic. Code claiming to exploit the bugs circulates publicly; Tenable hasn't verified it works and warns that such code is sometimes laced with malware.
Scores: the PHP security team rates both CVEs CVSS v4.0 9.2. An incorrect 10.0 score circulated with the leaked identifiers.
Common questions
Does updating WordPress or my plugins fix php2shell?
No. The bugs are in the PHP runtime, so PHP itself has to be updated. On shared hosting that is your host's job; check the PHP version in your panel.
Is my Lovable, Bolt or Vercel app affected by php2shell?
Not by default. Static sites and JavaScript/TypeScript apps on Vercel, Netlify, Cloudflare Pages, Lovable, Bolt or Supabase don't run PHP. Only a PHP backend you added yourself would be.
Is Cloudflare's WAF enough?
No. Cloudflare's rules are on by default on all plans with WAF, including Free, but Cloudflare calls them a stopgap and says to patch PHP. They only cover traffic that goes through Cloudflare.
Related on VibeLiftoff
- php2shell and WordPress: am I affected? Status by host
- Hostinger: plans, PHP hosting vs Node.js web apps
- Cloudflare Pages: free static hosting (no PHP)
- Compare all hosts
- React Router Nov 2026 release
- Railway IP blocks
- Next.js Nov 2026 release
- Malicious MCP npm packages
- Northflank incident
- Cursor Claude Code extension
- Railway incident
- php2shell for WordPress
- All security advisories