Fail2Install — CVE-2026–132165 Understan ...

Fail2Install — CVE-2026–132165 Understandings

Nov 29, 2026
1

An easy-to-understand explanation of how a “database busy” error can trick Drupal into letting a stranger reinstall a live website, and how that leads to Remote Code Execution.

Introduction

Imagine a shop. A clerk guards the setup desk with one rule: “If the shop is already set up, nobody touches this desk.”

To check, the clerk asks the back-office computer. Now a crowd floods the computer with requests, and it replies: “Error. Too busy.”

A careless clerk thinks: “No answer… so the shop must not be set up yet.” He walks the stranger straight to the setup desk.

That is Fail2Install (CVE-2026–132165). Drupal’s web installer, install.php, read a database error as "this site isn't installed yet."

image

Drupal patched it on 18 November 2026. Attackers were exploiting it by 19 November, and CISA added it to the Known Exploited Vulnerabilities (KEV) catalog on 24 November. Drupal rates it 20/25, and CVSS scores on trackers sit around 9.2 to 9.8.

And the patch wasn’t the end of the story. Stay until section 7.


1. What Is install.php?

Every Drupal site has an installer. It’s the screen where you pick a database and create the first admin account. After setup, it should be locked forever.

Drupal decides “is this site already installed?” by checking the settings file and the database. The bug lives in how it handles that check.

2. The Bug: It Fails Open, Not Closed

A safe system that can’t decide should say no (fail closed). Drupal said yes, start installing (fail open).

During the check, the installer talks to the database several times. The public research shows this sequence:

Check 1: database busy → FAIL
Check 2: database busy → FAIL   (error ignored → "not installed")
Check 3: database free → SUCCESS → installer starts on a LIVE site

image

Older Drupal 7 and Drupal 8 before 8.9 are safe, because they block installation whenever database settings already exist.

3. How Do Attackers Make the Database “Busy”?

Searchlight Cyber showed two ways to create the error.

Technique A: Exhaust database connections (Apache sites)
 Every database accepts a limited number of connections. PostgreSQL defaults to about 100 and MySQL to 151. Apache can run 150 workers, so a flood of requests that hold connections open can fill the database.

Example: A restaurant has 100 tables. 150 people rush in, and the first 100 sit and never leave. The next person gets “no table available.” The attacker is the crowd, and Drupal is the host who reads “no table” as “restaurant is closed.”

Technique B: Exhaust TCP source ports (PHP-FPM sites)
 Closed connections linger for about 60 seconds, and Linux has only about 28,000 ports to hand out. Roughly 470 new database connections per second can use them all up, and then new connections fail with “Cannot assign requested address.”

Reality check: This is a race, not a one-click hack. Apache with PostgreSQL is the easiest target. PHP-FPM setups need far more traffic, and multiple replicas make it harder. But it was shown to work on stock configurations, and attackers are already doing it.

4. From Reinstall to Remote Code Execution

Once the installer reopens, the attacker controls the site:

Flood the database
      ↓
Installer reopens on a live site
      ↓
Attacker picks their own database file (a .php file)
      ↓
PHP code is saved inside it (via the "site name" field)
      ↓
Attacker opens that file → code runs on your server

image

Stage What happens MITRE ATT&CK Entry Public Drupal site with reachable installer T1190 Exploit Public-Facing Application Overload Request flood exhausts DB connections/ports T1499 Endpoint Denial of Service Takeover Attacker creates their own admin/site config T1136 Create Account Persistence PHP payload stored as a web-reachable file T1505.003 Web Shell

Impact: full site takeover, theft of user and subscriber data, and code execution as the web server user. Drupal runs government, university and media sites, so the blast radius is big.

5. Who Is Affected?

Branch Affected Fixed in Safest target* Drupal 10 before 10.6.22 10.6.22 10.6.23 Drupal 11.3.x up to 11.3.21 11.3.22 11.3.23 Drupal 11.4.x up to 11.4.12 11.4.13 11.4.14 11.2.x and older, 10.5.x and older, Drupal 8.9, Drupal 9 Affected (end-of-life) No fix Move to a supported branch Drupal 7 Not affected N/A N/A

*The newest versions also fix the follow-up bug (section 7).

6. Remediation and Mitigation

Fix (remediation):

  1. Update to 10.6.23 / 11.3.23 / 11.4.14.

  2. Run update.php right after updating.

  3. Leave end-of-life branches. They won’t get patches.

Can’t patch today? (mitigation):

  • Block the installer at the web server. Nginx example:

location = /core/install.php { return 404; }

Apache .htaccess example:

<FilesMatch "^install\.php$">
  Require all denied
</FilesMatch>

Unblock it only when installing a brand-new site, and test the config before reloading.

  • Make settings.php non-writable by the web server user. Drupal says this blocks some, but not all, attack paths.

  • Sites on Drupal Steward (Drupal’s WAF service) are covered for the known attack paths, but should still update.

What defenders should watch for:

  • Spikes of requests to /core/install.php or /core/authorize.php

  • Database errors like Too many connections or Cannot assign requested address

  • New .php files under modules/ or sites/ (use FIM, for example Wazuh syscheck)

  • Unexpected changes to the user 1 admin account or its email address

If you think you were exposed, treat the site as compromised: restore from a clean backup and rotate credentials.

7. The Twist: The Patch Wasn’t Enough

On 25 November, Drupal published SA-CORE-2026–019 (CVE-2026–136716), another installer access bypass. It is also exploited, rated 21/25, and it survives the first patch. Any site whose installer was reachable after the first fix could already be compromised.

The lesson: a live website should never expose its installer.

Conclusion

Fail2Install shows that “just an availability problem” can become a security hole when software turns an error into trust. A busy database made Drupal forget that it was already installed, and attackers took the invitation.

Patch, lock the installer, and check your logs.

References and Further Reading

Connect & Contact

Vous aimez cette publication ?

Achetez un laptop à Jaseer vk

Plus de Jaseer vk

ConfidentialitéConditions