PHP2Shell Vulnerability Oct 21, 2026: How to Secure Your Website

PHP2Shell Vulnerability: How to Check, Patch, and Secure Your Website

Updated: October 21, 2026 | IT GOAT Security Advisory

Two critical PHP security vulnerabilities, CVE-2026-109618 and CVE-2026-109619, have prompted emergency security updates for web servers worldwide.

Collectively known as PHP2Shell, these vulnerabilities can allow unauthenticated attackers to execute malicious code or expose sensitive server memory under certain conditions. The reported severity reaches 9.2 on the CVSS v4.0 scale.

If your business operates a website, client portal, WordPress installation, or PHP-based application, your hosting environment may require an immediate security update.

The good news: patched PHP versions are available, and most organizations can remediate the issue without redesigning or rebuilding their websites.

This guide explains how to identify affected systems, apply the necessary updates, and verify that your environment is protected.

What is PHP2Shell?

PHP is a programming language that powers many websites and business applications, including WordPress, Drupal, Joomla, Magento, and custom web applications.

PHP2Shell refers to two vulnerabilities in PHP’s underlying memory management.

Depending on the environment and exploitation method, attackers may be able to:

  • Execute commands on vulnerable web servers without authentication.

  • Access sensitive application or server memory.

  • Expose passwords, session information, or authentication tokens.

  • Compromise website files and potentially access other systems.

Important: Having the latest WordPress version, updated plugins, or a web application firewall does not automatically resolve this issue. The underlying PHP installation must be patched.

Which PHP versions are affected?

Compare your installed PHP version against the first patched release for its version family.

PHP versionFirst patched releaseRequired action
PHP 8.58.5.12Update if older
PHP 8.48.4.27Update if older
PHP 8.38.3.36Update if older
PHP 8.28.2.35Update if older
PHP 8.1 or earlierLegacy versionsUpgrade or obtain a verified vendor-supported security patch

If your PHP version is older than the listed patched release, you should arrange an update immediately unless your vendor confirms that the relevant fixes have been backported.

Not sure whether your website uses PHP? Contact your hosting provider or website administrator. They can identify the runtime used to process requests.

3. How to check whether your website is vulnerable

The most reliable way to assess your exposure is to identify the PHP version and security patch level actually running your website.

Option A: cPanel or WHM hosting

Common with KnownHost, HostGator, Bluehost, and many business hosting providers.

  1. Log in to your cPanel account.

  2. Navigate to Software → MultiPHP Manager.

  3. Find your website’s domain.

  4. Record the PHP version assigned to it.

  5. Compare that version family with the patched-version table above.

  6. Ask your hosting administrator to confirm the exact PHP patch release.

Example: A domain listed as ea-php83 uses EasyApache PHP 8.3, but this label alone does not confirm whether it is running PHP 8.3.35 or the patched 8.3.36.

WHM administrators can check for updated EasyApache packages through Software → EasyApache 4.

Option B: WordPress websites

  1. Log in to your WordPress administrative dashboard.

  2. Navigate to Tools → Site Health.

  3. Select Info.

  4. Expand the Server section.

  5. Locate the PHP version.

If the version is older than the corresponding patched release, arrange an update with your hosting provider or server administrator.

Updating WordPress core, themes, and plugins is still recommended, but it does not replace the PHP security update.

Option C: Linux VPS or dedicated servers

If you manage a Linux server, connect through SSH and identify the installed PHP runtime.

To check the default command-line PHP version:

php -v

For servers using cPanel EasyApache PHP 8.3:

/opt/cpanel/ea-php83/root/usr/bin/php -v

For EasyApache PHP 8.2:

/opt/cpanel/ea-php82/root/usr/bin/php -v

These commands identify command-line PHP installations. Your website may use a different PHP runtime, particularly if multiple versions, PHP-FPM pools, or containers are installed.

Verify the PHP runtime handling actual web requests before declaring the website patched.

Option D: CloudLinux and reseller hosting

CloudLinux environments may use EasyApache PHP, CloudLinux PHP Selector, or both.

  1. Open cPanel.

  2. Check MultiPHP Manager.

  3. Check Select PHP Version, if available.

  4. Identify which PHP runtime serves each domain.

  5. Compare the exact runtime patch level against the patched-version table.

  6. Request provider confirmation for any CloudLinux backported security fixes.

