Confirm the exact version from the command line
wp-includes/version.php to display whatever version they want. Check from the server instead.
If WP-CLI is installed:
BASH
wp core version --path=/home/user/public_htmlBASH
grep '\\$wp_version' /home/user/public_html/wp-includes/version.phpTEXT
$wp_version = '6.5.2';https://www.cisa.gov/known-exploited-vulnerabilities-catalog — search for "WordPress" and look at the required action and remediation date for any entries matching your version range.
Verify file integrity, not just the version string
BASH
wp core verify-checksums --path=/home/user/public_htmlwp-includes/ and wp-admin/ — those are the ones that carry security patches. A clean result means core files match the official release. A list of mismatched files means either the update was incomplete or files were tampered with post-update.
One thing this does not cover: wp-content/. Themes, plugins, uploads, and any backdoors dropped there won't show up in a core checksum verification. That's a separate problem — if you've already reinstalled core and the infection returns, backdoors in wp-content are the usual cause.
Check whether the auto-update actually ran
BASH
cat /home/user/public_html/wp-content/debug.log | grep -i 'update\\|upgrade'WP_DEBUG and WP_DEBUG_LOG aren't enabled (they often aren't in production), that file may not exist or may be empty. In that case, check the email. WordPress sends an email to the admin address after every automatic update — successful or failed. Search your inbox (and spam folder) for messages from "WordPress" with subjects containing "has been updated" or "has failed to update."
No email, no log entry? The update likely never ran. Common reasons:
- wp-cron is disabled or broken. WordPress auto-updates depend on
wp-cron.phpbeing triggered by site visits. If the site gets very little traffic, or ifDISABLE_WP_CRONis set totrueinwp-config.php, automatic updates won't fire unless a real system cron job replaces it. - File permissions block writes. The web server process needs write access to core files. If file ownership doesn't match (common after manual migrations or permission hardening), the update downloads but can't overwrite files. It fails silently or with a brief log entry.
AUTOMATIC_UPDATER_DISABLEDis set to true. Some hosting setups or security plugins disable auto-updates entirely. Checkwp-config.phpfor this constant.- A security plugin or
.htaccessrule blocks outbound HTTP. WordPress needs to reachapi.wordpress.organddownloads.wordpress.orgto fetch updates. Firewalls or restrictivephp.inisettings (like disablingcurlfunctions) can prevent this.
BASH
grep -i 'DISABLE_WP_CRON\\|AUTOMATIC_UPDATER_DISABLED\\|WP_AUTO_UPDATE_CORE' /home/user/public_html/wp-config.phpDISABLE_WP_CRON is true and no system cron replacement exists, auto-updates are dead. The dashboard might still show "Your site is up to date" based on a cached check, while the actual files haven't changed.
The update ran but the site was already compromised
- Vulnerability is publicly disclosed and added to CISA KEV.
- Automated scanners start mass-exploiting it within hours.
- WordPress releases a security update.
- Your site auto-updates — but the attacker already got in during the window between steps 2 and 3 (or between 3 and 4).
- Unknown admin users. Check from CLI:
wp user list --role=administrator --path=/home/user/public_html. Any account you don't recognize is suspect. - Modified theme files. Look at
functions.phpandheader.phpin your active theme. Injected code often appears at the very top or bottom, sometimes base64-encoded. - Files in uploads that shouldn't be there. PHP files in
wp-content/uploads/are almost never legitimate. Find them:find /home/user/public_html/wp-content/uploads -name '*.php' - Unexpected cron jobs. WordPress has its own internal cron schedule. List it:
wp cron event list --path=/home/user/public_html. Look for events pointing to unfamiliar callbacks.
Cross-reference with CISA KEV for the specific CVE
- The specific CVE ID.
- Affected product and versions.
- The required remediation (typically "apply updates per vendor instructions").
- A deadline date for federal agencies (useful as a severity signal even if you're not a federal agency).
wordpress.org/documentation/wordpress-version/ — find your version and confirm the specific CVE is listed as fixed in that release.
If you're running an older major branch (say 6.4.x instead of the latest 6.5.x), WordPress typically backports critical security fixes to supported branches. But "supported" has limits. Very old branches may not receive backports. If your branch didn't get a backport for the specific CVE in the KEV entry, updating to the latest major branch is the remediation.
What to do right now
- If the patch never applied: Update immediately from CLI with
wp core update, then runwp core verify-checksumsto confirm. Don't rely on the dashboard on a compromised site. - If the patch applied but the compromise predates it: The patch closed the door, but the attacker is already inside. You need a full malware scan of
wp-content/, a review of all admin accounts, and inspection of any PHP files inuploads/. Consider a clean reinstall of core plus a manual review of theme and plugin files. - If you're restoring from backup: Make sure the backup predates the exploitation window, not just the defacement. The backdoor was planted before the visible defacement happened.
