Skip to content
Contact uscontact@scalemorph.com

Research report

PHP Runtime Vulnerabilities

Patch first. Then migrate with intent.

Critical PHP runtime flaws demand immediate patching. When legacy PHP is the deeper risk, stage a secure migration to Node.js and TypeScript without a big-bang cutover.

Read the report

Authors

Hamza JamshedFounder & Technology Director, ScaleMorph

Everyone can see that PHP still powers critical products. What has not been settled is what operators do when the runtime itself is the vulnerability: patch tonight, then decide whether staying on PHP is still the right long-term bet.

9.2CVSS for both critical RCE flaws in the PHP runtime
8.1+EOL PHP branches that no longer receive upstream fixes
0Acceptable public exposure while a vulnerable runtime is still live

The runtime risk

In late October 2026 the PHP project shipped fixes for two critical remote code execution issues in the PHP runtime itself: CVE-2026-109618 and CVE-2026-109619 (often discussed together as “PHP2Shell”). CERT-EU and major cloud providers urged organisations to patch immediately.

The risk is not only “old WordPress plugins.” It sits in the language runtime that serves web requests, including PHP-FPM, mod_php, and related setups.

What’s changing

  • Unauthenticated remote code execution is possible under vulnerable PHP versions.
  • Application and CMS updates do not automatically update the PHP binary underneath them.
  • Internet-facing workers remain in scope until the patched runtime is redeployed and verified.
  • EOL branches (PHP 8.1 and older) no longer receive updates from the PHP project.

What to do

Inventory every host, container, and PaaS runtime that executes PHP. Confirm the running binary, not only composer.lock. Treat public exposure as urgent until patched builds are live.

Patch first. Always.

Migration is not an emergency substitute for patching. A six-month rewrite that leaves vulnerable PHP online is the wrong trade.

What’s changing

  • Fixes landed in supported branches (for example PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35).
  • Operators who cannot patch immediately need isolation, not optimism.
  • Security and product teams must share one inventory of PHP surfaces.

What to do

  1. Move to a patched supported release, or a verified vendor/LTS backport as a bridge.
  2. Redeploy and verify versions in every environment.
  3. If you cannot patch quickly, isolate public exposure until you can.
  4. Only then open the migration conversation.

When migration wins

Patching buys safety on a supported line. Migration becomes rational when any of these are true:

What’s changing

  • You are trapped on EOL PHP with painful upgrade paths and fragile dependencies.
  • The product is already growing toward APIs, portals, and cloud-native delivery where TypeScript and Node.js are the team’s daily language.
  • You want compile-time contracts, shared types with the frontend, and clearer boundaries for auth, billing, and integrations.
  • Security and ops want fewer surprise-runtime moments and a stack they can hire for and observe consistently.

What to do

Decide with outcomes, not fashion. Node.js and TypeScript do not make you invulnerable. They remove this class of PHP-runtime exposure from components you retire, and they let you build with typed services, tested auth, owned repositories, and a real handoff.

Secure strangler path

We use a strangler approach: new Node.js / TypeScript services take over routes and domains beside the existing PHP system until the old paths can be retired.

What’s changing

  • Big-bang cutovers concentrate risk on a single night.
  • Parity-first migration beats rewrite theatre mid-flight.
  • Proxy and gateway cutovers keep rollback paths until PHP surfaces go dark.

What to do

  1. Discovery — map critical flows, data stores, auth, jobs, and third-party integrations.
  2. Target architecture — NestJS (or equivalent Node services) on AWS with OAuth2 / OIDC / JWT patterns that match how you sell access.
  3. Parity, not rewrite theatre — move behaviour deliberately; prove correctness before improving business rules.
  4. Cutover by surface — retire PHP module by module with rollback paths intact.
  5. Handoff — code in your repos, docs and runbooks, observability in place.

What ScaleMorph delivers

If PHP still powers a customer-facing or revenue-critical surface:

What’s changing

  • Founders and operators need production software they own, not demos.
  • Security has to travel with the build: auth, least privilege, and observability.
  • The finish line is a team that can run what ships.

What to do

  • Get immediate clarity on what must be patched versus what should be scheduled for migration.
  • Stage Node.js / TypeScript delivery for portals, APIs, and cloud backends.
  • Keep ownership: you keep the code; we leave you ready past the finish line.

Start a project or browse how we build platforms.

Next step

Talk through a secure migration

We help close the runtime gap, then stage a reliable Node.js and TypeScript migration your team can own.

Start a project

Talk to commercial

Ready to apply this
on your stack?

Talk to David Lumsdon, our Commercial Strategy Director.
A short conversation to see whether a first milestone makes sense.

Or email David Lumsdon, Commercial Strategy Director, at david@scalemorph.com.