You upgraded your main WordPress site to 7.1.4 and moved on. But you also run three other installations pinned to older major branches — maybe 6.9, 7.0, or even 4.7 for a legacy project nobody wants to touch. WordPress backports security patches to those branches, and the auto-updater is supposed to apply them. The question is whether it actually did. If it didn't, those sites are sitting exposed to an unauthenticated remote code execution vulnerability that is already in the CISA Known Exploited Vulnerabilities catalog.
This article walks through the problem as a postmortem: what the exposure looks like, how to investigate each installation, what causes backports to silently fail, and how to fix the gap.
Initial impact: one patched site, several unknowns
The vulnerability in question is a race condition (Time-of-Check Time-of-Use, or TOCTOU) in WordPress Core affecting versions 4.7 through 7.1.3. It allows unauthenticated remote code execution. WordPress.org released 7.1.4 as the primary fix, and backported patches to older supported branches: 7.0.8, 6.9.11, 6.8.12, and 4.7.39, among others.
The typical assumption: "WordPress auto-updates minor releases, so all my sites are fine." That assumption holds most of the time. But "most of the time" is not the same as "every time," and with an RCE on the CISA KEV list, the difference matters.
Common reasons backports fail silently:
define('AUTOMATIC_UPDATER_DISABLED', true);inwp-config.php— disables all auto-updates, including security releases.define('WP_AUTO_UPDATE_CORE', false);— same effect for core updates specifically.- File permission issues preventing the update process from writing to
wp-admin/orwp-includes/. - A managed hosting environment that handles updates on its own schedule, which may lag behind by hours or days.
- A broken cron system (
DISABLE_WP_CRONset to true with no external cron replacement configured). - A failed update that rolled back without anyone noticing.
None of these produce a visible error on the dashboard unless someone logs in and checks.
Investigation: verifying the actual patch state
Two reliable methods: check the reported version, then verify file integrity.
Step 1: Check the running version with WP-CLI
WP-CLI (wp command) is the fastest way to check version across multiple installations. SSH into the server and run:
wp core version --path=/var/www/site-legacy
Illustrative output format:
6.9.11
If the output shows 6.9.10 or lower on a 6.9.x branch, the backport did not land. Same logic applies to other branches — compare against the patched version for that branch (e.g., 7.0.8 for the 7.0.x branch, 4.7.39 for the 4.7.x branch).
For multiple sites on one server, loop through them:
for dir in /var/www/site-*; do
echo "dir:(wp core version --path=$dir --allow-root 2>/dev/null || echo 'wp-cli failed')"
done
The --allow-root flag is needed if running as root; in production, running WP-CLI as the site's own user is better practice.
Step 2: Verify file integrity with checksums
A version number can be spoofed — malware sometimes edits wp-includes/version.php to hide its tracks. Verify that core files actually match the official checksums for the reported version:
wp core verify-checksums --path=/var/www/site-legacy
If everything matches, WP-CLI prints Success: WordPress installation verifies against checksums. If files have been modified, it lists each mismatched file. Any mismatch in wp-includes/ or wp-admin/ after a supposed update is a red flag — either the update was incomplete, or something modified core files after the update.
For deeper background on verifying whether a CISA KEV patch actually applied, there is a dedicated walkthrough in WordPress Site Defaced but You Already Updated? Check If the CISA KEV Patch Actually Applied.
Critical discovery: the update ran but the patch did not stick
A pattern that shows up in support work: the auto-updater log (wp-content/debug.log or the update log in the database) shows a successful update attempt, but the files on disk are from the previous version. This happens when:
- The update process downloads and extracts the new version.
- File replacement fails partway through — often a permission issue on a specific directory, or disk space running out mid-extraction.
- WordPress rolls back to the previous version.
- The rollback itself succeeds, so no fatal error is logged. The site keeps running on the old, vulnerable code.
From the dashboard, the site looks normal. The version number in the footer might even briefly show the new version if version.php was one of the first files replaced before the rollback. This is why wp core verify-checksums matters more than just reading the version string.
Another scenario: a security plugin or hardening configuration set core files to read-only (immutable via chattr +i on Linux). The auto-updater cannot overwrite them, fails, rolls back, and the site stays vulnerable. The admin sees no error because they rarely log into the legacy site's dashboard.
Temporary mitigation: WAF rules and access restriction
If you discover an unpatched installation and cannot update immediately (maybe it is a legacy 4.7 site with custom code that needs testing before any core change), reduce exposure:
Block the attack surface. The research context identifies REST batch endpoints and core upgrade paths as vectors. If you run a Web Application Firewall — whether a WordPress plugin like Wordfence, or an edge WAF like Cloudflare or Akamai — check that rules targeting this specific vulnerability are active. WAF vendors typically push rules for CISA KEV entries quickly, but "pushed" does not mean "enabled" on your account. Verify the rule is in blocking mode, not just logging.
Restrict REST API access. If the legacy site does not use the REST API for front-end features (many older 4.7-era sites do not), you can restrict /wp-json/ access at the web server level to authenticated users or specific IPs. This is a blunt instrument — it will break things like Gutenberg, the block editor, and any plugin that uses the REST API — but on a legacy site that predates all of those, the breakage may be zero.
Disable XML-RPC if not needed. Not directly related to this specific vulnerability, but legacy sites with XML-RPC open are a broader attack surface. Block it at the web server config level if nothing depends on it.
These are stopgaps. The real fix is applying the patch.
The architectural fix: update, verify, and prevent recurrence
Apply the update manually. For each legacy branch, update to the patched version:
- 7.0.x branch: update to 7.0.8 or later
- 6.9.x branch: update to 6.9.11 or later
- 6.8.x branch: update to 6.8.12 or later
- 4.7.x branch: update to 4.7.39 or later
- Or move to 7.1.4+ if the site can handle the major version jump
Use wp core update --path=/var/www/site-legacy for a controlled update. On legacy sites with heavy customization, test on a staging clone first — updating a site that has been on 4.7 for years directly in production risks the white screen of death from deprecated PHP functions or abandoned plugins.
Verify after updating. Run wp core verify-checksums again after the update. Confirm the version number matches the expected patched release. Check that the site loads correctly.
Fix the auto-update pipeline. Audit wp-config.php on every installation for constants that disable auto-updates. If AUTOMATIC_UPDATER_DISABLED or WP_AUTO_UPDATE_CORE is set to false, either remove it or change it to 'minor' (which allows security and minor releases but not major version jumps). Confirm that WordPress cron is functional — if DISABLE_WP_CRON is true, an external cron job must call wp-cron.php or run wp cron event run --due-now on a schedule.
Check file permissions. The web server user (typically www-data, apache, or nobody depending on the OS and setup) needs write access to wp-admin/, wp-includes/, and wp-content/. If you hardened permissions after a previous incident, the auto-updater cannot do its job. Either relax permissions for the update process or accept that you will apply updates manually.
Monitor going forward. A simple cron job that runs wp core version and wp core verify-checksums across all installations and emails the output catches future failures. No complex tooling needed — a bash script and mail command work fine.
For sites where the REST API batch endpoint is part of the attack surface, WordPress REST API Batch Endpoint Exploited? Verify the Patch with a curl POST Test covers how to test whether the specific endpoint is still vulnerable after patching.
What to take away
WordPress backports security patches to legacy branches reliably, but the delivery mechanism — the auto-updater — depends on a chain of conditions: cron working, file permissions correct, no config constants blocking updates, enough disk space, and no rollback failures. Any break in that chain leaves the site on the old version with no visible warning. For a vulnerability already in the CISA KEV catalog, "probably updated" is not good enough. Run wp core version, run wp core verify-checksums, confirm the numbers match the patched release for your branch, and fix whatever broke the auto-update pipeline so it does not happen again next time.