Unauthenticated RCE in WordPress Core Upgrade Staging
CVE-2026-119977 is a time-of-check time-of-use race condition in the WordPress Core updater affecting unpatched releases across branches 4.7 through 7.1.3. During full-package upgrades, the updater extracts a temporary WordPress installation into a predictable or discoverable, web-accessible staging directory. An unauthenticated attacker who reaches the staged installer before cleanup can configure the temporary installation against an attacker-controlled database. The vulnerable update_core() copying behavior can then overwrite the live site's configuration with the attacker-created configuration, enabling site takeover and subsequent arbitrary PHP execution. Code execution can also occur within the temporary installation itself. Exploitation is constrained by a short upgrade window and requires web access to executable staged PHP files. The vulnerability is actively exploited and listed in CISA's Known Exploited Vulnerabilities catalog.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the WordPress installation and execute arbitrary code with the web server account's privileges, affecting confidentiality, integrity, and availability. Potential consequences include unauthorized administrator creation, malicious plugin installation, persistent backdoors, content modification, and theft of database credentials or other locally accessible secrets. Access to additional applications or infrastructure depends on the compromised account's permissions and available credentials. Installing the patch does not remove an existing compromise.
If you can’t patch tonight, do this now.
Before updating, deny external HTTP access to the WordPress upgrade staging directory at the web server or reverse proxy and verify that requests are denied. Disable directory listing as defense in depth. Do not rely on access-control files placed inside the staging directory because the vulnerable updater can delete them. Alternatively, perform a manual update using release files extracted outside the web root; WP-CLI core updates use the same core updater and do not inherently avoid exposure. Ordinary plugin-loaded firewalls do not protect standalone staged installer scripts. Wordfence protection requires the applicable rule and Extended Protection mode. These controls supplement rather than replace patching.
Patch, then assume compromise.
Upgrade to WordPress 7.1.4 or a later security release, or install the corresponding fixed maintenance release for the installed branch. Examples include 7.0.8, 6.9.11, 6.8.12, and 4.7.39; intermediate branches have their own fixed releases. Unsupported installations should migrate to a supported release. The patch randomizes staging directory names, preserves directory-listing protection, and excludes staged configuration files from the live configuration copy operation. Apply staging-directory access restrictions before updating because the first patched upgrade still begins with the vulnerable extraction code. Investigate historical upgrade windows for compromise; preserve logs, remove unauthorized accounts and code, restore affected files from trusted copies, and rotate accessible credentials when compromise is suspected.
2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
177 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.