Drupal Fail2Install Vulnerability: Hackers Exploit Critical Flaw to Hijack Websites

A critical flaw in Drupal, one of the world’s most widely used website platforms, is being actively exploited by hackers to take over websites without needing a password. The vulnerability, nicknamed “Fail2Install”, carries a severity score of 9.8 out of 10, and the US government’s cybersecurity agency has given federal agencies until November 27, 2026 — today — to patch it. If you run a Drupal website, this is a patch-now emergency, not a next-week task.

The Drupal Security Team disclosed the flaw on November 18, 2026, and released fixed versions the same day. Within 24 hours, attackers were already exploiting it on live websites. A week later, Drupal had to issue a second emergency fix, because the first patch did not protect every site. Both flaws are confirmed as exploited in the wild.

Drupal powers hundreds of thousands of websites, including government portals, universities and media outlets. Researchers counting exposed Drupal services found roughly 55,800 visible installations, with about 31,500 running affected versions and another 15,000 running old versions that will never receive a fix.

What Is the Drupal Fail2Install Vulnerability?

The Drupal Fail2Install vulnerability, tracked as CVE-2026-132165, is a flaw in Drupal core’s installer — the install.php file used to set up a new website. Drupal rates it “Highly critical”, scoring it 20 out of 25; independent scoring puts it at 9.8 out of 10.

Every Drupal site ships with an installer file, core/install.php, which should run once, when the site is first created, and then never again. But under specific conditions, an unauthenticated attacker — someone with no account and no password — can trick Drupal into believing the site was never installed at all. The installer then opens up, and the attacker can run through it as if setting up the site for the first time.

From there, the attacker can create a new administrator account and, depending on the site’s configuration, run arbitrary PHP code on the server — full control of the website, its user accounts, its database and, in many setups, the server underneath it. The flaw was discovered by Anthropic’s open-source software scanner. It needs no stolen password or phishing email: the attacker needs nothing more than the website’s public address. Drupal has long recommended securing the installer after installation, but many site owners never do it.

How Hackers Hijack a Drupal Site Without a Password

The attack works by exhausting the server’s resources until Drupal’s installer can no longer tell that the site already exists. Researchers found it abuses three limits: open files, database connections and network ports. When those run out, even briefly, Drupal’s checks fail: the installer cannot confirm that installation is complete and concludes — wrongly — that the site is unfinished. The connections then recover, and the attacker is standing inside a live installer on a production website.

Detailed public research on the bug appeared on November 24, 2026, the same day the US Cybersecurity and Infrastructure Security Agency, known as CISA, added the flaw to its Known Exploited Vulnerabilities catalog. A public proof-of-concept appeared on GitHub days earlier. The attack can end with the attacker creating a crafted database file with a .php extension, which the server treats as executable code. Some attack paths are blocked when the web server cannot write to Drupal’s settings.php file — but confirmed exploitation on live sites shows enough real installations are exposed for attackers to succeed.

A hooded programmer works at a computer screen
A hooded programmer works at a computer screen. Photo by Tima Miroshnichenko on Pexels.

A Second Flaw Made Things Worse

Just as site owners were applying the first fix, Drupal disclosed a second, related flaw. On November 25, 2026, the Drupal Security Team published advisory SA-CORE-2026-019, covering CVE-2026-136716, another highly critical access bypass in the same installer file. It affects sites in unusual or incomplete installation states that stayed vulnerable after the first patch. Drupal rates it 21 out of 25 — higher than the first flaw — and confirms it is also being exploited in the wild.

The fixed versions for the second flaw are Drupal 10.6.23, 11.3.23 and 11.4.14. Critically, updating alone is not enough: site owners must also run the database update script, update.php, afterwards, because a post-update hook is what marks a stuck installation as finished. Anyone who applied only the first fix is still exposed and needs to update again.

Who Is at Risk?

