Your website is online. Your homepage loads correctly. Customers can browse your services, submit contact forms, and interact with your business.

Everything looks normal.

But does that mean your website is secure?

Not necessarily.

On October 21, 2026, the PHP Project disclosed two critical security vulnerabilities, CVE-2026-109618 and CVE-2026-109619, collectively known as PHP2Shell.

These vulnerabilities affect the PHP runtime used by millions of websites, including those built with WordPress.

Under vulnerable conditions, attackers may be able to execute malicious code remotely without authenticating to the website.

The most important point for website owners is that keeping WordPress plugins updated does not automatically protect the PHP environment running your website.

Here’s what you need to know, which PHP versions are affected, and how to protect your website.

What Is PHP2Shell?

PHP2Shell refers to two critical remote code execution (RCE) vulnerabilities affecting PHP.

PHP is the server-side programming language responsible for processing much of WordPress’s functionality, including page generation, authentication, database interactions, and plugin execution.

When a visitor opens a WordPress website, PHP helps process the request and generate the appropriate response.

The recently disclosed vulnerabilities involve how PHP manages memory and internal request data.

Both security flaws have received a critical severity rating, with CVSS v4 scores of 9.2.

CVE-2026-109618: Remote Code Execution via Memory Corruption

This vulnerability involves PHP’s handling of out-of-memory conditions.

Under certain circumstances, memory allocation failures can leave internal request data in an invalid state. Subsequent processing of that data can create opportunities for remote code execution.

CVE-2026-109619: Remote Code Execution via Stale Global State

This vulnerability involves internal PHP state that continues referencing memory after it has been released.

When another request accesses that stale state, memory corruption can occur, potentially enabling remote code execution.

These are vulnerabilities in PHP itself, rather than specific weaknesses in a WordPress theme or plugin.

Why this matters: Even a carefully maintained WordPress installation may remain exposed if its underlying PHP runtime has not received the appropriate security updates.

Which PHP Versions Are Affected?

The PHP Project released patched versions on October 21, 2026.

The following table summarizes the affected version ranges and security releases.

PHP BranchVulnerable Upstream VersionsPatched Version
PHP 8.28.2.34 and earlier8.2.35 or later
PHP 8.38.3.35 and earlier8.3.36 or later
PHP 8.48.4.26 and earlier8.4.27 or later
PHP 8.58.5.11 and earlier8.5.12 or later

Important: PHP 8.1 and older versions are end-of-life and no longer receive regular security releases from the PHP Project.

Some Linux distributions and extended-support vendors provide security fixes through backported packages. These may retain older version numbers, so always confirm the patch status with your hosting provider.

For most website owners, the safest approach is to use a supported, security-patched PHP release that is compatible with their website.

Official advisory: PHP Security Announcement — October 21, 2026

Why WordPress Website Owners Should Take This Seriously

WordPress powers many business websites, online stores, blogs, membership platforms, and service-based websites.

Although WordPress has its own security architecture, it still relies on the web server and PHP runtime to operate.

A vulnerability at the PHP level introduces risks that ordinary WordPress maintenance cannot resolve by itself.

Depending on the vulnerability, server configuration, and outcome of an attack, a compromise could lead to:

These are potential consequences, not proof that a particular website has been compromised.

The absence of visible errors does not confirm that a server is secure.

For businesses, a security incident may also lead to expensive recovery work, lost customer confidence, and disruption to day-to-day operations.

Does Updating WordPress Fix PHP2Shell?

No. Updating WordPress, themes, or plugins alone will not fix these PHP vulnerabilities.

WordPress updates protect the application and its components.

PHP security updates protect the runtime responsible for executing PHP code.

Both layers require attention.

For example, you could be running the latest WordPress version, with every plugin updated, while your hosting environment continues using an unpatched PHP installation.

That is why a complete WordPress security review should examine more than the WordPress dashboard.

It should also include PHP versions, hosting configuration, server updates, file integrity, user permissions, and backup readiness.

How to Check Your WordPress PHP Version

You do not need to be a server administrator to perform an initial check.

Method 1: Check Through WordPress Site Health

  1. Log in to your WordPress administration dashboard.
  2. Navigate to Tools → Site Health.
  3. Select the Info tab.
  4. Expand the Server section.
  5. Find the PHP version currently used by your website.

Compare the displayed version with the patched releases listed above.

Remember that a version number alone may not reveal vendor backported security patches.

Method 2: Check Through Your Hosting Control Panel

Depending on your hosting provider, PHP information may appear under:

The exact location varies between hosting platforms.

If your hosting provider manages PHP updates automatically, contact support and request confirmation that the PHP2Shell security fixes have been applied.

Do not assume that automatic WordPress updates include PHP runtime updates.

7 Steps to Protect Your WordPress Website

If you manage a business website, the following steps can help reduce risk and improve your overall security posture.

1. Install the Appropriate PHP Security Update

This is the highest-priority action.

Confirm that your server is using a PHP build containing the fixes for CVE-2026-109618 and CVE-2026-109619.

If you manage your own server, follow the relevant PHP distribution or operating-system vendor’s update instructions.

If you use shared or managed hosting, request an update from your hosting provider when necessary.

