Insights

WordPress Site Defaced but You Already Updated? Check If the CISA KEV Patch Actually Applied

November 18, 2026
0:00
Your WordPress site got defaced. Hacker message on the homepage, maybe a redirect to a spam page, maybe new admin accounts you never created. You check the dashboard and it says you're on the latest version. So how did this happen? One common answer: the update you think was applied never actually completed. WordPress has auto-updates for minor security releases, and the dashboard can report a version number that doesn't reflect reality — especially when the update process was interrupted, permissions blocked the file writes, or the site was already compromised before the patch landed. This walkthrough traces from the visible symptom (defacement) back through version verification, update logs, and file integrity to find out whether the security patch genuinely applied.
Don't trust the WordPress admin dashboard for version confirmation on a compromised site. An attacker who has write access to core files can modify 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_html
If WP-CLI is not available, read the version file directly:
BASH
grep '\\$wp_version' /home/user/public_html/wp-includes/version.php
Sample output format:
TEXT
$wp_version = '6.5.2';
That string is what WordPress actually has on disk. Compare it to the patched version listed in the relevant security advisory. According to recent advisories tracked in the CISA Known Exploited Vulnerabilities (KEV) catalog, certain WordPress Core versions have been flagged for active exploitation, and administrators need to confirm they're running the specific security release designated for their branch. You can check the CISA KEV catalog directly at 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.
Knowing the version string matches isn't enough. If an attacker modified core files after the update (or the update only partially wrote files), the version string could be correct while the actual patched code is missing or tampered with. WP-CLI has a checksum verification command that compares every core file against the official checksums from WordPress.org:
BASH
wp core verify-checksums --path=/home/user/public_html
If any core file has been modified, this command lists it. Pay attention to files in wp-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.
WordPress logs automatic update attempts. Look at the update log:
BASH
cat /home/user/public_html/wp-content/debug.log | grep -i 'update\\|upgrade'
If 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.php being triggered by site visits. If the site gets very little traffic, or if DISABLE_WP_CRON is set to true in wp-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_DISABLED is set to true. Some hosting setups or security plugins disable auto-updates entirely. Check wp-config.php for this constant.
  • A security plugin or .htaccess rule blocks outbound HTTP. WordPress needs to reach api.wordpress.org and downloads.wordpress.org to fetch updates. Firewalls or restrictive php.ini settings (like disabling curl functions) can prevent this.
To check the wp-cron constant:
BASH
grep -i 'DISABLE_WP_CRON\\|AUTOMATIC_UPDATER_DISABLED\\|WP_AUTO_UPDATE_CORE' /home/user/public_html/wp-config.php
If DISABLE_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.
This is the scenario that catches people off guard. The timeline matters:
  1. Vulnerability is publicly disclosed and added to CISA KEV.
  2. Automated scanners start mass-exploiting it within hours.
  3. WordPress releases a security update.
  4. Your site auto-updates — but the attacker already got in during the window between steps 2 and 3 (or between 3 and 4).
In this case, the patch is genuinely applied. The version is correct. Checksums pass. But the attacker already dropped a backdoor, created a rogue admin account, or injected code into a theme or plugin file before the update landed. Signs of this:
  • 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.php and header.php in 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.
Simply deleting the defaced page or restoring a quick backup is not enough if the attacker's backdoor is still present. The defacement will return. If you're restoring from backup, pick one taken before the breach window, not just the most recent one.
The CISA KEV catalog lists vulnerabilities that are confirmed to be actively exploited. When a WordPress CVE appears there, it means automated attacks are already hitting sites at scale. The catalog entry includes:
  • 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).
Match the CVE ID from the catalog against the WordPress changelog for your version branch. WordPress publishes changelogs at 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.
If your site is defaced and you've confirmed the patch status:
  1. If the patch never applied: Update immediately from CLI with wp core update, then run wp core verify-checksums to confirm. Don't rely on the dashboard on a compromised site.
  2. 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 in uploads/. Consider a clean reinstall of core plus a manual review of theme and plugin files.
  3. 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.
The broader habit worth building: don't assume auto-updates work. After any security release that hits CISA KEV, SSH in, check the version from CLI, run a checksum verification, and look at the update log. Takes two minutes. Catches the silent failures before an attacker does.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.