All ArticlesSecurity2026-11-28T13:44:41+08:00

Thinking WordPress Auto-Update Means You're Patched? Confirm with wp core version

Site owners assume background auto-updates already applied the WordPress Core fix for the actively exploited race condition RCE, but updates can silently fail because of file permissions, disabled constants, or lock files. After reading, you can confirm the installed version with wp core version, check file integrity with wp core verify-checksums, and find out why an update did not apply.

When a WordPress Core security fix lands, many site owners relax because auto-updates are switched on. Nothing broke, the dashboard looks normal, so the patch must be there. For the actively exploited race condition that leads to unauthenticated remote code execution, that assumption is risky. A background update can fail without anyone looking at the result, and the site keeps serving pages on the old, vulnerable code.

The fix is simple. Stop trusting the setting and check the files on disk. This article covers how to confirm the installed version with wp core version, confirm the core files match what WordPress.org shipped with wp core verify-checksums, and work out why an update did not apply when the numbers do not line up.

Why auto-update enabled is not the same as patched

An auto-update setting is a request for an update. The update itself has to happen later, under conditions WordPress does not control.

Background updates do not run on their own clock. WP-Cron is WordPress's built-in scheduler, and it only fires when someone visits the site. WP-Cron runs a version check, and if a newer release is allowed by your settings, the automatic updater tries to install it. Before writing anything, the updater runs a list of checks. It confirms that updates are not disabled by a constant or a plugin filter. It confirms that PHP can write to the core files directly without FTP credentials. It confirms that the install does not look like a Git or SVN checkout, and that no other update currently holds the lock. If any check fails, the updater stops. Sometimes it sends an email to the admin address. Often it just does nothing.

That is why this breaks down in production rather than on a fresh test install. Production sites collect years of changes. A developer adds DISALLOW_FILE_MODS to lock down the dashboard. Someone deploys with Git and leaves the .git folder in the web root. A migration leaves files owned by root while PHP runs as the site user. A host disables WP-Cron in favor of a system cron that was never actually set up. None of these changes looks like it would turn off security updates, but each one does.

There is also a human side. Fear of updates breaking a site has pushed many people to turn auto-updates off on purpose, as this Reddit discussion on automatic WordPress updates shows. On sites that changed hands, nobody may remember that decision. In support, a common first question is whether this site got the update. The honest answer is that the setting does not tell you, and the files on disk do.

For background on how the race condition works and which release fixes it, see the CVE-2026-119977 breakdown. The steps below cover verification only.

Confirm what is actually installed

Run WP-CLI as the user that owns the site files, not as root. Running as root can create root-owned files that cause the very permission problems that block future background updates. Change into the WordPress root directory first. The path depends on your setup and control panel.

# Run from the WordPress root, as the site's own user (replace siteuser)
sudo -u siteuser wp core version --extra
sudo -u siteuser wp core check-update
sudo -u siteuser wp core verify-checksums

wp core version reads the version number from wp-includes/version.php. Adding --extra also prints the database version, TinyMCE version, and package locale. Compare that number with the fixed release listed in the official WordPress security announcement for your branch. Older branches receive their own backported releases, so match the branch rather than only the latest major version.

wp core check-update asks WordPress.org whether a newer release exists for this install. If it lists a minor release on your branch, the background update has not happened yet.

The version number alone is not proof, because it comes from a single file. A partially completed update, or an attacker who edited core files, can leave version.php showing the right number while other files are still old or modified. wp core verify-checksums closes that gap. It downloads the official checksums for your version and locale and compares every core file against them. It also flags unexpected extra files inside wp-admin and wp-includes.

Illustrative output format (wording varies by WP-CLI version)

Clean install:
Success: WordPress installation verifies against checksums.

Problem install:
Warning: File doesn't verify against checksum: wp-includes/class-wp-example.php
Warning: File should not exist: wp-includes/random-name.php
Error: WordPress installation doesn't verify against checksums.

A mismatch does not always mean compromise. Partial updates and manual edits show up the same way. Treat it as a reason to look closer, never to ignore. Files that should not exist are the more serious signal on a site exposed to an RCE. If the version is correct and the checksums pass, core is patched. That still does not mean the site is clean, which the last section covers.

