top of page

The Burglar’s Last Chance: How Fixing a WordPress Vulnerability Can Leave the Door Open One Final Time

9 nov
9 min de lectura

The building was finally getting repaired.

For weeks, its owners had been worried about an exposed entrance.

They knew someone could slip inside during renovations. They knew the old security arrangements were inadequate. And they knew the entrance had to be replaced.

Now the repair crew had arrived.

A new reinforced door stood beside the entrance. The workers carried their tools inside. The owners watched with relief.

Soon, the building would be safe.

But across the street, a burglar was watching too.

He knew something the owners hadn’t considered.

Before the workers could install the new door, they would have to use the old entrance one final time.

And during those fleeting moments, the building could still be breached.

The owners were fixing the vulnerability. The burglar was waiting for the fix itself to begin.

That is the unsettling discovery behind new research into CVE-2026-119977, an actively exploited WordPress Core vulnerability.

According to Umut Bayram, the Picus Security researcher who discovered the flaw, some WordPress websites may remain vulnerable during the very update intended to protect them.

The reason is deceptively simple.

The patch is installed by an updater that has not yet been patched.


Phase 1 — The Building With the Exposed Entrance


The original vulnerability affects WordPress Core versions 4.7 through 7.1.3.

Tracked as CVE-2026-119977, it carries a CVSS score of 8.1 in the Wordfence-assigned record.

The flaw involves a time-of-check to time-of-use (TOCTOU) race condition during WordPress Core updates.

When WordPress performs an update using a complete package, it extracts the new release into a temporary directory under:

wp-content/upgrade/

That temporary copy contains WordPress installation files.

Under vulnerable conditions, the files can become accessible through the web server.

If an attacker identifies the temporary directory and reaches the installer before the update process removes it, the attacker may be able to execute code on the server.

No existing WordPress account is required.

The opportunity is brief, but potentially serious.

The burglar didn’t need to defeat the building’s permanent defenses. He only needed to reach a temporary entrance while the workers were moving equipment.


Phase 2 — The Owners Order a Stronger Door


WordPress released security fixes in version 7.1.4, along with corresponding patched releases for older supported branches.

The changes address two important weaknesses.

First, the patched updater gives temporary staging directories randomized names, making them harder for an attacker to predict.

Second, the updated installation process prevents a configuration file created in the temporary copy from replacing the live website’s wp-config.php.

These improvements strengthen the update mechanism.

Once the patched updater is installed, subsequent updates benefit from the new protections.

But there is a catch.

The first update that installs those protections must begin with the code already present on the website.

And that code is still vulnerable.

The new door was stronger. But the workers still had to pass through the old doorway to install it.


Phase 3 — The Last Vulnerable Renovation


This is the central finding of Bayram’s research.

On WordPress 5.9 and later, the vulnerable updater names its temporary staging directory after the downloaded package.

That naming behavior can make the path predictable.

Even when the downloaded package contains the security fix, the initial extraction is performed by the old updater.

Consequently, a temporary WordPress installation may become accessible before the patch has finished installing.

An attacker who reaches that temporary installation during the relevant window may still be able to exploit it.

Importantly, the update does not necessarily expose every site.

The risk depends on whether the update package includes the installer files, whether the temporary directory can be reached over the web and whether the attacker can identify and access it in time.

But where those conditions are met, installing the fix can create one final opportunity for exploitation.

The burglar wasn’t waiting for the repairs to fail. He was waiting for the repairs to start.


Phase 4 — A Different Way to Get Inside


Before the fix, an attacker could exploit the temporary installer to create a malicious wp-config.php file.

Under vulnerable conditions, that file could subsequently overwrite the live site’s configuration during the update.

The patch changes this behavior.

The part of the fix that prevents the temporary configuration file from overwriting the real one already takes effect during the update that installs the patch.

That closes one important attack route.

However, Bayram identified another risk that remains during that first update.

If an attacker reaches the temporary WordPress installation, they may be able to configure it using a database they control.

