A vulnerability was discovered in WordPress that allows attackers without an account to execute arbitrary PHP code on the server. Attackers began checking websites for exploitability just minutes after the protection rule was implemented.
The vulnerability was assigned the identifier CVE-2026-119977 and has a CVSS score of 8.1. The issue affects WordPress Core versions 4.7 through 7.1.3. The developers patched the flaw in the October 28 release of WordPress 7.1.4, simultaneously preparing fixes for supported older branches.
Wordfence researchers recorded over 18,500 suspicious requests in the first 21 hours of monitoring. The first triggering of the protection rule occurred just nine minutes after its publication on October 28. This activity indicates rapid attacker interest in the new vulnerability, but the number of requests does not mean that the attackers successfully compromised 18,500 websites. Wordfence reported no confirmed cases of successful exploitation.
The error is related to the WordPress update mechanism. When the system installs a full version of an update package, it first unpacks the files into a temporary directory inside wp-content/upgradeAmong the temporary files is the WordPress installer, which, under certain web server settings, is accessible from outside and can execute PHP code. An attacker doesn't need to obtain an administrator account first. Simply locate the temporary directory and access the installer during the short window while WordPress unpacks the update. Researchers estimated the vulnerable window to be several seconds. After the operation is complete, the system deletes the temporary files, requiring the attacker to constantly check the accessibility of the required path.
Wordfence detected signs of automated attacks. The two most active sources continuously tested small groups of websites for approximately 14.5 hours. Other attackers experimented with different temporary directory names and installer versions. This behavior is consistent with attempts to exploit a short window of vulnerability during an update.
In WordPress 7.1.4, the developers changed the mechanism for preparing temporary files. The system now uses a random directory name instead of a predictable path, adds additional protection against direct access, and blocks unsafe movement of temporary configuration data. The fix has also been backported to older WordPress versions, starting with version 4.7.
Fixes for this vulnerability have been released in 25 releases. Depending on the installed branch, administrators should upgrade to WordPress 7.1.4, 7.0.8, 6.9.11, 6.8.12, or the corresponding patched version of an older branch. WordPress 4.6 and earlier versions no longer receive security updates, so owners of such sites will need to upgrade to a supported version.
Release 7.1.4 addresses not only the remote code execution issue but also other vulnerabilities. In total, the update addresses 22 security issues, including several variants of cross-site scripting (XSS), access control vulnerabilities, information disclosure, and vulnerabilities in the editor block API. Some of these vulnerabilities require an account with certain privileges, while the critical update mechanism issue does not require authentication.
Wordfence released a protection rule for paid users on October 28th. Free users won't receive similar protection until November 27th, as the company rolls out rules to free users with a 30-day delay. To ensure protection against direct access to temporary PHP files, you must enable Extended Protection mode, which inspects the request before transferring control to the requested file.
Experts also recommend temporarily banning external access to the directory. wp-content/upgradeAt the web server or other infrastructure component level before running the update. This measure is especially useful for administrators who don't have adequate WordPress firewall protection in place. After the update, it's worth checking the access logs for suspicious access to temporary installation files, as well as searching for unknown administrator accounts and extraneous PHP files.
WordPress site administrators should check their installed version and install the appropriate patch, rather than relying solely on automatic updates. The rapid emergence of automated requests indicates that attackers are closely monitoring the latest patches and begin searching for exploits almost immediately after vulnerability information is published.
The vulnerability was assigned the identifier CVE-2026-119977 and has a CVSS score of 8.1. The issue affects WordPress Core versions 4.7 through 7.1.3. The developers patched the flaw in the October 28 release of WordPress 7.1.4, simultaneously preparing fixes for supported older branches.
Wordfence researchers recorded over 18,500 suspicious requests in the first 21 hours of monitoring. The first triggering of the protection rule occurred just nine minutes after its publication on October 28. This activity indicates rapid attacker interest in the new vulnerability, but the number of requests does not mean that the attackers successfully compromised 18,500 websites. Wordfence reported no confirmed cases of successful exploitation.
The error is related to the WordPress update mechanism. When the system installs a full version of an update package, it first unpacks the files into a temporary directory inside wp-content/upgradeAmong the temporary files is the WordPress installer, which, under certain web server settings, is accessible from outside and can execute PHP code. An attacker doesn't need to obtain an administrator account first. Simply locate the temporary directory and access the installer during the short window while WordPress unpacks the update. Researchers estimated the vulnerable window to be several seconds. After the operation is complete, the system deletes the temporary files, requiring the attacker to constantly check the accessibility of the required path.
Wordfence detected signs of automated attacks. The two most active sources continuously tested small groups of websites for approximately 14.5 hours. Other attackers experimented with different temporary directory names and installer versions. This behavior is consistent with attempts to exploit a short window of vulnerability during an update.
In WordPress 7.1.4, the developers changed the mechanism for preparing temporary files. The system now uses a random directory name instead of a predictable path, adds additional protection against direct access, and blocks unsafe movement of temporary configuration data. The fix has also been backported to older WordPress versions, starting with version 4.7.
Fixes for this vulnerability have been released in 25 releases. Depending on the installed branch, administrators should upgrade to WordPress 7.1.4, 7.0.8, 6.9.11, 6.8.12, or the corresponding patched version of an older branch. WordPress 4.6 and earlier versions no longer receive security updates, so owners of such sites will need to upgrade to a supported version.
Release 7.1.4 addresses not only the remote code execution issue but also other vulnerabilities. In total, the update addresses 22 security issues, including several variants of cross-site scripting (XSS), access control vulnerabilities, information disclosure, and vulnerabilities in the editor block API. Some of these vulnerabilities require an account with certain privileges, while the critical update mechanism issue does not require authentication.
Wordfence released a protection rule for paid users on October 28th. Free users won't receive similar protection until November 27th, as the company rolls out rules to free users with a 30-day delay. To ensure protection against direct access to temporary PHP files, you must enable Extended Protection mode, which inspects the request before transferring control to the requested file.
Experts also recommend temporarily banning external access to the directory. wp-content/upgradeAt the web server or other infrastructure component level before running the update. This measure is especially useful for administrators who don't have adequate WordPress firewall protection in place. After the update, it's worth checking the access logs for suspicious access to temporary installation files, as well as searching for unknown administrator accounts and extraneous PHP files.
WordPress site administrators should check their installed version and install the appropriate patch, rather than relying solely on automatic updates. The rapid emergence of automated requests indicates that attackers are closely monitoring the latest patches and begin searching for exploits almost immediately after vulnerability information is published.