PHP2Shell: Is Your Website Safe? A Plain-English Guide to Fixing the 2026 PHP Vulnerability

AIBlockchainHelp

16 Min Read

If your business website runs on PHP, there’s a security update you shouldn’t leave for another day.

On October 21, 2026, the PHP project released fixes for two serious vulnerabilities, CVE-2026-109618 and CVE-2026-109619. Together, they’re known as PHP2Shell. Both received a critical severity rating of 9.2 under CVSS 4.0.

The concern isn’t limited to websites with outdated plugins or weak passwords. These flaws exist in PHP itself, the software running behind many WordPress, WooCommerce, Magento, Drupal, Laravel and other websites.

An attacker may be able to exploit an affected PHP installation without having an account on the website. Successful exploitation could allow code execution on the server or exposure of sensitive information.

For a business, that could mean far more than a broken webpage.

The immediate job is to find out which PHP version your website actually uses, confirm whether your hosting provider has installed the fix, and check that the patched version is running.

This guide covers those steps, including what to do if your website still depends on an older PHP release.

The Short Answer: What Should Website Owners Do?

PHP2Shell affects vulnerable PHP installations that process web requests.

The first fixed upstream releases were:

  • PHP 8.5.12
  • PHP 8.4.27
  • PHP 8.3.36
  • PHP 8.2.35

If you’re running an earlier unpatched release, your server needs attention. PHP 8.1 and older branches no longer receive regular official security releases, although some operating-system vendors provide their own security backports.

Updating WordPress or its plugins isn’t enough. The PHP runtime must be patched separately.

If your hosting provider manages PHP, ask them to confirm that your website is running a fixed build. If you manage your own server, install the appropriate security update, restart the affected PHP processes and verify the version serving your website.

What Is PHP2Shell?

PHP processes requests that arrive at a website. It runs application code, works with databases, handles forms and helps generate the pages visitors see.

PHP2Shell involves two problems in the way PHP handles memory during certain requests.

CVE-2026-109618 concerns what happens when PHP runs into an out-of-memory condition. Under particular circumstances, request processing can stop before internal data has been properly initialized. Later cleanup operations may then access invalid memory.

CVE-2026-109619 involves stale internal state. Information associated with one request may remain referenced after the memory holding it has been released. A later operation can encounter that invalid reference.

These aren’t ordinary website coding mistakes. They affect the underlying runtime.

That’s why installing the latest WordPress theme or removing an unused plugin doesn’t repair the problem.

The severity also depends on how PHP is deployed. Security researchers have highlighted particular risks involving Apache mod_php, while other server configurations may have different exploitation conditions.

Website owners don’t need to understand every memory-management detail to take action. They do need to establish whether their installation is affected.

Why PHP2Shell Deserves Immediate Attention

Most business owners are familiar with the usual website security advice: update plugins, use strong passwords and avoid installing software from unknown sources.

Those precautions still matter, but they don’t address this particular weakness.

PHP2Shell is more concerning for several reasons.

An Attacker May Not Need Login Credentials

The vulnerabilities can potentially be exploited through requests to an affected server. A stolen administrator password isn’t necessarily required.

Different PHP Applications May Be Exposed

A website built with WordPress isn’t the only concern. Magento, Drupal, Joomla, Laravel applications and custom PHP systems can also depend on vulnerable PHP installations.

The application framework doesn’t automatically protect the runtime beneath it.

Sensitive Server Information Could Be at Risk

Successful exploitation may allow an attacker to execute code or access information held in PHP process memory.

Depending on the affected environment, that could expose credentials, tokens or other sensitive application data.

Exploitation Is No Longer Just a Theoretical Concern

Security reporting after the October disclosure documented active exploitation involving PHP2Shell. The issue has also been included in government and industry security guidance.

That doesn’t establish that every vulnerable website has been compromised. It does mean delaying a security update is an unnecessary risk.

Which PHP Versions Are Vulnerable?

Use this table as a starting point when checking your website.

PHP branchFirst fixed upstream versionRecommended actionPHP 8.58.5.12Install 8.5.12 or a later patched releasePHP 8.48.4.27Install 8.4.27 or laterPHP 8.38.3.36Install 8.3.36 or laterPHP 8.28.2.35Patch now and plan an upgrade before end of supportPHP 8.1 or olderNo regular upstream security releaseUpgrade or confirm vendor-supported security backports

There’s an important exception to remember.

Linux distributions sometimes apply security fixes without changing the main PHP version number to match the upstream release.