If you are on shared or reseller hosting without root privileges, your hosting provider will typically need to update the server-wide PHP packages.

Option E: Cloud, container, or custom hosting

For websites running on AWS, Microsoft Azure, Google Cloud, Docker, Kubernetes, or a custom application stack:

  1. Identify every PHP runtime, including application servers, containers, and background workers.

  2. Check the exact PHP package version or container image.

  3. Review security updates from your operating-system, container-image, or managed-service vendor.

  4. Deploy a fixed runtime or a vendor-confirmed patched build.

  5. Restart or redeploy affected application workers.

  6. Verify that production is actually serving requests from the patched runtime.

Important: Updating PHP on a virtual machine does not automatically update PHP running inside a Docker container.

How to fix PHP2Shell

The recommended remediation is to update each affected PHP runtime to a fixed release.

Fix A: cPanel / WHM with administrative access

If you administer your server:

  1. Verify that recent, recoverable backups are available.

  2. Log in to WHM.

  3. Navigate to Software → EasyApache 4.

  4. Review the installed PHP versions and available package updates.

  5. Keep required PHP versions and extensions enabled.

  6. Review proposed package changes before provisioning.

  7. Install the vendor’s security update.

  8. Confirm the exact PHP version and PHP-FPM package version after completion.

  9. Test the affected websites.

On supported RHEL-family servers using DNF and cPanel EasyApache, an administrator may check available packages with:

dnf check-update 'ea-php83*'

Or for PHP 8.2:

dnf check-update 'ea-php82*'

Where necessary, administrators can perform a targeted update:

dnf upgrade 'ea-php82*' 'ea-php83*'

Do not execute an update without reviewing backups, the proposed package transaction, dependencies, and possible service interruptions. Commands may differ by operating system and hosting configuration.

Fix B: Shared or reseller hosting

If you do not have root access, contact your hosting provider and request:

  • Confirmation of all affected PHP versions.

  • Installation of the fixed PHP releases or verified vendor backports.

  • Confirmation that PHP-FPM and other web-serving PHP handlers are updated.

  • Verification that the patch covers every website in your hosting account.

  • Notification of any expected service interruption.

Do not attempt to bypass hosting restrictions or install a separate unmanaged PHP build.

Fix C: Managed WordPress hosting

Contact your managed WordPress provider and ask whether the server-side PHP runtime has received the PHP2Shell security updates.

If your hosting dashboard allows PHP version changes, select a patched, compatible PHP release only after confirming that the provider offers the required security fix.

Test plugins, forms, ecommerce functionality, and website integrations after any version change.

Fix D: Cloud and container environments

For custom deployments, update PHP through the supported operating-system packages, managed runtime, or official container image.

Rebuild and redeploy affected containers. Do not rely on restarting an old container image.

Check staging, production, autoscaling instances, application workers, and any separately maintained images.

For managed cloud services, follow the cloud provider’s published remediation instructions rather than modifying the underlying infrastructure in unsupported ways.

What if you cannot update PHP immediately?

If a patched version is not yet available, contact your hosting provider or IT security team immediately.

Temporary measures may reduce exposure, but there is no complete substitute for applying the PHP security update.

Depending on your environment, your administrator may consider:

  • Disabling PHP session upload-progress tracking where it is not required.

  • Reducing attacker-controlled request sizes and memory pressure.

  • Disabling the display of detailed PHP errors on public websites.

  • Reviewing applicable WAF protections and access restrictions.

  • Temporarily limiting exposure to particularly sensitive applications.

One possible PHP configuration measure is:

session.upload_progress.enabled = Off

This setting may reduce exposure through certain attack paths but does not fully remediate both vulnerabilities. Apply it at the appropriate server configuration level, confirm it is effective for web requests, and test application compatibility.

Do not assume Cloudflare, a WordPress security plugin, or disabled PHP-FPM functionality makes an outdated PHP installation safe.

For high-risk systems that cannot be patched, your security team should evaluate whether temporary access restrictions or taking the affected service offline is appropriate.

Troubleshooting after updating PHP

After installing the security patch, verify the application still works as expected.

