Critical PHP update (21 Oct 2026) First fixed upstream releases: 8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36. What to do now New (23 Oct): CVE-2026-115560

Guide · WordPress and online shop administrators

WordPress / WooCommerce

Page last updated: Data verified:

Contents

The researchers demonstrated unauthenticated code execution on WordPress. The vulnerability, however, is not in WordPress but in the PHP that runs it.

1. Which PHP runs the site#

  • Dashboard: Tools → Site Health → Info → Server → “PHP version”.
  • WooCommerce: WooCommerce → Status → Server environment → “PHP version”.

Read-only: changes nothing

# WP-CLI: CAUTION — shows the CLI's PHP, not necessarily the web's
wp --info

What Site Health shows is the version serving the web. If it differs from wp --info, trust Site Health for the site.

2. Upgrade#

This is done by the server administrator or the provider: see the guides per environment or the guide for site owners. If a branch change is needed, check plugin and theme compatibility on a copy of the site first.

3. Integrity checks after the upgrade#

Read-only: changes nothing

# Core files that differ from the official ones
wp core verify-checksums

# Plugins from wordpress.org that differ from the official ones
wp plugin verify-checksums --all

# Administrators and registration date
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered

# PHP files in uploads (normally there should be none)
find wp-content/uploads -type f -name '*.php'

# PHP files changed after 17 October 2026
find . -type f -name '*.php' -newermt '2026-10-17' | grep -v -E '/(cache|upgrade)/'

Premium plugins and themes are not on wordpress.org, so verify-checksums cannot check them. Compare them with a clean copy from the vendor.

4. If a compromise is suspected#

Changes packages or configuration: back up and test first

  • Change administrator passwords and database passwords.
  • Change the salts in wp-config.php. This logs out all users.
wp config shuffle-salts
  • On WooCommerce: rotate payment API keys (Stripe, PayPal, banks) and WooCommerce REST API keys.
  • Follow the possible compromise guide.

5. Blocking PHP execution in uploads (hardening)#

Changes packages or configuration: back up and test first

# wp-content/uploads/.htaccess (Apache / LiteSpeed)
<FilesMatch "\.(?i:php[0-9]?|phtml|phar)$">
    Require all denied
</FilesMatch>
# Nginx: inside the server block, before the PHP location
location ~* ^/wp-content/uploads/.*\.(php[0-9]?|phtml|phar)$ { deny all; }

This is general hardening that limits damage from uploaded files; it does not fix PHP2Shell.

Main source: Wiz Research · Wiz