For example, a server might report an older-looking PHP version while using a distribution package that contains the relevant patches.

In those situations, check the vendor’s security advisory and package changelog for CVE-2026-109618 and CVE-2026-109619.

Don’t decide that a server is vulnerable or safe from the version number alone when vendor backports are involved.

How to Check Your Website’s PHP Version

You don’t necessarily need server administration experience to find the version. The method depends on where your website is hosted.

Method 1: Check Inside WordPress

If you can access the WordPress dashboard:

  1. Open Tools.
  2. Select Site Health.
  3. Choose the Info tab.
  4. Expand the Server section.
  5. Find the PHP version entry.

This tells you which PHP version WordPress reports for that website.

If the number is below the relevant fixed release, contact your hosting provider to confirm its patch status.

Method 2: Check Your Hosting Control Panel

Most shared hosting providers offer PHP settings through their account dashboards.

In cPanel, look for MultiPHP Manager or Select PHP Version.

In Plesk, PHP information is generally available through the domain’s hosting or PHP settings.

Managed hosting providers may place the information in their own site-management interface.

If you can’t find it, contact support. You can ask:

“Can you confirm whether my website’s PHP runtime has been patched for CVE-2026-109618 and CVE-2026-109619?”

Ask which build is currently running, not just whether a security update has been scheduled.

Method 3: Check a VPS or Dedicated Server

If you manage the server yourself, php -v can show the command-line PHP version.

However, the command-line installation may differ from the PHP runtime serving your website.

Check the PHP-FPM configuration, Apache module or other runtime actually handling web requests.

If you use a temporary phpinfo() page to inspect the environment, restrict access and delete the file immediately afterward. It can reveal sensitive server configuration details.

For containerized websites, inspect the PHP version inside the running container rather than relying on the host server.

7 Steps to Protect Your Website From PHP2Shell

Finding the PHP version is only the beginning. A reliable update also involves backups, process restarts and application testing.

1. Back Up the Website Before Making Changes

Create a fresh backup of the website files and database.

Make sure you know where the backup is stored and how to restore it.

A backup is particularly important when moving from an older PHP branch to a newer one, because existing themes, plugins or custom code may need compatibility changes.

2. Confirm Whether Your Hosting Provider Has Applied the Fix

Don’t assume the update is complete simply because your hosting provider normally handles server maintenance.

Check the provider’s security announcements or contact its support team.

Ask whether the fix covers the PHP runtime serving your website and whether all affected processes have been restarted.

If your business has several websites under the same hosting account, check each one.

3. Install a Patched PHP Release

For supported upstream PHP branches, install a fixed release or a later security-maintained version.

On shared hosting, your provider may offer the update through a control-panel selection.

On a managed server, the provider may apply it automatically.

On a VPS or dedicated server, your administrator may need to update the operating-system packages or PHP installation directly.

Avoid downloading unofficial PHP builds simply because they claim to fix PHP2Shell.

Use the PHP project, your operating-system vendor or another trusted support provider.

4. Restart the Affected PHP Processes

Installing updated packages doesn’t always replace code already loaded into running processes.

PHP-FPM workers, Apache processes and other long-running PHP services may need restarting.

For containerized applications, rebuild and redeploy images that contain the vulnerable runtime.

This matters because updating the host machine doesn’t necessarily change PHP inside a container.

Your server administrator should choose the appropriate restart procedure for the environment.

5. Verify the Running Version

After the restart, check the version again.

This time, confirm the PHP build that actually serves web requests.

Also inspect any staging environments, development subdomains, secondary applications or older installations that remain publicly accessible.

A patched production website doesn’t help if an abandoned test installation is still running a vulnerable runtime.

6. Test the Website After Updating

A security update is only complete when the website is working as expected.

Check the homepage and important service pages first. Then test the features customers actually use.

For a business website, that may include enquiry forms, account logins and document uploads.

For an ecommerce website, check product pages, the cart, checkout, payment integration and order notifications.

Review the server’s error logs as well. Changes to PHP’s memory handling can expose problems in applications that previously relied on unusual behavior.

The website migration QA checklist from Start Designs can help organize these checks.

7. Review Credentials and Look for Signs of Compromise

Patching closes the vulnerability, but it doesn’t automatically remove malicious files or accounts if an attacker already gained access.

Review relevant security logs and investigate suspicious activity during the period the server was exposed.

If compromise is suspected or confirmed, rotate affected credentials and secrets, including database passwords, administrator credentials and application API keys.

