Trending · CVE-2026-132165 · Researched Deep-Dive
The setup wizard you finished years ago just reopened
The installer never left your server. Fail2Install is the story of how it learned to wake up.
core/install.php) decides "is this site installed?" by asking the database — and when the database can't answer, it guesses "not installed". An unauthenticated attacker who transiently exhausts database connections (or TCP ports, or file descriptors) can make a live site present the installer's database-configuration form, repoint the site at an attacker database, and become user 1 — or get direct code execution via a SQLite file planted as a .php. Drupal's advisory is SA-CORE-2026-017 (18 Nov 2026); exploitation on live sites was reported from 19 Nov, 19:00 UTC. A follow-on flaw (CVE-2026-136716, SA-CORE-2026-019) means the truly safe floor today is 10.6.23 / 11.3.23 / 11.4.14, plus running update.php.Why this leads the week
Three properties defenders hate in combination: unauthenticated, exploited within about a day of the patch, and full site takeover as the payoff. CISA added the CVE to its Known Exploited Vulnerabilities catalog on 24 November with a federal remediation deadline of 27 November — three days — and a second, related CVE joined it on 27 November with a 30 November deadline. StepSecurity's Shodan-based estimate on 26 November counted roughly 55,800 exposed Drupal services, about 31,500 on affected branches and some 15,000 on end-of-life Drupal 8/9 that will never be patched.
The mechanism: FAIL → FAIL → SUCCESS
Drupal's own advisory is deliberately terse — the installer can be used "under specific conditions" to attempt a reinstall, leading to takeover or RCE. The mechanism below comes from Searchlight Cyber's original research (which named the bug "Fail2Install") and was independently reproduced by StepSecurity.
The decision lives in install_begin_request() in core/includes/install.core.inc. The installer file stays on disk after installation, and three sequential database operations in a single request each fail open:
- FAIL 1 — verify database settings.
install_verify_database_settings()connects usingsettings.php. If the connection throws, it records "not verified" — but execution continues. A busy database is indistinguishable from an unconfigured one. - FAIL 2 — the anti-reinstall guard.
install_verify_database_ready()defaults$existing_install = FALSE, then checks whether Drupal's tables exist inside atrywith an empty catch — commented, in effect, "the database might not be set up yet". Any error leaves the guard convinced there is no existing install, and theAlreadyInstalledExceptionis never thrown. - SUCCESS — the requirements check. A later connection attempt succeeds. No "requirements problem" page appears — and because settings were never verified, the installer proceeds as a fresh install and serves the "Database configuration" form to an anonymous visitor.
How the attacker forces the failures
The transient failures are manufactured with resource exhaustion, tuned per stack:
- Apache + PostgreSQL (easiest): PostgreSQL's default 100 connections (97 usable) against Apache's 150 workers — slow, connection-holding requests fill every slot, then release at the right moment.
- Apache + MySQL: MySQL's 151-connection default is beaten by making each request hold two connections — a
Refererheader with a raw0xFFbyte breaks the watchdog log insert, and Drupal's logger retries on a second connection. - PHP-FPM: database slots can't be filled (few workers), so the target is TCP source ports — 28,232 ephemeral ports held in TIME_WAIT exhaust at roughly 471 new connections per second.
- File-descriptor exhaustion (EMFILE) is the fourth route, and the one the research started from.
From the form to takeover — two endings
- Repoint and own: submit attacker-controlled database settings; the installer writes them into
settings.php(pre-patch it would evenchmoda read-only settings.php writable when it could), the site now boots from the attacker's database, and the attacker completes "installation" — creating the user 1 administrator account. - Direct RCE: choose SQLite with a database path ending in
.phpinside the web root, put PHP code in the site name (stored into that file), then request it through a/core/…PATH_INFO path that slips past the stock.htaccessrule. Notably, that .htaccess weakness is unchanged in the fixed releases — the patch closes installer re-entry, not execution of an already-planted file.
Versions: affected, fixed, and the follow-on trap
| Item | Detail |
|---|---|
| Advisory | SA-CORE-2026-017 — 18 November 2026 |
| Affected | Drupal < 10.6.22; 11.0–11.3.21; 11.4.0–11.4.12 (per the advisory). Searchlight's testing also demonstrated 8.9/9.x; Drupal 7 and pre-8.9 fail closed. Branches 11.2.x and below, 10.5.x and below, and Drupal 8/9 are end-of-life with no fix coming. |
| Fixed for this CVE | 10.6.22 · 11.3.22 · 11.4.13 (18 Nov 2026) |
| Follow-on | SA-CORE-2026-019 / CVE-2026-136716 (25 Nov) — sites in unusual or incomplete install states remained takeover-able after the first fix, also exploited. Current minimum safe: 10.6.23 / 11.3.23 / 11.4.14 + run update.php. |
| Discovery | Credited to Anthropic's OSS Scanner; Searchlight Cyber found it independently, named it, and states its own report was a duplicate — a useful reminder that even the naming rights went to the second finder. |
Scoring — an honest disagreement
You will see two numbers for this CVE, and both are "official": NVD rates it 9.8 (attack complexity Low), while Drupal's CNA scoring is 8.1 with attack complexity High — the entire gap is how hard the timing/exhaustion dance is judged to be. Drupal's own scale calls it "Highly critical, 20/25". The weakness class is likewise recorded two ways: CWE-306 (missing authentication for a critical function) in the CVE record, and CWE-636 (not failing securely) in the KEV entry. The second CWE is the more instructive one: this bug is, at heart, a system that fails open.
Exploitation timeline
| Date | Event |
|---|---|
| 18 Nov 2026 | SA-CORE-2026-017 published; fixed releases ship |
| 19 Nov, 19:00 UTC | Drupal reports exploitation attempts against live sites — roughly a day after the patch |
| 24 Nov 2026 | Searchlight's public write-up; CISA adds CVE-2026-132165 to KEV (due 27 Nov, with forensic triage under BOD 26-04) |
| 25 Nov 2026 | Follow-on SA-CORE-2026-019 / CVE-2026-136716 |
| 27 Nov 2026 | Follow-on CVE added to KEV (due 30 Nov) |
One honesty note: neither Drupal nor CISA has published an actor, a victim count, or IOCs. Claims circulating in aggregator posts about observed webshell campaigns go beyond what primary sources support; the post-exploitation picture below is from Drupal's own compromise guidance and testing, not from a documented victim.
If you run Drupal: patch, then hunt
- Upgrade to 10.6.23 / 11.3.23 / 11.4.14 (or later) and run update.php. Patching to the first fix alone is no longer the finish line.
- Check for compromise BEFORE running the update — Drupal warns the update erases installer-state signals. Look for: installer POST requests with redirects and large responses in logs; bursts of database-refusal errors;
install_tasknot "done" or a recentinstall_time; user 1's name, email or password changed; new or promoted admin accounts;settings.phpmodification time or hash-salt changes; PHP files inside upload directories — including files that begin with "SQLite format 3". - Block the installer at the edge as permanent defence in depth:
/core/install.phpshould return 403/404 on any production site (vhost-level rules; verify path variants too). - Make settings.php and the sites directory read-only to the web user, and keep code directories non-writable by the web server — several exploit paths die on exactly this.
- If you find signs of compromise: patching does not clean a site. Drupal's testing showed a planted backdoor and an attacker admin could survive both the update and a user-1 password reset. Rebuild from a pre-attack backup and rotate database credentials and keys.
The hunter's takeaway
Fail2Install is a state-machine bug wearing a race condition's clothes. The installer asked the environment "am I installed?" at the exact moment the environment couldn't answer — and treated silence as "no". The same question audits every system I touch: when a dependency fails, what does your application believe about itself — and who profits from that belief? Add the empty-catch pattern to your grep list: a catch block that swallows errors next to a security decision is a finding waiting for its CVE.
Sources (researched 30 Nov 2026): Drupal SA-CORE-2026-017 and SA-CORE-2026-019 (drupal.org); Searchlight Cyber, "Fail2Install" original research (slcyber.io); StepSecurity's independent reproduction and exposure analysis; NVD entry for CVE-2026-132165 including the CISA KEV listing. Where sources disagreed (CVSS, CWE), both values are reported above.
Found something similar?
I help teams verify and fix issues like this — and I retest my own reports for free. Reach me at sr558079@gmail.com or read more writeups.