Critical PHP Vulnerabilities: Is Your Website at Risk? Here’s How to Protect It

Your website might look perfectly normal today, but serious security weaknesses could be hiding behind the scenes.

On October 21, 2026, the PHP development team released emergency security updates addressing two dangerous vulnerabilities, identified as CVE-2026-109618 and CVE-2026-109619. Both received a critical severity rating of 9.2 under CVSS v4.0.

These critical PHP vulnerabilities, collectively known as PHP2Shell, could allow attackers to run malicious code on an affected server without needing an administrator password.

The threat is particularly important for websites built with WordPress, WooCommerce, Joomla, Drupal, and other PHP-based applications.

According to the European Union Agency for Cybersecurity (ENISA), organisations should take immediate action to identify vulnerable PHP installations and apply security updates, particularly for websites exposed to the internet. ENISA

Fortunately, protecting your website does not necessarily require advanced technical knowledge.

In this article, you will learn what happened, which PHP versions are affected, how to check your website, and how to update PHP safely without unnecessarily breaking your website.

What Is PHP and Why Does Your Website Need It?

PHP is a programming language used by millions of websites to perform tasks behind the scenes.

Think of PHP as the engine inside a car.

Visitors see your website’s design, images, articles, and buttons, just as passengers see the car’s interior. PHP works behind the scenes to make everything function.

For example, PHP can help your website:

  • Display WordPress articles and pages.
  • Process contact forms.
  • Handle customer logins.
  • Manage online shopping carts.
  • Communicate with databases.
  • Generate dynamic website content.

When someone visits your WordPress website, PHP helps retrieve the required information and prepare the page for their browser.

If the PHP engine contains a security weakness, attackers may be able to exploit it even when WordPress itself is updated.

That is why keeping PHP secure is just as important as updating WordPress plugins and themes.

What Are the Latest Critical PHP Vulnerabilities?

October 2026 brought several important PHP security announcements, including two critical remote code execution vulnerabilities.

1. CVE-2026-109618 — Out-of-Memory Corruption

Critical — CVSS 9.2

This vulnerability involves the way PHP handles certain situations when it runs out of memory.

Imagine a worker assembling a package but being interrupted halfway through. Later, another worker assumes the package is complete and tries to process it.

Something similar can happen inside PHP.

An attacker may deliberately cause particular memory-handling conditions that result in PHP processing invalid information.

Under vulnerable conditions, this could allow the attacker to execute code on the server.

2. CVE-2026-109619 — Stale Global State

Critical — CVSS 9.2

This vulnerability involves PHP accidentally continuing to reference memory that should no longer be used.

Think of someone using an outdated key to access a room that has already been assigned to somebody else.

In certain circumstances, attackers may be able to manipulate this leftover memory state and execute malicious instructions.

CERT-EU confirmed that both vulnerabilities can enable unauthenticated remote code execution and affect multiple PHP web-server configurations, including PHP-FPM, Apache mod_php, and LiteSpeed. Critical Vulnerabilities in PHP

3. CVE-2026-115560 — Session Upload Progress Vulnerability

On October 23, 2026, PHP disclosed another potential remote code execution weakness involving an unusual combination of session configuration settings and application behaviour.

Unlike the first two vulnerabilities, PHP described this attack scenario as unlikely in typical applications.

The PHP development team recommended temporarily disabling session.upload_progress.enabled until the next regular security fix is available.

This specific issue was not fixed by the October 21 releases. PHP

4. CVE-2026-111497 — Brotli Vulnerability in PHP Windows Builds

On October 26, PHP also announced updated Windows packages containing a security fix for Brotli, a compression library included with PHP Windows builds.

This weakness could affect applications using cURL with automatic response decompression enabled.

The updated Windows builds carry the suffix -1, such as PHP 8.4.27-1, while retaining the same underlying PHP runtime version. PHP

Which PHP Versions Are Vulnerable?

The October 21 PHP2Shell security fixes were released in the following versions.

PHP versionMinimum fixed releaseSecurity status
PHP 8.58.5.12Fixed
PHP 8.48.4.27Fixed
PHP 8.38.3.36Fixed
PHP 8.28.2.35Fixed
PHP 8.1 and olderNo normal upstream security releasesEnd of life

Critical Vulnerabilities in PHP

