Just launched: 360° security audit to protect your legacy code from AI exploits.

Discover

PHP Migration Services for PHP2Shell and Legacy Security Risks

Need to act on PHP2Shell fast? Legacyleap assesses your PHP estate and moves each application onto a supported runtime 50–70% faster, through governed code transformation, testing, and validation.

runs inside your infrastructure findings in 3–5 days 150+ assessments completed
Legacyleap platform assessing a PHP codebase Legacy_PHP_Code
Assessment Agent Documentation Agent Recommendation Agent Modernization Agent QA Agent

Trusted by enterprise engineering teams

MedtronicClairULAB SystemsBloombergOportun

PHP2Shell: What Happened, Who’s at Risk and What to Do

Two critical PHP vulnerabilities went public in October 2026. Here is what it means for your applications and the steps to take now.

What Happened

On October 21, 2026, researchers disclosed PHP2Shell, two critical flaws in the PHP engine (CVE-2026-109618 and CVE-2026-109619). With no login, attackers can run code on your server or steal passwords and API keys from its memory. The flaw lives in PHP itself, not your application, so updating your framework won’t fix it.

Who's at Risk

  • PHP 5.4 to 8.5: every version in this range is affected, whatever application runs on it.
  • PHP 5.4 to 8.1: these versions are end of life, so they got no official fix.
  • PHP 8.2: covered for now, with security support ending December 31, 2026.

What Needs to Be Done

  • On PHP 8.2 or newer: update to the fixed release and restart every PHP process.
  • On PHP 8.1 or older: isolate these servers or put them behind a WAF now, then plan an upgrade or a migration to Java or .NET, since no official patch exists.
  • On any server exposed before patching: rotate the passwords, API keys and tokens it held.

Is Your PHP Version Still Supported?

Find the version your applications run on to see whether it still gets security fixes, whether PHP2Shell is patched, and what to do next.

PHP VersionSecurity SupportPHP2Shell FixWhat to Do
8.3, 8.4, 8.5SupportedFixed in 8.3.36, 8.4.27 and 8.5.12Update to the fixed release, restart every PHP process, and keep upgrading on your normal cycle
8.2Ends December 31, 2026Fixed in 8.2.35Patch now, then upgrade to 8.4 or 8.5 before support ends
7.4, 8.0, 8.1End of lifeNo official release, only source backports for teams that compile PHP themselvesUpgrade PHP and your framework together, or migrate to Java or .NET if the framework has no supported upgrade path
5.4 to 7.3End of lifeNo fix from the PHP projectPlan a larger upgrade or a migration to Java or .NET, since jumping from PHP 5 or early PHP 7 brings the most breaking changes

Versions older than PHP 5.4 have had no security support for more than a decade.

Claim Your $0 PHP Security Assessment

Our free Security Posture Assessment maps every legacy PHP application, flags the CVEs that can’t be patched, and recommends a migration path for each.

  • findings in 3–5 days
  • runs inside your infrastructure
  • 150+ assessments completed

PHP Upgrade and Migration Services for Every Version and Major Framework

Whether you need a PHP version upgrade, a Laravel, CodeIgniter or Symfony upgrade, or a PHP to Java or .NET migration with a React or Angular frontend, Legacyleap’s PHP modernization services get your applications off unsupported PHP.

PHP Version Upgrade Services

  • Upgrade PHP 5.6, 7.x, 8.0 and 8.1 to PHP 8.4 or 8.5
  • Replace removed functions like mysql_*, ereg_* and create_function()
  • Update Composer dependencies and PHP extensions

Laravel, CodeIgniter and Symfony Upgrades

  • Laravel version upgrades to current releases
  • CodeIgniter 3 to 4 migration
  • Symfony upgrades with deprecations resolved

PHP to Java Migration

  • Rebuild PHP backends on Java 25
  • Business logic extracted and carried across
  • Equivalence proven with replayable parity tests