They can then authenticate to that temporary installation and execute PHP code with the permissions of the web server.

From that position, the attacker may be able to read or modify files belonging to the live WordPress website.

The temporary installation disappears when the update finishes.

But successful unauthorized code execution may already have affected the live environment.

The burglar no longer needed to replace the building’s master plans. He only needed to enter the temporary worksite and reach the rooms connected to it.


Phase 5 — Not Every Renovation Opens the Same Door


A crucial distinction concerns the type of update package WordPress uses.

A complete package includes the full WordPress distribution, including installer files.

A partial package contains only the files needed to move between particular versions.

That means a partial update does not automatically create the same exposure.

The deciding question is whether the package contains the files required to make the temporary copy function as an installable WordPress instance.

The Hacker News checked WordPress’s update service and found that some same-branch updates, such as moving from 7.1.3 to 7.1.4, were offered as partial packages.

Other upgrade paths, such as moving from an older branch to 7.1.4, were offered as complete packages.

Even when a partial package is available, WordPress may fall back to a complete package if the site’s Core files do not match expected checksums or the operation is a reinstall.

Older updater versions also behave differently.

WordPress 4.4 through 5.8 adds random characters to staging directory names, making those paths less predictable unless the names are exposed through another mechanism.

Not every building exposes the same entrance during renovation. But the owners must know which entrance their workers are using.


Phase 6 — The Burglar Watches the Workers


The vulnerability is especially dangerous because exploitation depends on timing.

In laboratory testing reported by Wordfence, the relevant window lasted only seconds.

For a human attacker, that might appear difficult to exploit.

But automated systems can repeatedly check websites for the appearance of temporary installation paths.

Wordfence observed attack attempts beginning just nine minutes after deploying a firewall rule for the vulnerability on the day of the release.

Two particularly active sources continued checking small groups of websites for approximately 14.5 hours.

Wordfence interpreted that pattern as consistent with attempts to catch websites during their update windows.

The activity does not establish that every request succeeded.

Nor does it prove that every observed attacker specifically targeted the first installation of the security fix.

However, it demonstrates how attackers can repeatedly probe for a vulnerability that appears only briefly.

The burglar didn’t need to know exactly when the workers would arrive. He could simply keep watching the entrance until the door opened.


Phase 7 — The Authorities Confirm the Threat


CISA added CVE-2026-119977 to its Known Exploited Vulnerabilities (KEV) catalog in early November 2026.

That inclusion confirms evidence of exploitation in the wild.

The agency did not publicly describe the full circumstances of the observed attacks in the reporting covered by the article.

Meanwhile, researchers observed ongoing exploitation attempts, and code claiming to exploit the vulnerability appeared in public GitHub repositories.

The effectiveness of that publicly shared code had not been independently established in the article.

These distinctions matter.

There is evidence of active exploitation of the underlying vulnerability.

There is also a technically demonstrated risk during certain patch installations.

But the reporting does not establish how many websites were successfully compromised specifically while installing the fix.

The burglar was a real threat. The newly discovered problem was that the repair operation could still give him an opportunity.


Phase 8 — Guarding the Entrance Before the Workers Arrive


Bayram’s primary recommendation is straightforward:

Block public web access to wp-content/upgrade/ before installing the patch.

WordPress needs filesystem access to this directory during updates.

It does not need visitors on the public internet to access its contents through the web server.

That distinction allows administrators to protect the temporary installation files without preventing WordPress from performing its normal update operations.

For Nginx, the article describes a location rule denying requests to the upgrade directory.

For Apache, it recommends denying access through the relevant directory configuration.

Where administrators can only modify .htaccess, the article describes placing an appropriate denial rule in the WordPress root configuration.

One detail is particularly important.

Administrators should not rely on an .htaccess file placed inside wp-content/upgrade/ itself.

The vulnerable updater deletes the contents of that directory before extracting the new package.

A protective file stored there could therefore disappear at precisely the moment it is needed.

