Fail2Install (CVE-2026-132165) is a highly critical flaw in the Drupal core installer that lets an unauthenticated attacker reopen install.php on a live site, take it over, and in some setups run code on the server. Drupal fixed it on November 18, 2026 in versions 10.6.22, 11.3.22 and 11.4.13 (advisory SA-CORE-2026-017). Exploitation on live sites was reported as early as November 19 at 19:00 UTC, and CISA added it to its Known Exploited Vulnerabilities catalog on November 24. Then, by November 26, Drupal had followed with a second advisory, SA-CORE-2026-019 (CVE-2026-136716), because some sites stuck in odd install states were still exposed after the first patch. That one is also being exploited. If you run Drupal, the short version is: update to 10.6.23, 11.3.23 or 11.4.14, run update.php, and block the installer.
That's the triage. The mechanism is where the story gets interesting.
How does Fail2Install trick Drupal into reinstalling a live site?
Every Drupal site ships with an installer. On a finished site, visiting it should get you a polite "Drupal already installed" page and nothing else. To decide that, the installer connects to the database named in settings.php and looks for Drupal's tables. It does this more than once during a single request.
The bug lives in how those checks handle failure. In affected versions, the early checks treated a database error as evidence that Drupal hadn't been set up yet. StepSecurity, which reproduced the flaw in its own lab, points to a code comment that says, in effect, don't raise an error if the query fails because the database might not exist yet. The check that does stop on a database error runs later. So if the database refuses the first connections and accepts a later one, all inside one request, the installer concludes the site is brand new. It then shows its setup forms on a production website.
Searchlight Cyber researchers Kevin Gervot and Adam Kues, who published the detailed write-up that named the bug, describe the pattern as FAIL, FAIL, then SUCCESS. Two refusals and one acceptance, in the right order. From there the installer's database form writes whatever settings it receives into settings.php. An attacker can point the live site at a database they control and create the administrator account. That's a full takeover, without ever logging in.
Turning "too many connections" into a security primitive
The clever part is how the researchers forced those failures on stock configurations. They didn't need a second bug. They used ordinary resource limits, the kind most of us file under availability and hand to the operations team.
On Apache with PostgreSQL, the numbers line up almost by accident. PostgreSQL allows 100 connections by default, and Drupal's official Apache image runs up to 150 PHP workers, each of which opens a database connection per page. Hold enough slow requests open and the database starts refusing newcomers. Free a slot at the right moment and the installer's later check gets through. On Apache with MySQL, the default limit is 151 connections, more than Apache has workers, so the researchers needed each request to hold two. They found that a Referer header containing an invalid UTF-8 byte makes Drupal's database logger fail to save the log entry and retry on a second connection. One malformed header, two connections.
PHP-FPM was harder. It runs only five workers by default, far too few to fill a database's connection pool. So the researchers went after the operating system instead. Linux holds each closed outbound connection's port in a state called TIME_WAIT for about 60 seconds, and by default it has 28,232 ports available for outbound connections. Open roughly 471 new database connections per second and the web server runs out of ports to talk to its own database. PHP reports "Cannot assign requested address," and the installer reads that as an empty site.
That reframing deserves more attention than it's getting. Security reviews tend to treat resource exhaustion as a denial-of-service problem: bad, but bounded. Fail2Install shows what happens when code catches a failure and converts it into a trusted conclusion. "I couldn't reach the database" quietly became "there is no site here." The fix for that class of bug isn't a bigger connection pool. It's refusing to treat an error as a state.
From site takeover to code execution
Owning the admin account is bad enough. Searchlight's write-up also describes a shorter path to running PHP on the server, and StepSecurity confirmed the final step independently. At a conceptual level, it works like this. The installer supports SQLite and lets the user choose where the database file goes, without restricting the file extension. Choose a path inside the web root with a .php extension, put PHP code in the site name field, and the installer writes that code into a file the web server will execute. Drupal's stock .htaccess blocks direct requests to PHP files outside the core directory, but its exception for core scripts only checks how the URL ends, which leaves room to route around it.
Here's the detail I'd flag for anyone running Apache. StepSecurity reports that the fixed releases don't change that .htaccess rule. The patch closes the installer re-entry. It doesn't stop a planted PHP file in a code directory from running if an attacker can write one there by some other route. Drupal's official Docker image lets the web server user own web/modules, and StepSecurity could write a PHP file there as that user. Making code directories read-only for the web server is a separate control, and it's one you want regardless of this CVE.
Drupal's advisory credits the original discovery to Anthropic's OSS Scanner, an automated code scanner, under the identifier ANT-2026-GMRPK0BU. Searchlight found the same bug independently and says its report turned out to be a duplicate, but that its work on making the flaw exploitable on default setups was still novel. Two teams, one human-led and one automated, landing on the same installer logic is a sign of where vulnerability discovery is heading. Patch windows are going to keep shrinking.
Why SA-CORE-2026-019 followed so quickly
The first fix made four changes to the installer, according to StepSecurity's review of the commit. A database error now stops the installer with a requirements problem. A finished installation can't be resumed. Only the browser session that started an installation can continue it. And the installer no longer tries to change permissions on settings.php.
Then came the follow-up. SA-CORE-2026-019, rated highly critical at 21 out of 25 on Drupal's own scale, says certain sites in "unusual or incomplete install states" were still open to takeover after SA-CORE-2026-017, including production sites. Drupal's wording is blunt: you can't tell from the user interface whether a site is in that state, and a site that's already been compromised may no longer look vulnerable. The fix requires running update.php, because an update hook has to repair existing sites. Sites that had already secured their installer were never exposed to this second issue.
Scale matters here. StepSecurity counted about 55,800 internet-facing Drupal services on Shodan on November 26, with roughly 31,500 on affected branches and around 15,000 of those on end-of-life Drupal 8 and 9, which will never get a patch. Those are lower bounds. There's a further catch for anyone hoping to scan their way to certainty: modern Drupal advertises only its major version, so a banner reading "Drupal 11" can't tell a patched site from an unpatched one.
What Drupal admins should do this week
Work it in order:
- Update to Drupal 10.6.23, 11.3.23 or 11.4.14, or later, then run
update.php. Rebuild and redeploy containers from fixed images; a running container keeps its old code. - Block
/core/install.phpat the web server or WAF on every site, new and old, following Drupal's guidance on securing the installer. A 403 or 404 from outside is what you want to see. - Check the user 1 account. Confirm its email address is one you control, look for unexpected changes to or by it, and consider resetting its password.
- Remove the web server's write access to code directories such as
web/modules, and tosettings.php. - Plan the migration for anything on Drupal 8, 9, 10.5 or 11.0 to 11.2. No fix is coming.
For detection, the attack is noisy by nature. In StepSecurity's 20-second lab flood, roughly 12 percent of installer requests reopened the setup form on the unpatched site, and the flood itself produced 15,490 HTTP 500 errors alongside thousands of logged database connection refusals. Look for bursts of connection-limit errors in database logs, spikes of 500s, and any request to install.php on a production host. Also look for new .php files appearing in module or theme directories. StepSecurity also found that capping concurrent connections per source address at 20 stopped its single-host flood outright. A distributed flood would get past that, so treat it as a speed bump, not a wall.
CISA's deadline for federal civilian agencies is November 27, which is Thanksgiving. Attackers don't take the holiday. The good news is that the most effective control here, keeping the installer unreachable on a finished site, has been Drupal's advice for years. It costs one line of server config. Write it before the turkey comes out.
References
Drupal Security Team. (2026, November 18). Drupal core: Highly critical: Remote code execution: SA-CORE-2026-017. Drupal.org. https://www.drupal.org/sa-core-2026-017
Drupal Security Team. (2026). Drupal core: Highly critical: Access bypass: SA-CORE-2026-019. Drupal.org. https://www.drupal.org/sa-core-2026-019
Gervot, K., & Kues, A. (2026). Fail2Install: Turning system limits into pre-auth RCE in Drupal. Searchlight Cyber. https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
StepSecurity. (2026). Fail2Install (CVE-2026-132165): Drupal installer flaw lets attackers take over sites and run code. StepSecurity Blog. https://www.stepsecurity.io/blog/fail2install-cve-2026-132165
Lakshmanan, R. (2026, November 26). Drupal warns of new highly critical site takeover vulnerability under active exploitation. The Hacker News. https://thehackernews.com/2026/11/drupal-warns-of-new-highly-critical.html