Last modified 2026 Nov 4

Upgrade-Window Remote Code Execution

CVE-2026-119977 is a race-condition flaw in the WordPress core upgrader. During a core update that uses a complete package, WordPress extracts a full copy of the new release into a directory inside wp-content/upgrade/. That directory sits under the web root, and in affected versions its path is derived solely from the package's filename. For the few seconds before the new files are copied into place and the staging tree is deleted, an unconfigured, executable copy of WordPress therefore exists at a path any observer can compute. The WordPress advisory states that an unauthenticated attacker who wins the race against that extraction could reach remote code execution. The flaw was reported by Umut Bayram, fixed in WordPress 7.1.4 on October 28, 2026, and backported to every branch back to 4.7. Wordfence, as CNA, published the CVE record on October 31.

The flaw matters because it turns a routine maintenance act into an exposure. Updating is the very thing defenders are urged to do, and the window opens whenever a qualifying update runs, whether an administrator starts it or the site updates itself in the background. CISA has added the CVE to its Known Exploited Vulnerabilities catalog, according to S4, and Wordfence reports thousands of requests probing staged installer paths. One property makes the remediation unusual. The upgrade to the fixed release is performed by the vulnerable code, so the act of patching opens one last window of its own.

This lesson has two parts. Part I explains how the core upgrader stages, verifies and installs a release, where the staging tree's assumed privacy goes unenforced, and how 7.1.4 changes it. Part II maps the paths by which untrusted requests reach the staged tree, the evidence a defender can observe, the tools that apply, and how to confirm the fix is in force. The affected and patched versions, as the WordPress advisory and the CVE record give them, are these:

Branch Affected First patched
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

The WordPress release post notes that only the most recent version is actively supported, and that the backports are offered as a courtesy. Versions earlier than 4.7 are outside the CVE record's affected range, and no registered source establishes their status.


Part I: Internals

Terminology