Payment integrations, email services and third-party systems may also need attention.

For a business handling sensitive information, involve a qualified security professional before treating the incident as resolved.

What If Your Website Still Uses PHP 7.4, 8.0 or 8.1?

Older PHP versions create a more complicated situation.

You may be using an old plugin, a custom application developed years ago, or a hosting environment that hasn’t been upgraded for a long time.

Changing the PHP version without testing could cause parts of the website to stop working.

That doesn’t mean you should remain on an unsupported release indefinitely.

There are three practical approaches.

Upgrade to a Supported PHP Version

This is generally the preferred long-term solution.

Start with a staging copy of the website. Update the PHP runtime, test the application and address compatibility errors before making the same changes to production.

Some websites move to a newer PHP version with little difficulty.

Others require changes to old libraries, plugins or custom code.

Check Whether Your Vendor Provides Security Backports

Certain operating-system and extended-support vendors maintain older PHP packages with security patches.

If you’re using one of these services, request confirmation that the two PHP2Shell vulnerabilities have been addressed.

A supported vendor backport can provide a safer temporary route while a larger application upgrade is planned.

Consider Modernizing an Outdated Application

Sometimes the PHP upgrade reveals a wider problem.

A business may have an old application that depends on abandoned libraries, undocumented customizations or software nobody currently maintains.

In that situation, repeatedly applying temporary fixes may become more expensive than improving the application properly.

Start Designs offers application modernization and website redesign services for businesses evaluating older systems.

The decision should follow a technical assessment. A complete rebuild isn’t always necessary.

What If You Can’t Update PHP Immediately?

Some businesses need additional time to test an upgrade, particularly when their website supports orders, bookings or other essential operations.

Temporary safeguards can reduce exposure while the update is being prepared.

A web application firewall may help block known attack patterns. Server administrators can also review request limits, exposed services and the PHP configuration.

One setting identified in security guidance is session.upload_progress.enabled = 0, which can block certain attack paths. Its effect depends on the environment, and changing it may affect applications that use PHP’s native upload-progress feature.

Other memory and request-handling mitigations require careful configuration. Applying them incorrectly can disrupt the website or create availability problems.

For that reason, temporary mitigations should be implemented by someone familiar with the server configuration and the vendor’s current guidance.

None of these measures replaces patching PHP.

If a staging environment doesn’t need public access, restrict it until the update is complete.

How to Tell Whether Your Website Has Been Targeted

A vulnerable PHP version doesn’t prove that someone accessed your server.

Still, there are signs worth investigating.

Unexpected PHP crashes, repeated HTTP 500 errors and unusual memory-related errors may deserve attention, especially if they occur alongside suspicious web requests.

Other warning signs include unfamiliar administrator accounts, files that nobody recognizes, unexplained scheduled tasks or changes to website configuration.

These symptoms can have harmless explanations too. A PHP memory error might simply come from an application trying to process a large file.

The important thing is to investigate rather than assume.

Check server logs, file changes, account activity and available security monitoring records.

If you discover evidence of unauthorized access, preserving relevant logs and obtaining professional incident-response assistance should take priority.

Simply updating PHP isn’t sufficient when an attacker may already have established another way into the server.

For businesses unsure about their current setup, the PHP development team at Start Designs can help assess the PHP environment and upgrade requirements.

You can also contact Start Designs to discuss a website security review.

A Note for Ecommerce Website Owners

An online store has more to lose from a serious server compromise than a temporary interruption to its homepage.

Customer accounts, order records, payment integrations and administrative systems all depend on the website working securely.

If you operate a WooCommerce shop, a Magento store, a PrestaShop website or a Drupal application, confirm which PHP runtime the system uses.

Don’t stop after checking the storefront.

Review background jobs, scheduled processes, administrative interfaces and any connected PHP applications that share the hosting environment.

After applying the security update, test the checkout process carefully.

A store may appear normal until a customer tries to pay, apply a discount, upload a file or complete an order.

For PrestaShop businesses, the PrestaShop upgrade checklist provides additional testing considerations.

Agencies responsible for multiple stores should maintain a record of each client’s PHP version, hosting provider, patch status and responsible administrator.

That makes it easier to identify which websites need attention first.

How to Reduce the Risk of Future PHP Vulnerabilities

PHP2Shell is a reminder that website security involves more than the application visitors can see.

A business might update its content regularly and still overlook the server software underneath.

There are a few maintenance habits worth establishing.

Keep a Record of Your Website’s Technology