For example, if your website is running PHP 8.3.33 without a vendor-provided security backport, it has not received the October 21 upstream security fixes.

However, some hosting providers have installed the fixes into older PHP builds without changing the displayed version number. Always check the provider’s patch status before deciding whether a particular installation remains vulnerable.

Should You Upgrade to PHP 8.4 or 8.5?

For most website owners planning a longer-term upgrade, PHP 8.4 or PHP 8.5 is worth considering, provided their website software supports it.

According to the official PHP support schedule:

  • PHP 8.2 receives security support until December 31, 2026.
  • PHP 8.3 receives security support until December 31, 2027.
  • PHP 8.4 receives security support until December 31, 2028.
  • PHP 8.5 receives security support until December 31, 2029.

PHP

A supported PHP branch with the latest security patch is safer than an unpatched installation. But the newest version is not automatically the best choice for every website: compatibility matters too.

How Can Critical PHP Vulnerabilities Affect Your Website?

The consequences depend on your server setup, permissions, and whether an attacker successfully exploits the weakness.

Website takeover

Attackers may execute commands that allow them to modify website files, install malicious software, or interfere with normal operations.

Data exposure

Depending on server permissions, attackers might access sensitive files, configuration information, or database credentials.

Website defacement

Attackers could replace normal website pages with unwanted content, damaging visitor trust and your brand’s reputation.

Website disruption

An attack could cause errors, unstable performance, or downtime, potentially affecting sales, enquiries, and search-engine accessibility.

These are potential consequences, not evidence that every vulnerable website has already been compromised.

Key Takeaway Box

Updating WordPress, plugins, and themes does not fix vulnerabilities located inside the PHP engine. To address the October 2026 PHP2Shell vulnerabilities, your server must run patched PHP software or a verified vendor build containing the fixes.

How to Check If Your Website Is Vulnerable

Before changing anything, identify the PHP version your website actually uses.

Method 1: Check Through WordPress

Upgrade to the Latest PHP Version for Better Security and Speed

  1. Log in to your WordPress administrator dashboard.
  2. Navigate to Tools → Site Health.
  3. Select the Info tab.
  4. Expand the Server section.
  5. Find the field named PHP version.
  6. Compare your version against the fixed-release table above.

Remember that a hosting provider may have backported security fixes without changing the PHP version displayed in WordPress.

Method 2: Check Through Your Hosting Dashboard

Most hosting companies provide PHP information directly through their control panels.

For example, Hostinger displays PHP details under its website management settings, while Plesk provides PHP information through its domain configuration.

If your hosting provider manages PHP updates, check its security announcements or contact support to confirm that the October 2026 vulnerabilities have been patched.

How to Update PHP Safely on WordPress

An important concern for many website owners is whether upgrading PHP will break their website.

PHP updates can cause compatibility problems when plugins, themes, or custom code rely on older features.

The safest approach is to prepare before changing anything.

Step 1: Back Up Your Website

Create a complete backup containing:

  • WordPress files
  • Website database
  • Themes and plugins
  • Uploaded images and documents
  • Important configuration files

Keep a copy somewhere separate from your hosting server.

A backup allows you to restore your website if an upgrade causes problems. Make sure the backup can actually be restored before relying on it.

Step 2: Update WordPress and Plugins

Before upgrading PHP, check for updates to:

  • WordPress core
  • Installed plugins
  • Active themes
  • WooCommerce and related extensions
  • Custom website components

Outdated plugins may not support newer PHP versions.

Where possible, test the entire upgrade process on a staging website—a private copy used for testing changes before they reach your real visitors.

Step 3: Check PHP Compatibility

Review whether your important plugins and themes support the PHP version you intend to install.

Pay particular attention to older plugins, abandoned themes, and customised website code.

Do not assume that every WordPress installation can immediately switch from PHP 7.4 to PHP 8.5 without compatibility issues.

Step 4: Upgrade PHP

Change the PHP version through your hosting control panel or ask your hosting provider to deploy the appropriate patch.

Step 5: Test Your Website

After upgrading, check:

  • Homepage and article pages
  • WordPress administrator dashboard
  • Contact forms
  • Login and registration
  • Shopping cart and checkout, if applicable
  • Search functionality
  • Mobile display
  • Website speed
  • Server error logs