Test compatibility, take a clean backup, and use a staging environment when possible. However, do not unnecessarily delay a critical security patch.

2. Update WordPress Core, Themes, and Plugins

Keeping PHP updated is essential, but it does not replace regular WordPress maintenance.

Review installed themes and plugins for available security updates.

Remove unused or abandoned components after checking dependencies.

Avoid installing plugins or themes from untrusted sources.

3. Inspect Website Files for Suspicious Changes

Review your website for unexpected files, unusual PHP scripts, unauthorized modifications, or unfamiliar code.

Pay particular attention to files and directories that should not normally contain newly added executable scripts.

A security scan can help identify suspicious files, but automated results require careful verification.

Do not delete unfamiliar files without understanding their purpose and creating a recovery point.

4. Review Administrator Accounts and Access Permissions

Open WordPress → Users and examine accounts with administrative permissions.

Investigate administrator accounts you do not recognize.

Enable multi-factor authentication where possible and enforce strong, unique passwords.

Also review hosting, FTP/SFTP, and other privileged accounts that could provide access to website files.

5. Check for Suspicious Redirects and Website Behavior

Unexpected redirects, unfamiliar pages, modified content, and unusual server activity can indicate a security problem.

Check your website on desktop and mobile devices.

Review the homepage, service pages, contact forms, login functionality, and important customer journeys.

If you identify suspicious behavior, investigate its cause before making changes that might remove useful evidence.

6. Maintain Verified, Clean Backups

A website backup is only useful if it can be restored successfully.

Maintain backups that include both website files and databases.

Store recovery copies securely and separately from the production website.

Periodically test the restoration process.

If a website has already been compromised, do not automatically assume its latest backup is clean.

7. Review Server Security and Monitoring

Review your hosting environment, firewall settings, file permissions, security logs, and monitoring tools.

A properly configured web application firewall can reduce exposure to certain malicious requests, but it is not a substitute for the PHP2Shell security patches.

Security tools should support regular maintenance, not create a false sense of protection.

What If Your WordPress Website Has Already Been Compromised?

A compromised WordPress website requires more than simply deleting suspicious files.

Malicious code may affect WordPress files, plugins, themes, the database, administrator accounts, or server configurations.

A proper investigation should aim to identify how the attacker gained access, what changed, and whether unauthorized access remains possible.

If you suspect a compromise, preserve relevant logs and evidence, coordinate with your hosting provider, and avoid making unverified changes to the live environment.

A structured cleanup may involve identifying malicious files, reviewing database modifications, removing unauthorized access, restoring trusted components, rotating credentials, and verifying that security updates have been applied.

Removing malware without addressing the underlying weakness can leave a website vulnerable to reinfection.

Frequently Asked Questions About PHP2Shell

Is every WordPress website affected by PHP2Shell?

Not necessarily. Exposure depends on the installed PHP build, whether it has received the necessary security fixes, and the relevant server configuration.

WordPress websites running affected, unpatched PHP versions should be reviewed urgently.

Can PHP2Shell affect a website without the attacker logging in?

Yes. The PHP Project has confirmed that these vulnerabilities can allow unauthenticated remote code execution under affected conditions.

Will a WordPress security plugin completely protect my website?

No. A security plugin may provide useful monitoring, scanning, and additional protection, but it cannot replace an essential PHP runtime security update.

How do I know if my hosting provider has fixed PHP2Shell?

Check the installed PHP version and ask your hosting provider whether its PHP packages include the fixes for both CVE-2026-109618 and CVE-2026-109619.

This is particularly important when your provider uses custom or backported PHP packages.

Does an outdated PHP version mean my website has been hacked?

No. An unpatched PHP installation indicates potential security exposure, not confirmed compromise.

Determining whether a website has been compromised requires a separate investigation.

Is updating PHP enough to secure my entire WordPress website?

No. Updating PHP addresses these specific runtime vulnerabilities, but broader website security also depends on secure authentication, updated software, safe configurations, file integrity, backups, and ongoing monitoring.

Need Help Securing Your WordPress Website?

Your website represents your business. It supports customer communication, builds trust, and often plays an important role in generating new opportunities.

Website security deserves the same attention as website design and functionality.

As a WordPress developer, I work with website development, technical troubleshooting, PHP-related issues, website maintenance, and security investigations.

If you are unsure whether your WordPress website is properly protected, I can help you review its configuration, investigate suspicious behavior, identify potential technical risks, and determine appropriate next steps.

My WordPress security assistance can include:

Not sure whether your website is secure?

Visit HimelMia.com to Request a WordPress Security Review →

A proactive security review can help identify weaknesses before they develop into more serious problems.

Protect your website. Protect your customers. Protect your business.


Official Security References

The technical details in this article are based on publicly available security advisories:

  1. PHP Project — Critical Security Advisory, October 21, 2026
  2. PHP Security Advisory — CVE-2026-109618
  3. PHP Security Advisory — CVE-2026-109619
  4. NHS England — Critical Vulnerabilities in PHP (PHP2Shell)

Security information reflects disclosures available as of October 24, 2026. Consult the latest official vendor advisories for ongoing updates.