Document the hosting provider, PHP version, application framework, important plugins and people responsible for maintenance.

For businesses with several websites, this record can save hours when an urgent security update is released.

Plan PHP Upgrades Before Support Ends

Waiting until a version is unsupported can turn an ordinary maintenance task into a larger project.

Review PHP’s support schedule and arrange compatibility testing before the deadline.

PHP 8.2, for example, reaches the end of its upstream security support on December 31, 2026.

Remove Old Websites You No Longer Use

Unused staging websites, old campaign pages and abandoned test installations can remain accessible long after everyone has forgotten them.

If they aren’t needed, remove them safely. If they must remain, keep them updated and restrict access where appropriate.

Review Your Hosting and Support Arrangements

Find out who applies server-level security updates.

If your provider manages the infrastructure, ask how critical vulnerabilities are handled and how customers are notified.

If your business manages its own VPS, make sure someone is responsible for monitoring security advisories and applying patches.

Maintain WordPress and Other Applications Separately

Updating PHP doesn’t replace routine application maintenance.

WordPress core, themes, plugins and custom integrations still need their own updates and testing.

Start Designs provides WordPress maintenance and development support for businesses that need help managing their websites.

For further reading, see the Start Designs guide to WordPress development best practices and the article on customer data security.

Frequently Asked Questions

Is My Website Vulnerable to PHP2Shell?

Your website may be exposed if it uses an affected PHP runtime to serve web requests. Check the exact PHP build and any vendor security backports. The original upstream fixes were released in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.

Does Updating WordPress Fix PHP2Shell?

No. WordPress and PHP are separate software components. Updating WordPress core, themes and plugins doesn’t patch the underlying PHP runtime. Your hosting provider or server administrator must address the PHP installation.

Can Wordfence or Another Security Plugin Protect My Website?

Security plugins can provide useful protections, but they don’t repair vulnerabilities inside PHP itself. A web application firewall may reduce exposure to known attack patterns. Installing the appropriate PHP security update remains necessary.

Which PHP Version Should I Use?

Use a supported PHP branch with the latest available security fixes and confirm compatibility with your application. If your website still depends on an older branch, check whether your vendor provides supported backports and plan an upgrade.

Will Updating PHP Break My Website?

A patch update within the same PHP branch is generally less disruptive than moving between major or minor branches, but testing is still important. Older plugins, libraries and custom code may require changes when upgrading from PHP 7.x or early PHP 8 releases.

How Can I Update PHP on Shared Hosting?

Look for PHP settings in your hosting dashboard, often under MultiPHP Manager or Select PHP Version. If the patched release isn’t available, ask your provider whether the server already has a vendor backport or when the update will be installed.

Do Managed Hosting Customers Need to Take Action?

Yes, at least to confirm the patch status. Managed hosting providers may apply security fixes automatically, but customers should verify which PHP build serves their website and whether older applications need upgrading.

Final Thoughts: Check PHP Before the Next Security Alert

PHP2Shell isn’t a problem that can be solved by changing a WordPress password or installing another plugin.

The vulnerabilities affect the PHP runtime, which means the fix needs to happen at the server or hosting level.

Start by checking the version serving your website. Confirm whether the relevant security patches have been applied, restart affected processes where necessary, and test the website afterward.

If you’re running an unsupported PHP version, treat the update as part of a broader maintenance plan rather than a one-time emergency.

Businesses that haven’t reviewed their hosting and application dependencies for several years may discover other issues during the process. That’s useful information to have before the next security advisory arrives.

Start Designs can assist with PHP compatibility reviews, website upgrades and ongoing technical maintenance.

Our WordPress experts and cloud engineering team can help assess your current setup and plan an appropriate upgrade.

Contact Start Designs for a PHP2Shell website security review

About the author

Start Designs Writers Team

The Start Designs Editorial Team has more than 10 years of experience creating content about website design, web development, ecommerce, SEO, and digital marketing. Our writers use industry research and practical input from designers, developers, and marketers to explain complex topics in a clear, useful way. Every article is reviewed before publication to ensure the information is accurate, relevant, and easy to understand. We aim to help readers build better websites, grow their online businesses, and make informed digital decisions. Areas of Expertise: Website Design | Web Development | Ecommerce | SEO | Digital Marketing

Originally published October 23, 2026 , updated on November 17, 2026

Work With Us

Do you have a question or are you interested in working with us? Get in touch
thank-you

Thank you!

We’ve got your request and will be in touch soon with your quote. We’re excited to work with you!

Scroll to Top