CVE-2026-119977 – Remote code execution during WordPress core updates

A race condition in full-package core updates
November 18, 2026 · Martin Ehrentraut · Security · AI-assisted
WordPress 7.1.4, released on October 28, 2026, fixes CVE-2026-119977. The flaw affects unpatched releases from 4.7.0 through 7.1.3, with fixes backported through the 4.7 branch. If your site still runs an affected release, restrict web access to the staging directory before updating, then verify the installed version. WordPress release announcement
WordPress · CVE-2026-119977. A cube with a block editor and open update drawer sits between an orange warning triangle and an unlocked padlock.
AI-generated illustration of the exposure window during a WordPress core update.

An attacker without a WordPress account can potentially run code on the server while a vulnerable site installs a full core package. Umut Bayram of Picus Security found and reported the issue. WordPress released the fix on October 28, 2026. The CVE record followed on October 31. WordPress advisory · CVE record

How the update window exposes the site

WordPress temporarily extracts the package under wp-content/upgrade/. On affected sites, the staging location can be predictable and reachable over HTTP. This can expose the temporary setup-config.php installer during the update. The gap between extraction and copying files into the live site creates a time-of-check to time-of-use race condition (TOCTOU, CWE-367). A wp-config.php file written into staging can make it into the live installation. Picus Security analysis · CVE record

Wordfence, the CVE Numbering Authority (CNA), assigned a CVSS v3.1 base score of 8.1 (High). Successful exploitation depends on timing, web access to staging and the ability to execute PHP there. WordPress rates the issue Low in its own advisory. A background update using a full package can expose the same window. CVE scoring · WordPress advisory · Wordfence technical analysis

Which releases are affected?

The official range spans WordPress 4.7.0 through 7.1.3. Check the first fixed release for your branch below, since older branches received their own patches. WordPress 4.6 and earlier fall outside the official range and received no backport. Move these installations to a supported release. Affected and patched versions · WordPress release announcement

BranchAffected versionsFirst fixed release
7.17.1.0–7.1.37.1.4
7.07.0.0–7.0.77.0.8
6.96.9.0–6.9.106.9.11
6.86.8.0–6.8.116.8.12
6.76.7.0–6.7.106.7.11
6.66.6.0–6.6.106.6.11
6.56.5.0–6.5.136.5.14
6.46.4.0–6.4.136.4.14
6.36.3.0–6.3.136.3.14
6.26.2.0–6.2.146.2.15
6.16.1.0–6.1.156.1.16
6.06.0.0–6.0.176.0.18
5.95.9.0–5.9.195.9.20
5.85.8.0–5.8.185.8.19
5.75.7.0–5.7.205.7.21
5.65.6.0–5.6.225.6.23
5.55.5.0–5.5.235.5.24
5.45.4.0–5.4.245.4.25
5.35.3.0–5.3.265.3.27
5.25.2.0–5.2.295.2.30
5.15.1.0–5.1.275.1.28
5.05.0.0–5.0.305.0.31
4.94.9.0–4.9.344.9.35
4.84.8.0–4.8.334.8.34
4.74.7.0–4.7.384.7.39

Protect the first update and install the fix

The patched updater appends a random 16-character suffix to the staging directory name and preserves or recreates upgrade/index.php to guard against directory listing. The copy routine adds wp-config.php to its skip list. Picus Security patch analysis

The first update from a vulnerable release still uses the old extraction code. The copy routine comes from the new package, so it already skips wp-config.php. The staging protections take effect when a patched updater runs the next update. Block HTTP access to the staging directory before updating. Analysis of the first update

These examples assume WordPress runs at the web root. Adjust the URL prefix or filesystem path to match your installation. For the root .htaccess option, place the rule above the WordPress rewrite block. If your hosting provider manages the web server, ask them to apply the restriction and update the site.

# Nginx
            location = /wp-content/upgrade { deny all; }
            location ^~ /wp-content/upgrade/ { deny all; }

            # Apache VirtualHost
            <Directory "/var/www/html/wp-content/upgrade">
                Require all denied
            </Directory>

            # Apache .htaccess
            RedirectMatch 403 ^/wp-content/upgrade(?:/|$)

Keep the rule outside the staging directory, where the old updater can clear files before extraction. Confirm the server denies web access before starting the update. Keep local filesystem access available to WordPress. Back up the site files and database, install the fix promptly and verify the running version. Mitigation guidance

What the exploitation reports show

Beware of purported “7.1.4 bypasses”. Fake exploit repositories can serve as bait for malware. Avoid downloading or running their files.

Check for compromise

Review sites that ran a core update with an unpatched updater and a web-accessible staging directory. If you suspect compromise, preserve the logs, files and a database export before cleanup.

WordPress · CVE-2026-119977. A magnifying glass enlarges a tile in an open configuration drawer beside a clipboard with an orange warning marker.
AI-generated illustration of checking configuration and access logs after a core update.

Continue reviewing files and accounts even if the logs show no suspicious requests. If several findings point to compromise, preserve the current state for investigation and use the findings to scope cleanup. Wordfence detection guidance

Sources