When WordPress upgrades itself, a full-package core upgrade downloads the new release and unpacks it into a staging directory under the web root before moving the files into place. In every version from 4.7 to 7.1.3 that staging path was predictable and reachable over the web, and the CVE record describes a time-of-check-to-time-of-use race in which an unauthenticated attacker who acts during the upgrade window can execute code on the server. The window is short, and the attack complexity is rated high for that reason, but the number of WordPress installs is not small and this one is being exploited. If you run a self-hosted WordPress below 7.1.4, or below the backported release for your branch, update it now and make sure automatic background updates are on. This page shows how to check the version and the upgrade directory, how to update on each distribution, and what a hit looks like in the web server log.
CVE-2026-119977 at a glance.
| Component | WordPress core’s upgrade code: the CVE record’s references point at wp-admin/includes/class-wp-upgrader.php, wp-admin/includes/class-core-upgrader.php, wp-admin/includes/update-core.php and wp-admin/setup-config.php. On Linux that is any self-hosted WordPress, whether installed from the distribution package (wordpress on Debian) or, far more commonly, unpacked from wordpress.org under a web server |
| Affected versions | 4.7.0 through 7.1.3, every branch in between (CVE record; NVD lists each branch’s range) |
| Fixed in | 7.1.4 (28 October 2026) and the backports NVD records as the fixed version of each branch: 7.0.8, 6.9.11, 6.8.12, 6.7.11, 6.6.11, 6.5.14, 6.4.14, 6.3.14, 6.2.15, 6.1.16, 6.0.18, 5.9.20, 5.8.19, 5.7.21, 5.6.23, 5.5.24, 5.4.25, 5.3.27, 5.2.30, 5.1.28, 5.0.31, 4.9.35, 4.8.34 and 4.7.39. Debian trixie wordpress 6.8.12+dfsg1-0+deb13u1 (DSA-6596-1) |
| Severity | CVSS 3.1 8.1 High from the Wordfence CNA (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H); the high attack complexity is the upgrade window. NVD carries no score of its own. CWE-367 (Red Hat lists CWE-552). Red Hat rates it Important |
| Exploited in the wild | Yes. Added to CISA’s Known Exploited Vulnerabilities catalogue on 3 November 2026; federal remediation due 6 November 2026. EPSS 0.021 (82.8th percentile) on 27 November 2026 |
| Who is exposed | every self-hosted WordPress below the fixed version for its branch, during any full-package core upgrade it performs, to anyone who can reach the site over the web. A site that is never upgraded never opens this window but is exposed to everything else that has been fixed since; a site on automatic background updates opens the window briefly and then closes it for good. Not affected: WordPress.com and other managed hosts that have applied the release; sites already on 7.1.4 or a fixed branch release |
| Published | CVE record 31 October 2026, release 28 October 2026; this page built 29 November 2026, last updated 29 November 2026 |
What it is
A WordPress core upgrade is a file operation performed by the web application on itself. The upgrader downloads the release archive into wp-content/upgrade, unpacks it there, and then copies the new files over the old ones, deleting the staging copy at the end. For a full-package upgrade, the staging copy is a complete WordPress tree, and for the duration of the copy it sits under the web root in a directory whose name, the CVE record says, was predictable. Predictable and web-accessible together mean an outsider could address files in the staged copy while it existed.
The record classifies the result as a time-of-check-to-time-of-use race, CWE-367, and says it allows an unauthenticated attacker to execute code on the server during the upgrade window. The record’s references point at the installer’s configuration step, setup-config.php, in the vulnerable version alongside the upgrader files, and at the changed upgrader files in 7.1.4. The release post, written by the WordPress security team on 28 October 2026, describes it only as a weakness in the upgrade process that can lead to remote code execution during the upgrade window, credits Umut Bayram with the report, and says the fix is being backported to every branch that still receives security fixes, which currently means back to 4.7. We have not read the fix itself: the WordPress Trac pages the record cites refuse automated readers, so the file list above is the record’s, not ours.
Two things follow for an operator. The exposure is not continuous; it exists while an upgrade runs, which on a site with automatic background updates is a few seconds a few times a year, and on a site someone updates by hand is whenever they click. And the fix is itself delivered by the mechanism that is vulnerable, so the one upgrade that takes you from a vulnerable version to a fixed one is the last time the window opens; the sensible response is to make it happen now, from a trusted network, rather than to put it off.
Who is affected on Linux
Most WordPress installs on Linux are unpacked from wordpress.org and update themselves, so the version that matters is the one in the box above. Debian packages WordPress and backports fixes; Ubuntu carries Debian’s package in universe; Red Hat does not ship it in RHEL but covers Fedora and EPEL. The rows below are what each tracker said on 29 November 2026; the link in a row is the tracker page.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted | — |
| Debian trixie | Fixed (DSA-6596-1) | wordpress 6.8.12+dfsg1-0+deb13u1 |
| Debian bookworm | Vulnerable | 6.1.9+dfsg1-0+deb12u1 is the current package; no fixed version listed |
| Debian forky and sid | Fixed | 7.1.5+dfsg1-1 |
| Ubuntu | Not consulted (tracker returned a server error on 29 November 2026) | — |
| RHEL, Rocky, Alma, CentOS Stream | Not in RHEL; Red Hat rates it Important and notes Fedora and EPEL carry the community package | see the Fedora and EPEL wordpress packages |
| Fedora, openSUSE/SLE, Arch | Not consulted | — |
| wordpress.org installs | Affected below the fixed version for the branch | 7.1.4, or the branch release in the box above |
How to check
Three questions, in order: which WordPress is installed, is the upgrade directory reachable from outside, and will the site update itself. The commands assume /var/www/html; substitute your document root. wp is WP-CLI, which most hosts have and which is worth installing if yours does not.
# 1. version, two ways
wp core version --path=/var/www/html 2>/dev/null
grep -m1 'wp_version = ' /var/www/html/wp-includes/version.php
# 2. the staging directory: it should exist, be writable by the web server, and not list its contents to the world
ls -ld /var/www/html/wp-content/upgrade
curl -sI https://example.org/wp-content/upgrade/ | head -1 # 403 or 404 is what you want; 200 is a listing
# 3. automatic background updates: a "true" from the first, and no disabling constant from the second
wp eval 'var_dump(wp_is_auto_update_enabled_for_type("core"));' --path=/var/www/html 2>/dev/null
grep -nE 'AUTOMATIC_UPDATER_DISABLED|WP_AUTO_UPDATE_CORE|DISALLOW_FILE_MODS' /var/www/html/wp-config.phpIf step 1 shows 7.1.4 or later, or the fixed release for an older branch, the code is fixed. If it shows anything else, the site opens this window the next time it upgrades, and step 3 tells you whether that will happen on its own. A 200 from step 2 means the web server is producing directory listings under wp-content, which is a separate problem to fix regardless of this bug. The DISALLOW_FILE_MODS constant in step 3 stops the site updating itself at all, which is a defensible choice only if something else, such as the distribution package, is doing it instead.
Since the listing came after exploitation, look back. The attack has to reach the staging directory while an upgrade runs, so the signature in the web server log is a request into wp-content/upgrade/ from the outside, clustered around the time a core update was applied; the update_core entries in the site’s own options table give you the timestamps to look around.
# outside requests into the staging directory, with timestamps
zgrep -h 'wp-content/upgrade/' /var/log/nginx/access.log* /var/log/apache2/access.log* 2>/dev/null | awk '{print $1, $4, $6, $7, $9}' | tail -100
# PHP files that appeared after the last core update, in places that should hold none
find /var/www/html/wp-content/upgrade /var/www/html/wp-content/uploads -name '*.php' -newer /var/www/html/wp-includes/version.php 2>/dev/null
# the stored update history, for the timestamps
wp option get update_core --path=/var/www/html 2>/dev/null | head -20A request into wp-content/upgrade/ from an address you do not recognise, timed to an upgrade, is not a false positive, and a PHP file under uploads is not one either. Treat the site as compromised: rotate the database password and the salts in wp-config.php, reinstall core from a fresh download rather than trusting the files on disk, and review every administrator account. Restoring a Linux Server covers the host side.
How to fix it
Update to 7.1.4, or to the fixed release for your branch if you are deliberately holding an older one. No restart is involved: PHP picks up the new files on the next request, though a PHP opcache with validation turned off needs a reload of php-fpm. This upgrade is itself a full-package core upgrade, so it is the last time the window opens on this site.
# wordpress.org installs, with WP-CLI, run as the user that owns the files
wp core update --path=/var/www/html && wp core verify-checksums --path=/var/www/html
wp core version --path=/var/www/html # must show 7.1.4 or later, or the branch release
# or from the dashboard: Dashboard > Updates > Update Now
# Debian trixie package
apt update && apt install --only-upgrade wordpress
dpkg -l wordpress | grep '^ii' # must show 6.8.12+dfsg1-0+deb13u1 or later
# if php-fpm's opcache does not revalidate files
systemctl reload php8.3-fpm 2>/dev/null || systemctl reload php-fpmIf you cannot update yet, the project’s only published mitigation is to update, and we are not going to invent another one. What you can do is make sure the site does not open the window unobserved: leave automatic updates on, because the fixed release closes the window, and do not run a manual core upgrade on a site you cannot watch. If you choose to turn automatic updates off instead, you are choosing to stay on a version with this and every later fix missing, which is the worse of the two.
Do not mistake a plugin firewall rule for the fix: the vulnerable code runs inside the same PHP process that the firewall plugin does, and the fix is a change to how WordPress stages files, which only the release delivers. And do not make wp-content/upgrade unwritable to stop the window opening; the upgrader needs it, and a site that cannot upgrade is the one that stays vulnerable.
Sources
- CVE-2026-119977 at CVE.org — the record, the CVSS vector, the per-branch ranges and the file references (Wordfence CNA, published 31 October 2026)
- NVD entry — the CPE ranges with each branch’s fixed version, and the KEV cross-reference (analysed 4 November 2026)
- CISA Known Exploited Vulnerabilities — added 3 November 2026, action due 6 November 2026
- WordPress 7.1.4 Security Release — the release post of 28 October 2026, the credit and the backport statement
- Distribution trackers: Debian (DSA-6596-1) · Ubuntu (server error on 29 November 2026) · Red Hat (statement)
- EPSS score for this CVE, 27 November 2026
Related reading
- Set Up a LEMP Stack: Nginx, MariaDB and PHP — the stack most self-hosted WordPress sites run on, and where
wp-contentsits in it - Set Up a Web Server with Nginx — turning directory listings off, which step 2 above checks for
- File Permissions — chmod, chown and umask — why the web server has to be able to write to
wp-content/upgradeand should not be able to write anywhere else - Reading Linux Logs: journalctl and the Files It Did Not Replace — the access log is one of the files, and this is how to read a month of it
- The Half of Patching That Happens After the Patch is Installed — opcache, and why a changed PHP file is not always a changed site
- Debian: Stable Means Unchanging, Not Bug-Free — why trixie’s fix is in a 6.8.12 package when upstream is on 7.1
This advisory page was assembled from the primary sources listed above on 29 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