If something breaks, identify the incompatible plugin, theme, or code rather than treating an obsolete PHP version as a permanent solution.

How to Update PHP on Hostinger

If your website uses Hostinger, the process depends on whether you have managed hosting or your own VPS.

Why WooCommerce PHP Version Matters and How to Check It

How to Update PHP Version in WordPress » Rank Math

How to Update PHP Version in WordPress » Rank Math

For Hostinger Web, Cloud, Agency, or cPanel Hosting

Hostinger announced that it completed deployment of the PHP2Shell fixes on managed hosting by October 22, 2026.

According to Hostinger, these plans are already protected against the two October 21 vulnerabilities, including installations where the visible PHP version number has not changed.

To verify your installation:

  1. Log in to Hostinger.
  2. Open Websites.
  3. Select Manage site.
  4. Open PHP Info.
  5. Find the Build Date.
  6. Confirm that the build date is October 21, 2026, or later.

Hostinger states that this build date confirms the PHP2Shell fix on its managed hosting platform. Hostinger+1

To Change Your PHP Version on Hostinger

  1. Open Websites → Manage site.
  2. Navigate to PHP Configuration.
  3. Select your preferred supported PHP branch.
  4. Click Update.
  5. Test your website after the change.

Hostinger applies patch releases automatically on its managed plans, so you generally select the PHP branch rather than a specific patch number.

Be aware that changing the PHP version can affect multiple websites sharing the same hosting plan. Hostinger

Important: Hostinger VPS Is Different

If you manage your own VPS, you are responsible for applying PHP security updates and restarting affected services.

Hostinger’s managed-hosting protections do not automatically cover customer-managed VPS installations.

Check the official Hostinger VPS PHP2Shell security instructions if you operate your own server.

How to Update PHP on Plesk

Plesk is another widely used control panel for managing websites and servers.

PHP Settings | Plesk Obsidian documentation

PHP Settings | Plesk Obsidian documentation

Why PHP versions are marked as ‘outdated’ in Plesk? – Plesk

Step-by-Step Instructions

  1. Log in to your Plesk control panel.
  2. Open Domains or Websites & Domains, depending on your interface.
  3. Select the website you want to update.
  4. Open PHP Settings.
  5. Identify your current PHP version and handler.
  6. Select an installed, patched PHP version compatible with your website.
  7. Apply the changes.
  8. Test the website and review its error logs.

Plesk’s official instructions confirm that PHP versions and handlers can be changed through the domain’s PHP Settings page. Plesk

If your preferred patched release is missing, the server administrator may first need to install or update the relevant PHP packages.

For example, changing from PHP 7.4 to PHP 8.3 may introduce compatibility problems in older websites. If this happens, restore service using your tested recovery plan, investigate the errors, and migrate to a supported, patched PHP release.

Do not leave an internet-facing website permanently on PHP 7.4 simply because the older version makes it work.

What If Your Website Breaks After Updating PHP?

A PHP update might cause a blank page, an HTTP 500 error, a broken plugin, or a message reporting a critical website error.

These problems do not automatically mean your website has been hacked.

They often indicate incompatible software.

Try the following:

  1. Check your hosting error logs to identify the failure.
  2. Restore access using your tested backup or recovery procedure.
  3. Disable or replace the incompatible plugin.
  4. Update outdated themes or custom code.
  5. Test the corrected website on a staging environment.
  6. Deploy the compatible, patched PHP version again.

For urgent service recovery, a temporary rollback may be necessary, but reverting to an unpatched PHP version restores the security exposure.

If you cannot apply a fix promptly, contact your hosting provider about a patched legacy build, temporary isolation, or managed migration.

How to Protect Your Website From Critical PHP Vulnerabilities

Updating PHP is the most important response to the October 2026 PHP2Shell vulnerabilities, but a few additional protections can improve website security.

1. Keep PHP Security Patches Up to Date

Check the official PHP release announcements and your hosting provider’s patch information.

Do not rely only on the major version number. For example, PHP 8.4.26 and PHP 8.4.27 belong to the same branch, but the latter contains the October 21 fixes.

2. Enable a Web Application Firewall

A web application firewall, commonly called a WAF, can help detect and block suspicious requests before they reach your website.

Services such as Cloudflare and server-level security tools can provide additional protection.

