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."
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 first patch wasn't the end of the story. Stay until Section 7.
1. What Is `install.php`?
Every Drupal site has an installer. It is the screen where you pick a database and create the first admin account. After initial setup, it should stay locked forever.
Drupal decides "is this site already installed?" by checking the settings file and querying the database. The bug lives in how it handles that database check.
2. The Bug: It Fails Open, Not Closed
A safe system that cannot verify state should say no (fail closed). Instead, Drupal said yes, start installing (fail open).
During the check, the installer communicates with the database multiple times. Public research demonstrates 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
Older Drupal 7 and Drupal 8 before 8.9 are safe because they block installation whenever database settings already exist on disk.
3. How Do Attackers Make the Database "Busy"?
Searchlight Cyber demonstrated two practical ways to trigger the error.
Technique A: Exhaust Database Connections (Apache Sites)
Every database accepts a limited number of concurrent connections. PostgreSQL defaults to roughly 100 and MySQL to 151. Apache can run 150 workers, so a burst of requests that hold connections open can saturate the database connection pool.
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 TCP connections linger in TIME_WAIT for about 60 seconds, and Linux has roughly 28,000 ephemeral ports available. Generating around 470 new database connections per second can exhaust them, causing subsequent connection attempts to fail with "Cannot assign requested address".
[NOTE] Reality check: This is a race condition, not a guaranteed one-click exploit. Apache paired with PostgreSQL is the easiest target. PHP-FPM deployments require far more traffic, and multi-replica architectures make timing harder—but it worked on stock configurations, and attackers are actively exploiting it.
4. From Reinstall to Remote Code Execution
Once the installer reopens on a live site, the attacker takes full control:
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
| 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: Complete site takeover, theft of user and subscriber data, and arbitrary code execution as the web server user (www-data, apache, etc.). Because Drupal powers many government, university, and media portals, the blast radius is significant.
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 & older, 10.5.x & 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 target versions also patch the follow-up installer bypass covered in Section 7.
6. Remediation and Mitigation
Fix (Remediation)
- Update Drupal immediately to
10.6.23,11.3.23, or11.4.14. - Run
update.phpimmediately after updating core files. - Migrate off end-of-life branches (
8.9,9,10.5.x,11.2.xand older)—they will not receive security patches.
Can't Patch Today? (Mitigation)
1. 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 provisioning a brand-new site, and test your web server configuration before reloading.
2. Lock down settings.php: Make settings.php non-writable by the web server user. Drupal notes this blocks some, though not all, attack paths.
3. Drupal Steward: Sites protected by Drupal Steward (Drupal's WAF service) are covered against known exploitation paths, but should still apply core updates promptly.
What Defenders Should Watch For
- Unusual spikes of requests to
/core/install.phpor/core/authorize.php. - Database error logs showing
Too many connectionsorCannot assign requested address. - Newly created
.phpfiles insidemodules/orsites/(monitor with File Integrity Monitoring such as Wazuhsyscheck). - Unexpected modifications to the
user 1administrator account or its email address.
[WARNING] If you suspect your site was exposed while unpatched, treat it as compromised: restore from a known-clean backup and rotate all database, API, and user credentials.
7. The Twist: The Patch Wasn't Enough
On 25 November 2026, Drupal published SA-CORE-2026–019 (CVE-2026–136716)—a second installer access bypass. It is also actively exploited, rated 21/25, and bypasses the initial patch.
[IMPORTANT] Any Drupal site whose
/core/install.phpremained publicly reachable after applying only the first patch (10.6.22/11.3.22/11.4.13) could already be compromised. Patch to10.6.23/11.3.23/11.4.14and block the installer at the web server.
The lesson: A live production website should never expose its installer.
Conclusion
Fail2Install shows how "just an availability problem" can turn into a critical security vulnerability when software converts an error condition into implicit trust. A busy database caused Drupal to forget it was already installed—and attackers wasted no time exploiting it.
Patch to the latest builds, block /core/install.php at your web server, and audit your logs.
References and Further Reading
- Help Net Security: Critical Drupal installer flaw under active attack
- Searchlight Cyber: Fail2Install technical write-up
- Drupal Advisory: SA-CORE-2026–017 (
CVE-2026–132165) - Drupal Advisory: SA-CORE-2026–019 (
CVE-2026–136716) - CISA: Known Exploited Vulnerabilities (KEV) Catalog
Connect & Contact
- Buy Me a Coffee: buymeacoffee.com/jaseervk
- GitHub: github.com/jaseervk
- Portfolio: www.jaseervk.com
- Blog: blog.jaseervk.com
- LinkedIn: linkedin.com/in/jaseer-vk-
- Medium: https://medium.com/@jaseervk321