After configuring the restriction, administrators should verify that requests to the upgrade path are denied, including with an HTTP 403 Forbidden response.

Only then should they proceed with the security update.

The repair crew could continue working. But the owners first had to make sure the burglar couldn’t enter the construction site.


Phase 9 — The Alternative: Renovating Away From the Street


The researcher also described a second approach.

Instead of performing the update through a web-accessible temporary installation, administrators can carry out a carefully controlled manual update outside the web root.

This involves backing up the website and database, extracting the patched WordPress release into a directory that the web server does not expose, and then replacing the appropriate Core files.

The process must preserve the live site’s wp-config.php and wp-content directory.

Any necessary WordPress database update follows.

The objective is to prevent the creation of an accessible temporary installer during the operation.

There is another important warning.

Using WP-CLI’s wp core update command does not, by itself, eliminate the risk.

That command uses the same underlying updater mechanism and staging location.

The relevant security difference is not whether an administrator uses a graphical interface or a command-line tool.

It is whether vulnerable temporary installation files can be reached over the web.

Moving the workers to a different entrance doesn’t help if that entrance leads to the same exposed construction site.


Phase 10 — Buildings Too Old to Repair


The research also highlights the risks facing organizations that continue using unsupported WordPress versions.

Although patched releases are available for supported branches back to WordPress 4.7, versions 4.6 and earlier no longer receive security updates.

Bayram indicated that the underlying flaw dates back to WordPress 2.7, released in 2008.

That makes the issue especially relevant for legacy installations.

Administrators cannot assume that every historical WordPress version will receive a security fix.

For unsupported websites, the appropriate long-term response is migration to a supported version.

Temporary access restrictions can reduce exposure, but they do not restore ongoing security maintenance to obsolete software.

Some buildings were so old that no replacement door was being manufactured for them. Their owners needed a larger renovation plan.


Phase 11 — Checking Whether the Burglar Already Entered


Installing the patched release addresses the vulnerable update mechanism going forward.

But patching alone does not establish whether an attacker exploited an earlier upgrade window.

Wordfence recommends reviewing potentially affected websites for suspicious activity.

Relevant warning signs include unexpected requests to PHP files under wp-content/upgrade, unfamiliar administrator accounts, unrecognized plugins and unexpected PHP files in the temporary upgrade directory.

These indicators are starting points for investigation, not automatic proof of compromise.

Administrators should correlate suspicious activity with update timing and other available server evidence.

If the investigation identifies unauthorized code execution, the response should extend beyond reinstalling WordPress.

It may be necessary to examine modified files, unauthorized accounts and other signs of persistence.

The scope of that investigation should be determined by the evidence found.

A new door doesn’t guarantee the building is empty. The owners must still check whether the burglar entered before the repairs were completed.


The Final Scene — The Door Was Fixed, But the Burglar Was Still Waiting


The latest research into CVE-2026-119977 reveals an important weakness in the process of deploying security fixes.

WordPress released patches that improve temporary directory naming and prevent a malicious staged configuration file from replacing the live site’s configuration.

Those protections address the identified vulnerability.

But the update that installs them may still begin with vulnerable updater code.

Under certain conditions, that creates one final opportunity for an attacker to reach the temporary WordPress installation and execute PHP code.

The practical lesson is not to avoid installing security updates.

It is to protect the update process itself.

Administrators should restrict public access to temporary upgrade directories before patching, verify that those restrictions work and then install the appropriate supported release.

Because security cannot depend exclusively on the final state of a system.

It must also protect every transition required to reach that state.

The building owners had done everything they thought was necessary.

They identified the weakness.

They ordered the new door.

They hired the repair crew.

But across the street, the burglar was still watching.

He knew the old entrance would be used one last time.

And he knew that, for a few seconds, the opportunity might return.


The most dangerous moment wasn’t before the vulnerability was discovered.

It was the moment everyone believed they were finally fixing it.




The Hacker News


 
 
 

Entradas recientes

Ver todo

Comentarios


bottom of page