The affected versions cover almost every supported Drupal release: core before 10.6.22, versions 11.0.0 through 11.3.21, and versions 11.4.0 through 11.4.12. The second flaw extends the range to versions before 10.6.23, 11.3.23 and 11.4.13. The safe versions are Drupal 10.6.23, 11.3.23 and 11.4.14. Older branches — Drupal 11.2 and earlier, 10.5 and earlier, and Drupal 8 and 9 — have reached end of life and will receive no fix at all. For those sites, blocking the installer is the only protection, and upgrading to a supported branch is the only real solution.

Government websites, universities and large organisations are heavily represented among Drupal users, which is one reason CISA acted so fast. But any business, charity or community group running an unpatched Drupal site can be hijacked, defaced, used to host malware or turned into a launchpad for attacks on its visitors. Attackers routinely scan the internet for vulnerable installations, and unpatched sites will be found quickly.

How to Check If Your Drupal Site Is Exposed

Before patching over the evidence, check whether your site may already have been compromised: find the version, block the installer, check for a takeover, and only then update.

Site administrators can check the install state with two commands: drush state:get install_task and drush state:get install_time. On a finished, live site, the install task should read “done” — anything else means the installer can resume, and the site should be treated as exposed. Next, check the site’s main administrator account, known as user 1, for any change to its name, email address or password after November 19, 2026. An attacker who takes over a site typically creates or changes an administrator account first, so an unexpected change here is a strong warning sign. Then review the site’s watchdog logs for installer activity around core/install.php, and look for new PHP files or modules nobody on the team recognises.

How to Patch and Protect Your Site

Patching takes two steps. First, update Drupal core to the fixed version for your branch: 10.6.23, 11.3.23 or 11.4.14. One Composer update closes both flaws, but only if the database update runs afterwards — run update.php, or drush updatedb, to complete the fix.

Second, block the installer permanently. Block access to core/install.php in the web server configuration — an Apache Location rule or the equivalent in Nginx — on every site, and leave it blocked. Sites that already block the installer are not vulnerable. Also make sure the web server cannot write to settings.php, which closes off several attack paths.

Programming code on a dark screen
Programming code on a dark screen. Photo by Markus Spiske on Pexels.

What to Do If Your Site Was Already Hacked

If the checks above turn up signs of compromise, do not simply patch and move on. Patching closes the hole, but it does not remove an attacker who is already inside. Change the passwords and email addresses of all administrator accounts, especially user 1, and review every user account for ones you do not recognise. Review the site’s files for anything added or changed since November 19, including new modules, themes and PHP files, and check the database for new administrator accounts. If the site handles customer or personal data, consider whether a breach notification is required.

When the 1Password breach exposed customer names and email addresses earlier this month, the real risk was the phishing attacks that followed, using the stolen details to look convincing. A hijacked website creates the same follow-on risk: visitors can be served malware, redirected to scam pages or harvested for credentials. The pattern is familiar — just last week, researchers disclosed six backdoored WordPress plugins that quietly sent site data to attacker-controlled servers. Cleaning the site properly matters as much as patching it.

Frequently Asked Questions

What is the Drupal Fail2Install vulnerability?

It is a critical flaw, tracked as CVE-2026-132165, in Drupal core’s installer. It lets an unauthenticated attacker trick a finished Drupal site into reopening its installer, take over the site and, in many configurations, run arbitrary code on the server. It is rated 9.8 out of 10 and is being actively exploited.

Which Drupal versions are affected?

Versions before 10.6.22, 11.0.0 through 11.3.21, and 11.4.0 through 11.4.12 are affected by the first flaw. A second flaw, CVE-2026-136716, affects versions before 10.6.23, 11.3.23 and 11.4.13. Update to 10.6.23, 11.3.23 or 11.4.14, then run update.php. End-of-life branches, including Drupal 8 and 9, receive no fix.

Conclusion

The Drupal Fail2Install vulnerability moved from disclosure to live exploitation in about a day and forced two emergency fixes in a week. If you run a Drupal site, update to 10.6.23, 11.3.23 or 11.4.14 today, run update.php, and block core/install.php for good. If you manage sites for clients, check every installation, including the ones nobody has touched in months. And if your site was exposed after November 19, check for signs of compromise before you patch over the evidence. The attackers are already looking. Make sure they find a closed door.

Leave a Comment