However, a firewall is not a complete substitute for installing the PHP security patches.

3. Remove Unused Plugins and Themes

Unused components increase the amount of software that needs maintenance.

Remove abandoned or unnecessary plugins and themes, and replace software that no longer receives security updates.

4. Protect Administrator Accounts

Use strong, unique passwords and enable multifactor authentication where available.

Limit administrator access to people who genuinely need it.

5. Maintain Reliable Backups

Automate backups and store copies away from your production hosting environment.

Occasionally test a restore so you know the backups work.

6. Monitor Your Website

Watch for unexpected administrator accounts, modified files, suspicious logins, unusual redirects, and changes to website content.

A security scan can help, but a clean scan alone cannot prove that your server is uncompromised.

7. Apply Temporary Mitigations When Necessary

For the additional CVE-2026-115560 issue, PHP recommended disabling the session upload progress feature until its regular fix is released.

For administrators managing PHP themselves, this setting is:

session.upload_progress.enabled = Off

It must be applied in the appropriate server configuration, followed by restarting affected PHP workers. This mitigation does not replace the PHP2Shell patches for CVE-2026-109618 and CVE-2026-109619.

Signs Your PHP Website May Have Been Compromised

A vulnerable PHP version does not automatically mean attackers successfully accessed your website.

However, investigate immediately if you notice:

  • Website pages redirecting to unfamiliar domains.
  • New administrator accounts you did not create.
  • Unknown PHP files appearing in website folders.
  • Changes to important configuration files.
  • Suspicious server activity or unusual outgoing traffic.
  • Unexpected website errors or service interruptions.
  • Security notifications from your hosting provider.

If you suspect a compromise, preserve relevant logs, secure administrator credentials from a clean device, and contact your hosting provider or an incident-response specialist.

Simply updating PHP may close the original vulnerability, but it will not necessarily remove malware or attacker access that already exists.

Quick Website Security Checklist

Website protection progress

Confirm your website’s PHP version and patch status
Check whether your hosting provider deployed the October 2026 fixes
Back up website files and databases
Update WordPress, plugins, and themes
Test a supported PHP version on staging
Deploy the PHP security update and verify it
Review website error and security logs
Enable appropriate firewall and account protections
Arrange ongoing patch monitoring

FAQ

What are the most dangerous PHP vulnerabilities in 2026?

Two of the most serious PHP vulnerabilities disclosed in October 2026 are CVE-2026-109618 and CVE-2026-109619, both rated critical with a CVSS v4.0 score of 9.2. They can potentially allow remote code execution without authentication.

Is PHP 7.4 still safe for WordPress?

PHP 7.4 is no longer supported by the PHP project. Some vendors may provide independently maintained security backports, but website owners should plan to migrate to a supported PHP version rather than rely indefinitely on legacy software.

Can hackers exploit PHP vulnerabilities without logging in?

Yes. The October 2026 PHP2Shell vulnerabilities can allow unauthenticated remote code execution under affected conditions. An attacker may not need an existing WordPress administrator account.

Does updating WordPress fix PHP vulnerabilities?

No. Updating WordPress fixes vulnerabilities in WordPress itself, but it does not automatically update the PHP engine running on your server. Both layers must be maintained.

What is the safest PHP version for WordPress in 2026?

A current, security-patched PHP 8.4 or PHP 8.5 release is a good target if your WordPress version, plugins, and themes support it. Always confirm compatibility first, and check your host’s patches.

How do I know if my hosting provider has patched PHP?

Check its official security notices, PHP build information, and available security updates. For managed hosting, contact support if you cannot confirm that the October 2026 vulnerabilities have been addressed.

Final Thoughts

The October 2026 critical PHP vulnerabilities are a reminder that website security involves more than keeping WordPress plugins updated.

A website can appear perfectly functional while its underlying software remains exposed to serious security weaknesses.

The most important actions are straightforward: confirm your PHP patch status, install the appropriate security fixes, maintain reliable backups, and test upgrades carefully.

If your provider has already installed the fixes, verify the patch information rather than making unnecessary changes. If you manage your own server, treat patching as an urgent priority.

A secure website requires regular maintenance—not just action after a serious vulnerability makes the news.

We will be happy to hear your thoughts

      Leave a reply

      Techwizs.com
      Logo