CVE-2026-119977: WordPress Core Remote Code Execution via Predictable Upgrade Staging Paths
WordPress versions 4.7 through 7.1.3 are vulnerable to unauthenticated remote code execution during full-package core upgrades due to predictable, web-accessible staging paths. This vulnerability is actively exploited in the wild.
The vulnerability exists in how WordPress Core handles full-package upgrades. The staging directories used temporarily during the upgrade process are placed in predictable, web-accessible locations. An attacker can exploit this window to upload and execute arbitrary code on the server before the upgrade completes. This affects a wide range of versions spanning several years, making it a critical risk for enterprises running legacy or slightly outdated WordPress deployments.
| CVE | CVE-2026-119977 |
|---|---|
| Severity | High (CVSS 8.1) |
| Actively exploited | Yes, listed in CISA's Known Exploited Vulnerabilities catalog on 3 Nov 2026 |
| CISA remediation deadline | 6 Nov 2026 |
| Weakness | CWE-367 |
| Attack vector | Network |
| Privileges required | None |
| User interaction | None |
| Published | 31 Oct 2026 |
How the attack works
During a full-package WordPress upgrade, the system extracts files to a temporary staging directory with a predictable path that is web-accessible. An attacker can guess or enumerate this path and upload malicious code into it before the upgrade validation completes. Since no authentication is required and the staging path is reachable over the network, an unauthenticated attacker can execute code on the server during the brief upgrade window. This is a race condition: the attacker must deliver the payload before the upgrade process validates or moves the files to their final location.
Who is affected
WordPress Core versions 4.7 through 7.1.3. This includes all automatic and manual upgrades of affected versions. Enterprises running WordPress versions released between 2017 and late 2025 should assume they are exposed.
How to check if you're exposed
- Query WordPress version via wp-includes/version.php or wp-admin/includes/version.php; versions 4.7–7.1.3 are vulnerable
- Monitor web server access logs for requests to wp-content/upgrade/ or similar staging directories during maintenance windows
- Check for suspicious PHP files or executable uploads in temporary directories during or after WordPress upgrades
- Enable WordPress debug logging (WP_DEBUG and WP_DEBUG_LOG) to detect upgrade process anomalies
How to fix it
- Upgrade WordPress Core to version 7.1.4 or later immediately
- For legacy installations unable to upgrade, consider isolating the server from the internet or using a maintenance window with access controls
- Apply CISA BOD 26-04 guidance for patching timelines and ensure cloud-hosted WordPress follows vendor security update procedures
If you can't patch yet
- Disable WordPress auto-updates during non-business hours and monitor the upgrade process in real-time to catch exploitation attempts
- Implement strict network access controls to limit requests to wp-content/upgrade/ and similar directories to trusted IPs only
- Use a Web Application Firewall (WAF) with rules to block suspicious file uploads and execution attempts in upgrade staging paths
Need help checking your exposure or patching at scale? FutureOps InfoTech can help.