PHP to .NET Migration

  • Migrate PHP applications to .NET 10
  • Built for teams standardizing on the Microsoft stack
  • Every release backed by an evidence pack

Legacy PHP Frontend Modernization

  • Replace PHP-rendered templates with React or Angular
  • Modern UI built on APIs from the new backend
  • Delivered as part of a PHP to Java or .NET migration

PHP Security Assessment

  • Map every legacy PHP application and its vulnerabilities
  • Map unpatched CVEs on end-of-life PHP
  • Compliance risk separated from security risk, in 3–5 days at $0

PHP Upgrade or Rearchitect: Two Ways Off Unsupported PHP

Legacyleap’s PHP migration services move applications off unsupported PHP versions in one of two ways: upgrade PHP and your framework, or migrate the application to Java or .NET.

Unsupported PHP
path astay on php

PHP Version Upgrade

Upgrade PHP to 8.4 or 8.5 and bring your framework with it, including Laravel version upgrades, CodeIgniter 3 to 4 migrations and Symfony upgrades.

Best for: teams that want the shortest route to supported PHP and plan to keep building in PHP.

What Changes

  • PHP runtime moves to 8.4 or 8.5
  • Framework moves to a current release
  • Removed functions and abandoned packages are replaced

What Stays the Same

  • Your PHP codebase and your team's skills
  • Application architecture
  • Database, URLs and integrations
Plan my PHP upgrade
path bmove off php

PHP to Java or .NET Migration

Rearchitect the backend onto Java 25 or .NET 10 and rebuild the frontend in React or Angular, carrying every business rule across.

Best for: teams that want off PHP for good, struggle to hire PHP developers, or have outgrown their framework.

What Changes

  • Backend language and framework
  • UI layer rebuilt in React or Angular

What Stays the Same

  • Business rules and workflows
  • Data and integrations
  • Application behavior, proven with an evidence pack
Plan my Java or .NET migration

How to Choose

Choose the upgrade when the application is healthy and your team knows PHP. Choose a migration to Java or .NET when the framework has no supported upgrade path, hiring PHP developers is hard, or the architecture holds back new work. If you’re not sure, the $0 Modernization Assessment recommends a path for each application.

How Legacyleap Upgrades and Migrates PHP Applications 50–70% Faster

Applications on unsupported PHP need to reach a supported version quickly, working exactly as they did before. Legacyleap pairs AI agents with modernization engineers, backed by human review, parity testing and a full audit trail.

  1. Assess Your PHP Estate

    The Assessment Agent inventories every PHP application, version, framework, extension and Composer dependency, and flags the ones running on unsupported PHP.

  2. Document How Each Application Works

    The Documentation Agent maps routes, business rules, data flows and integrations, so the logic buried in old code is written down before anything changes.

  3. Recommend the Right Path

    The Recommendation Agent recommends upgrade or migration for each application, with ordered phases and effort and risk scored module by module.

  4. Convert the Code

    The Modernization Agent combines deterministic upgrade tooling with AI and delivers every change as a reviewable pull request with a gap report.

  5. QA That Ensures Full Parity

    The QA Agent replays real inputs against the old and new application, compares the outputs to prove they match, and packages the results into an evidence pack that shows production equivalence.

Why Teams Choose Legacyleap for PHP Migration

50–70% Faster Than Manual Modernization

Tooling and agents automate the bulk of the conversion, so your engineers spend their time reviewing changes instead of rewriting code.

Evidence Your Auditors Can Review

Every release ships with an evidence pack of repeatable tests and checksummed results that security, QA and compliance teams can verify for themselves.

Expert Engineers in the Loop

Our modernization engineers review every agent change and resolve edge cases, and AI never merges or deploys code on its own.

Your Code Stays Inside Your Infrastructure

The assessment and the migration run in your VPC or on-premise, using your approved AI models.

