CVE-2026-119977 – Remote code execution during WordPress core updates
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
| Branch | Affected versions | First fixed release |
|---|---|---|
| 7.1 | 7.1.0–7.1.3 | 7.1.4 |
| 7.0 | 7.0.0–7.0.7 | 7.0.8 |
| 6.9 | 6.9.0–6.9.10 | 6.9.11 |
| 6.8 | 6.8.0–6.8.11 | 6.8.12 |
| 6.7 | 6.7.0–6.7.10 | 6.7.11 |
| 6.6 | 6.6.0–6.6.10 | 6.6.11 |
| 6.5 | 6.5.0–6.5.13 | 6.5.14 |
| 6.4 | 6.4.0–6.4.13 | 6.4.14 |
| 6.3 | 6.3.0–6.3.13 | 6.3.14 |
| 6.2 | 6.2.0–6.2.14 | 6.2.15 |
| 6.1 | 6.1.0–6.1.15 | 6.1.16 |
| 6.0 | 6.0.0–6.0.17 | 6.0.18 |
| 5.9 | 5.9.0–5.9.19 | 5.9.20 |
| 5.8 | 5.8.0–5.8.18 | 5.8.19 |
| 5.7 | 5.7.0–5.7.20 | 5.7.21 |
| 5.6 | 5.6.0–5.6.22 | 5.6.23 |
| 5.5 | 5.5.0–5.5.23 | 5.5.24 |
| 5.4 | 5.4.0–5.4.24 | 5.4.25 |
| 5.3 | 5.3.0–5.3.26 | 5.3.27 |
| 5.2 | 5.2.0–5.2.29 | 5.2.30 |
| 5.1 | 5.1.0–5.1.27 | 5.1.28 |
| 5.0 | 5.0.0–5.0.30 | 5.0.31 |
| 4.9 | 4.9.0–4.9.34 | 4.9.35 |
| 4.8 | 4.8.0–4.8.33 | 4.8.34 |
| 4.7 | 4.7.0–4.7.38 | 4.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
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 updateThese 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
- CISA KEV. CISA added CVE-2026-119977 to its Known Exploited Vulnerabilities catalog on November 3, 2026, based on evidence of exploitation. The entry sets a November 6, 2026 deadline for affected US federal agencies and calls for forensic triage. Official KEV dataset
- Blocked requests. On November 5, Wordfence reported blocking more than 240,000 attempts since disclosure. The daily peak exceeded 74,000 on October 30. Those figures cover requests blocked by Wordfence’s firewall and leave the number of successful compromises open. November 5 Wordfence telemetry
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.
- Access logs. Look for external requests to PHP files under
/wp-content/upgrade/, especiallysetup-config.php. Compare their timestamps with update activity. Investigate HTTP 200 responses in context, including the method, response body and other evidence. - Configuration. Compare
wp-config.phpwith a trusted backup. Check the database host, database name, table prefix and any unexpected changes around an update. Compare unfamiliar outbound database connections with your hosting configuration. - Accounts and plugins. Review administrators and installed plugins for unexpected entries, including must-use plugins in
mu-plugins/. - Files. Check the staging directory for unexpected leftovers. Verify core and plugin files against trusted reference copies or available checksums. Investigate unexpected PHP files in upload directories.
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
- NVD – CVE-2026-119977
- WordPress.org – WordPress 7.1.4 security release
- CISA – November 3, 2026 announcement
- Wordfence – October 29, 2026 technical analysis
- WPScan – Affected and fixed WordPress versions
- WordPress advisory GHSA-4w3m-c66w-69mg – Affected versions and backports
- Picus Security – Root cause, patch and mitigation
- CVE Program – Wordfence CNA record
- CISA – Official KEV dataset
- Wordfence – November 5, 2026 firewall telemetry