WordPress flaw CVE-2026-119977 exposes sites during update process, warns researcher

Published:

A newly discovered vulnerability in WordPress, tracked as CVE-2026-119977, poses a significant risk during the update process, according to Umut Bayram, a researcher at Picus Security. The flaw allows attackers to exploit the system while the fix is being installed, potentially enabling them to execute code on the server.

The vulnerability affects WordPress versions 4.7 through 7.1.3. When a site updates, it unpacks the new version using the existing, unpatched code, which can be exploited if an attacker accesses the temporary installation files before they are deleted. The U.S. Cybersecurity and Infrastructure Security Agency (CISA) has recently added this flaw to its catalog of known exploited vulnerabilities, highlighting its urgency.

Mechanics of the Vulnerability

During a core update, WordPress creates a temporary folder within the wp-content/upgrade directory to unpack the new version. This folder includes the WordPress installer, which can be accessed by an attacker if they know its name. If an attacker can access this installer before it is removed, they can run arbitrary code on the server, potentially compromising the entire site.

WordPress released a fix in version 7.1.4, which randomizes the name of the temporary folder to mitigate this risk. However, the update process itself still utilizes the old code, which can expose the folder name during the installation of the fix, allowing for a brief window of vulnerability.

Recommendations for Mitigation

Bayram advises site administrators to take immediate action to protect their sites. The first recommendation is to block web access to the wp-content/upgrade folder before performing any updates. This can be achieved by modifying the web server configuration. For Nginx, administrators can add the following directive:

  1. location ^~ /wp-content/upgrade/ { deny all; }

For Apache servers, the following should be added inside the relevant directory block:

  1. Require all denied

Additionally, if editing the .htaccess file is the only option, administrators can include:

  1. RedirectMatch 403 ^/wp-content/upgrade/

After implementing these changes, administrators should confirm that access to the upgrade folder returns a 403 error before proceeding with the update to version 7.1.4 or its respective branch fix.

Active Exploitation and Next Steps

Evidence of active exploitation has already been observed, with attempts to exploit the vulnerability beginning shortly after the release of the fix. Wordfence, a WordPress security company, reported that attack attempts surged just nine minutes after deploying a firewall rule for the flaw. The vulnerability has a CVSS score of 8.1 out of 10, indicating a high severity level.

For those who have not yet updated, Wordfence recommends checking for unusual activity, such as unexpected requests to PHP files in the wp-content/upgrade directory, unfamiliar administrator accounts, or unauthorized plugins. Sites running versions prior to 4.6 are particularly vulnerable, as they no longer receive security updates.

As the situation evolves, site administrators are urged to remain vigilant and implement the recommended security measures to safeguard their WordPress installations. For further details, refer to the technical write-up by Bayram on the Picus Security blog.

For more information on the vulnerability and its implications, visit The Hacker News.

CHAPTER X // CYBER AWARENESS CAMPAIGN
BEYOND THE BALLROOM
[C://ME] // CHAPTER X

REQUEST THE MEDIA KIT

Tell us where to send the Beyond the Ballroom media deck. Every field is required.

We will use these details to respond to your media-kit request. Privacy Policy

Cyber Warriors Conclave Chapter X — Beyond the Ballroom

Related articles

Recent articles

Air Force cyber adviser calls for increased investment in digital forensics

The Department of the Air Force's principal cyber adviser, Wanda Jones-Heath, has called for increased investment in digital forensics to effectively address the evolving...

Adversaries leverage AI to enhance exploitation of public vulnerability research, warns CrowdStrike

Recent findings from CrowdStrike highlight a concerning trend in the cybersecurity landscape: adversaries are increasingly leveraging artificial intelligence (AI) to enhance their exploitation of...

Ransomware attack disrupts Queens Public Library’s online services, investigation ongoing

A ransomware attack on the Queens Public Library on Wednesday has led to a significant disruption of its online services, with the outage persisting...

OPSWAT report highlights gap in file security maturity among Middle East organisations

A recent report by OPSWAT has unveiled a significant disparity between the perceived and actual file security maturity among organizations in the Middle East....