IssueWhat to check
Website displays a 500 errorPHP error logs, extensions, application compatibility
WordPress displays a critical errorPlugin/theme compatibility and PHP logs
Forms stop submittingPHP configuration, upload settings, security rules
Database connectivity failsPHP MySQL extensions and database configuration
Website still shows an old PHP versionActive PHP handler, PHP-FPM pool, container image, stale workers
Some sites work while others failPer-domain PHP assignment and site-specific dependencies
Update is unavailableHosting repositories, vendor patch status, support escalation

Avoid immediately rolling back to a vulnerable PHP version. If an application breaks, investigate compatibility and consult the hosting administrator before selecting a remediation approach.

How to verify your website is protected

A successful package installation is an important step, but remediation should also be verified.

Use this checklist:

  • Identify every internet-facing PHP website and application.
  • Confirm the exact PHP version or vendor-backed security patch.
  • Confirm PHP-FPM or other active handlers use the updated runtime.
  • Restart or redeploy affected services and application workers.
  • Confirm WordPress, website forms, logins, and integrations function properly.
  • Check application and server logs for errors or unusual activity.
  • Review any temporary security workarounds.
  • Record the update date, installed version, and verification results.

If your site was exposed before patching, review relevant logs for suspicious requests, unexplained PHP crashes, unusual server errors, or other indicators of compromise.

Patching closes the known vulnerability, but it does not automatically remove an existing compromise or prove that no information was accessed previously.

If suspicious activity is identified, preserve relevant logs and evidence and engage your security incident response team.

Need help verifying or updating your environment?

Not every business has a dedicated web developer or server administrator. And when websites are spread across multiple hosting providers, cloud systems, or reseller accounts, confirming patch coverage can become complicated.

IT GOAT can help businesses coordinate PHP2Shell vulnerability assessments, identify exposed hosting environments, and plan secure remediation.

Our team can assist with:

  • Identifying affected PHP runtimes and applications.

  • Reviewing hosting and server configurations.

  • Coordinating required PHP security patches.

  • Validating website functionality after updates.

  • Reviewing available evidence of suspicious activity.

  • Developing an ongoing patch management strategy.

Don’t wait until a vulnerable website becomes a business interruption.

Contact IT GOAT to discuss your PHP2Shell security concerns and next steps.

This article is general security guidance as of October 21, 2026. Hosting platforms, vendor backports, and supported procedures vary. Confirm current vendor guidance and perform changes through authorized administrators.


Technical references

FAQs

No. It affects PHP itself. WordPress, Drupal, Joomla, and custom PHP applications can all be exposed if they use an affected PHP runtime.

Cloudflare or another web application firewall may provide additional protection against known attack patterns. However, it is not a complete replacement for updating PHP.

Not necessarily. Multiple websites using the same server-wide PHP installation may receive the fix through one package update.

However, every separate PHP version, container, custom runtime, or hosting environment must be checked.

Not specifically to resolve PHP2Shell. Updating to a patched release within your supported PHP version family can address these vulnerabilities.

However, older PHP versions will eventually reach end of support and should be included in your longer-term upgrade plan.

Not from the PHP version alone. An investigation may require reviewing web requests, PHP errors, worker crashes, application files, authentication events, and other security telemetry.

IT GOAT Demo

See the power of IT GOAT.
The world’s most advanced cybersecurity platform catered specifically to your business’ needs.

Sign Up

Keep up to date with our digest of trends & articles.

By subscribing, I agree to the use of my personal data in accordance with IT GOAT Privacy Policy. IT GOAT will not sell, trade, lease, or rent your personal data to third parties.

Recent Insights

Table of Contents

Read More

Get a Demo

Mitigate All Types of Cyber Threats 

Experience the full capabilities of our advanced cybersecurity platform through a scheduled demonstration. Discover how it can effectively protect your organization from cyber threats.

IT GOAT

IT GOAT: Threat Intel & Cyber Analysis

We are experts in the field of cybersecurity, specializing in the identification and mitigation of advanced persistent threats, malware, and exploit development across all platforms. 

Threat Detection Experts

Protect Your Business & Operations

Exceptional performance in the latest evaluations, achieving 100% prevention rate and providing comprehensive analytic coverage, unmatched visibility, and near-instant detection of threats.