150+production-grade assessments for enterprise teams
50M+lines of code migrated across engagements
100%functional parity validated before deployment
15+legacy stacks supported, including PHP, Java and .NET

Trusted by enterprise engineering teams in healthcare, financial services, insurance, aviation and manufacturing

G2Verified4.5/5

“Legacyleap’s deep expertise in older technologies de-risked critical knowledge gaps.”

Legacyleap was well versed in older technologies and frameworks that many newer developers weren’t familiar with.

Marko T.CTO · Mid-Market (51–1000 emp.)
G2Verified5/5

“Legacyleap moved us from Desktop to Web without stopping the business.”

The team modernized with 95% less in-house effort, and discovered bugs users had experienced but never reported, along with unhandled corner cases.

BS
Benjamin S.Director of IT · Enterprise (1000+ emp.)

Your Code Stays in Your Environment

After a flaw that leaks secrets from server memory, the last thing a security team wants is source code leaving the building. The assessment and the modernization both run inside your infrastructure.

Your compute

Runs in your VPC or on-premise, inside your firewall.

Your models

Use your approved LLMs or self-hosted models, with no outbound API calls required.

Your data

Client code is never used to train models or shared across clients.

Your audit trail

Every AI action is logged with role-based access and human approvals.

Book a $0 Security Posture Assessment

Find out which applications are exposed and where your security and compliance risk sits. Findings arrive in 3–5 days, and the report is yours whether or not you continue with us.

  • Dependency and vulnerability map of your legacy PHP estate
  • Unresolvable CVE inventory with risk classification
  • Compliance risk separated from active security risk
  • Security posture findings report in 3–5 days
  • Recommended paths and timelines

Request your assessment.

Please enter your name.
Please enter your company.
Please use your work email address.
Runs inside your infrastructure. No source code leaves it.

Thank you. We will be in touch shortly.

Frequently Asked Questions

Is PHP 8.1 end of life?

Yes. PHP 8.1 reached end of life on December 31, 2025, so it received no official release for PHP2Shell. The PHP security team published minimal source backports, which only help teams that compile PHP themselves.

Is PHP 8.2 still supported?

Until December 31, 2026. PHP2Shell is fixed in 8.2.35, and after that date 8.2 receives no further security fixes, so teams on 8.2 should plan an upgrade to 8.4 or 8.5 now.

Does updating Laravel or Symfony fix PHP2Shell?

No. The flaw is in the PHP runtime, so the fix is a patched PHP release followed by a restart of every PHP worker and replacement of running containers. Framework updates leave the runtime as it was.

Is a WAF enough while we plan the migration?

No. WAF rules block known exploit vectors for traffic that passes through the WAF. Requests that reach the origin server directly bypass it, and researchers track further variants, so treat a WAF as time to plan the move to a supported runtime.

Should we upgrade PHP or migrate to Java or .NET?

It depends on the application. A healthy codebase with a team that knows PHP usually upgrades. A framework with no supported upgrade path, a custom codebase on PHP 5 or difficulty hiring PHP developers usually points to migrating to Java or .NET. The $0 Modernization Assessment recommends a path for each application.

Can we stay on PHP?

Yes. The upgrade path keeps your application in PHP and moves the runtime and framework to supported releases together.

What does Legacyleap cover during an active incident?

Legacyleap handles the step after the emergency: assessing exposure across your estate and moving each application onto a supported runtime. Server patching, threat hunting and breach investigation belong with your security or incident response team.

How long does a PHP migration take?

Assessment findings arrive in 3–5 days. Migration timelines depend on codebase size, framework and test coverage, and the $0 Modernization Assessment gives you an estimate for each application.

Find Out Which of Your PHP Applications Are Exposed

Share your stack details and get a map of your exposed PHP applications, the CVEs that can’t be patched and your compliance risk, in 3–5 days, inside your own infrastructure.

Want an Application Modernization Cost Estimate?

Get a detailed and personalized cost estimate based on your unique application portfolio and business goals.