Find out why the background update did not run

If the version is behind, the cause is almost always one of the blockers below. Work through them in order. Each check is read-only.

Likely causeWhat to check
Updates disabled by constantwp config get for AUTOMATIC_UPDATER_DISABLED, WP_AUTO_UPDATE_CORE, DISALLOW_FILE_MODS
Updates disabled by codegrep wp-content for automatic_updater_disabled and auto_update_core filters
PHP cannot write core files directlyfile owner compared with the PHP process user; FS_METHOD in wp-config.php
WP-Cron never firesDISABLE_WP_CRON set with no system cron, or a site with almost no visits
Update lock still heldcore_updater.lock and auto_updater.lock options
Previous attempt failedauto_core_update_failed option; a leftover .maintenance file in the root
Install looks like a VCS checkout.git, .svn, .hg, or .bzr in the site root or a parent directory
# Constants (an error just means the constant is not defined in wp-config.php)
sudo -u siteuser wp config get WP_AUTO_UPDATE_CORE
sudo -u siteuser wp config get AUTOMATIC_UPDATER_DISABLED
sudo -u siteuser wp config get DISALLOW_FILE_MODS
sudo -u siteuser wp config get DISABLE_WP_CRON

# Filters added by plugins, mu-plugins, or the theme
grep -rn 'automatic_updater_disabled\|auto_update_core' wp-content/

# Locks and recorded failures (an error means the option does not exist)
sudo -u siteuser wp option get core_updater.lock
sudo -u siteuser wp option get auto_updater.lock
sudo -u siteuser wp option get auto_core_update_failed

# Is the scheduler alive, and is a maintenance file stuck?
sudo -u siteuser wp cron event list --fields=hook,next_run_relative
ls -la .maintenance

# Who owns core files compared with who runs PHP
stat -c '%U:%G %n' wp-includes/version.php wp-admin/index.php

The word lock confuses people. In current WordPress, the update lock is not a file on disk. It is a row in the wp_options table that holds a timestamp. The core update lock normally expires after a short period. If an update crashed midway, a lock that keeps reappearing or a .maintenance file that never went away is a strong hint. The auto_core_update_failed option is worth reading too. When it exists, it records which version failed and why. After some failures, WordPress will not retry the same version automatically.

File ownership is the cause people miss most often. Background updates only proceed when WordPress can write to its own files as the PHP user. If core files belong to root or a different account, WordPress falls back to asking for FTP credentials. No one is there to type them during a cron run, so the update never happens. The Site Health screen under Tools has a background updates test that reports this and several other blockers in plain language. It is a good first check for someone without shell access.

The VCS check catches deployments built from Git. WordPress assumes a site under version control is updated through that workflow, so it skips the background update. That is a sensible default, but only if your deploy pipeline actually ships core security releases.

Applying the update and confirming it stuck

Before you update, take a backup of the files and the database. Updating core changes files on disk and may run a database upgrade.

Once you know the cause, fix that cause first. Updating manually over a blocker that is still in place only helps until the next release. Correct the file ownership, remove or adjust the constant or filter, set up a real system cron if WP-Cron is disabled, or delete a stale .maintenance file. Then, still as the site user, run wp core update. Add --minor if you want to stay on the current branch. After that, run wp core update-db if WP-CLI reports that the database needs it.

Then repeat the first check. Run wp core version to confirm the new number and wp core verify-checksums to confirm the files match. If the cause was the scheduler or permissions, watch the next minor release and confirm it arrives by itself. That is the only real proof that background updates work again.

Patching closes the hole, but it does not undo anything that happened while the hole was open. Because this race condition was exploited in the wild, a site that sat unpatched should also be checked for leftover access. That includes unexpected admin accounts, files that should not exist, and anything odd in the upgrade directory. The wp-content/upgrade exploitation check walks through that part.

A practical rule: whenever a WordPress Core security release matters, verify it on every site you are responsible for with wp core version and wp core verify-checksums. When the result is wrong, look for the blocker before you update. An auto-update setting is a request, and only these checks show whether the update actually happened.