Cybermatic.aiAll issues →

Cybermatic Flash · 2026-11-03

WordPress Core exploited: unauthenticated RCE during upgrades

WordPress Core race-condition flaw lets unauthenticated attackers run code during upgrades

CVE-2026-119977 · WordPress WordPress Core

During a full WordPress core upgrade, the installer temporarily places files in a predictable, publicly accessible staging path. An unauthenticated attacker who times a request to that window can plant and execute arbitrary code on the server. No login or prior access is required — only the ability to reach the site over the web.

Affected: WordPress Core versions 4.7.0 through 7.1.3 (all self-hosted installations running full-package core upgrades)

Do this in the next hour

Update WordPress Core to version 7.1.4 immediately via Dashboard → Updates, or via WP-CLI with `wp core update`. If you cannot patch right now, disable automatic and manual core upgrades temporarily and block web access to the wp-content/upgrade/ directory at the web-server or WAF level.

Then, this week: Review web-server and PHP error logs around any recent upgrade windows for unexpected file writes or outbound connections originating from the upgrade staging path. Notify your hosting provider or managed-WordPress vendor so they can confirm patching across all hosted instances.

What is happening

CISA added CVE-2026-119977 to the Known Exploited Vulnerabilities catalog on 3 November 2026. The vulnerability is a time-of-check time-of-use (TOCTOU) race condition in the WordPress Core upgrade process. When WordPress performs a full-package core update, it extracts files to a staging directory whose path is predictable and reachable over the web. An unauthenticated attacker who monitors or guesses the timing of an upgrade can write a malicious file to that staging path and trigger its execution before WordPress finishes the update and cleans up. The result is remote code execution on the web server with the privileges of the web process.

Who is affected

Any organization running a self-hosted WordPress installation on versions 4.7.0 through 7.1.3 is potentially exposed whenever a core upgrade is performed. This covers a very large share of the web — small business sites, media organizations, government agencies, and enterprise marketing or intranet properties alike. Managed WordPress hosting platforms that run upgrades on behalf of customers are also in scope unless they have already patched or blocked the staging path.

What to do now

  • Update to WordPress Core 7.1.4 immediately. Use Dashboard → Updates in the admin panel or run `wp core update` via WP-CLI.
  • If patching must be delayed, restrict web access to the wp-content/upgrade/ directory in your web-server configuration (Nginx location block or Apache .htaccess) or via your WAF.
  • Confirm your hosting provider or managed-WordPress vendor has applied the patch to all sites under their management.
  • If you use a CDN or WAF service (Cloudflare, Sucuri, etc.), check whether a virtual patch rule is available and enable it as a secondary control.

How to tell if you were hit

  • Search web-server access logs for unexpected POST or GET requests to paths under wp-content/upgrade/ that do not correspond to a known upgrade event.
  • Look for unfamiliar PHP files written to wp-content/upgrade/, wp-content/, or the WordPress root around the time of any recent upgrade.
  • Check for new or modified admin accounts, unexpected cron jobs, or outbound network connections from the web-server process to unknown hosts.
  • Review PHP error and execution logs for code execution events originating outside normal plugin or theme paths.
  • If compromise is suspected, treat the server as untrusted: take a forensic snapshot before remediation and follow CISA's Forensics Triage Requirements (linked in the KEV notes).

Sources

  1. CISA KEV [link]

Get The Cybermatic Signal every week

The cybersecurity news that matters for SMBs, written for people without a security department. Plus Cybermatic Flash when a critical vulnerability is being exploited.

Subscribe free

BriefingIssuesFlashGuidesInsurance checkDomain checkSubscribe

Cybermatic.ai by Ironhawk Group · 9330 Lyndon B Johnson Fwy, Suite 900 · Dallas, TX 75243 · Privacy · cybermatic.ai