Why the update itself is the problem
CVE-2026-119977 sits in the mechanism meant to protect a site: the WordPress core updater. During a full-package update, WordPress extracts the new files into wp-content/upgrade/ and only then copies them into place. The name of this temporary directory is predictable (since version 5.9 it is derived from the downloaded package name), and the directory is usually reachable from the internet and executes PHP. The extracted files include the setup-config.php installer. It does not see the site's live configuration, so it assumes WordPress has not been configured yet.
An attacker who hits this moment fills in the installer, without logging in, with the details of their own empty database. The installer writes a new wp-config.php into the temporary directory, and the update copies it along with the other files, overwriting the real one. The site connects to the attacker's database and shows the installation screen, where the attacker creates an administrator account. From there, uploading a plugin with their own PHP code is enough to run commands on the server with the web server's privileges. The flaw was reported by Umut Bayram of Picus Security and is rated CVSS 8.1.
How serious it is in practice
The attack window lasts only from extracting the package to copying the files. This is why exploitation is rated harder than for a typical remote flaw. Attacks are happening anyway. According to Wordfence, there were more than 18,500 requests to the installer in temporary directories in the first 21 hours after disclosure, and within a single day the company blocked more than 13,000 attacks. Bots keep polling the predictable paths, hoping some site is updating at that moment. On 3 November 2026 CISA added the flaw to its KEV catalogue.
So a site is most exposed while it installs the fix. According to Picus Security, the update to the fixed version still runs the old code, because the old version starts it, so the temporary directory still has a predictable name. Overwriting wp-config.php is already blocked by the new package, but an attacker can configure the temporary WordPress copy and use it to execute PHP code on the server. The same path applies to updates via WP-CLI (wp core update).
We recommend acting immediately, without waiting for a maintenance window, but in a set order: block the directory first, then update, then check for traces.
Vulnerable and fixed versions
- Vulnerable: all versions up to and including 7.1.3.
- Fixed (28 October 2026): 7.1.4 and releases for older branches, including 7.0.8, 6.9.11, 6.8.12, 6.7.11, 6.6.11, 6.5.14, 6.4.14 and further back down to 4.7.39.
- WordPress 4.6 and older no longer receives security fixes and needs to move to a supported version.
Release 7.1.4 fixes 22 issues in total, mostly stored XSS, so it is worth installing regardless of this flaw.
How to update safely
- Before updating, block web access to
wp-content/upgrade/. In nginx:location ^~ /wp-content/upgrade/ { deny all; }; in Apache, the equivalent withRequire all deniedin the server configuration. Do not put a.htaccessfile in the directory itself, because the old updater deletes it. Test the block: a request to this directory must return a 403. - Update WordPress to 7.1.4 or to the latest release of the branch in use. A safer route is to replace the core files manually from a package extracted outside the site directory, leaving out
wp-contentandwp-config.php. - Check the version with
wp core versionand file integrity withwp core verify-checksums.
For sites on shared hosting that the provider updates, the provider should be asked whether it blocks this directory and when it installed the fix.
Has anyone got in already
Every site that updated its core since late October should be checked:
- web server logs:
grep -E 'wp-content/upgrade/.*setup-config\.php' /var/log/nginx/access.log*(or the Apache equivalent); - the modification date and contents of
wp-config.php, especially the database settings (DB_HOST,DB_NAME); - the list of administrators (
wp user list --role=administrator) and plugins (wp plugin list); - foreign PHP files in
wp-content/upgrade/andwp-content/plugins/.
If the site showed the installation screen even briefly, or an unknown administrator has appeared, treat the server as compromised: change database and account passwords, check crontab, processes and files, and where personal data is involved, assess the obligation to report the breach under applicable law.
The longer-term lesson
Automatic WordPress updates are still a good habit, and this flaw does not change that. What it shows is that an application's working directories should not be reachable from the web or execute PHP. A rule blocking wp-content/upgrade/ is a single line of configuration worth keeping permanently on every WordPress installation in the company, together with an up-to-date inventory of those installations and their versions.
Sources
The information in this post comes from the sources below. Each link was checked before publication.