Drupal Patches Actively Exploited Fail2Install Flaw in Core Installer

Summary
Drupal reports in-the-wild exploitation of CVE-2026-132165, which lets anonymous attackers race database failures to reopen the installer and take over sites. StepSecurity reproduced installer re-entry and recommends upgrading to fixed releases.
Key points
- Drupal says its security team received a report of exploitation on live sites as early as November 19, 2026; CISA added the flaw to its KEV catalog on November 24.
- CVE-2026-132165 affects Drupal’s core installer. By making database connections fail during early checks but succeed later in a request, an unauthenticated attacker can make an installed site appear uninstalled.
- An attacker who reaches the installer can point the site to a database they control and create an administrator account. A code-execution path additionally requires the ability to write a PHP file in a code directory.
- Drupal fixed the flaw in versions 10.6.22, 11.3.22 and 11.4.13. Older affected branches, including Drupal 8 and 9, have no fix and require migration.
- In StepSecurity’s test, Drupal 11.4.12 reopened the installer during a database-connection flood; the same test against 11.4.13 did not reach the setup form. The researchers stopped short of completing a reinstall.
- StepSecurity tested the final PHP execution step separately and found the relevant .htaccess rule unchanged in fixed releases; making code directories unwritable by the web server is a separate safeguard.
- Recommended actions include upgrading, blocking access to /core/install.php, restricting web-server write access to settings.php and code directories, and monitoring database-refusal errors alongside installer requests.
Article Details
- Attack Vectors
- An unauthenticated remote attacker can exploit a reachable Drupal core installer by causing database connections to fail during early checks and succeed during a later check in the same request.
- The described race can be induced by flooding requests to exhaust database connection slots or PHP server outgoing network ports.
- After reopening the installer, an attacker can point the site to a database they control and create an administrator account.
- The article describes a code-execution path that writes PHP code into a .php-named SQLite database file under the web root, then requests a crafted path ending in /core/x.php to bypass the stock .htaccess restriction.
- Defensive Notes
- Upgrade affected Drupal installations to 10.6.22, 11.3.22, or 11.4.13, or later; the article reports that older end-of-life branches have no fix.
- Block external access to /core/install.php on installed sites, including paths such as /core/install.php/foo, and verify the installer returns 403 or 404.
- Make settings.php and code directories such as web/modules and web/themes unwritable by the web server.
- Monitor for bursts of database connection-refusal errors alongside requests to install.php and spikes in HTTP 500 responses.
- Check for anomalous installer activity, new install times or administrator accounts, SQLite-format files named .php, and requests containing .php/core/.
- If compromise is suspected, restore from a pre-attack backup, rotate database credentials and stored keys, and review administrator accounts.
MITRE ATT&CK
T1190 · Exploit Public-Facing ApplicationThe reported exploit remotely targets a reachable Drupal core installer to reopen setup on an already-installed site.T1499.003 · Application Exhaustion FloodThe described exploit uses request floods to exhaust database connection slots or PHP outgoing network ports, producing connection refusals and HTTP 500 responses.
CVE
Products
ApacheApache with PostgreSQL. PostgreSQL allows 100 connections by default. Drupal's official Apache image runs up to 150 PHP workers, and every Drupal page request opens a database connection. The write-up sends enough slowDrupalOn November 18, 2026, Drupal released versions 10.6.22, 11.3.22, and 11.4.13 to fix CVE-2026-132165, a flaw in the Drupal core installer, core/install.php. An attacker who can make the site's database connection failMySQLApache with MySQL. MySQL allows 151 connections, more than Apache has workers. The write-up sends requests whose Referer header contains a byte that is not valid UTF-8. MySQL rejects it when Drupal's database loggerPHP-FPMPHP-FPM with either database. PHP-FPM runs 5 workers by default, too few to fill a database's connection slots. Instead, the write-up uses up the PHP server's outgoing network ports. Linux keeps each closed connection'sPostgreSQLApache with PostgreSQL. PostgreSQL allows 100 connections by default. Drupal's official Apache image runs up to 150 PHP workers, and every Drupal page request opens a database connection. The write-up sends enough slowSQLiteIn the installer's database form, choose SQLite and give a database file path that ends in .php inside the web root, such as web/modules/x.php. The installer creates the SQLite database file there. Drupal's official
Tools
Countries
CanadaUnited States leads by country (15,921), followed by Italy, China, Germany, Vietnam, France, India, and Canada.Chinahides its generator tag is not counted. The United States leads by country (15,921), followed by Italy, China, Germany, Vietnam, France, India, and Canada.Franceis not counted. The United States leads by country (15,921), followed by Italy, China, Germany, Vietnam, France, India, and Canada.Germanyits generator tag is not counted. The United States leads by country (15,921), followed by Italy, China, Germany, Vietnam, France, India, and Canada.Indiacounted. The United States leads by country (15,921), followed by Italy, China, Germany, Vietnam, France, India, and Canada.Italythat hides its generator tag is not counted. The United States leads by country (15,921), followed by Italy, China, Germany, Vietnam, France, India, and Canada.United Statesreported on November 19, 2026. Added to CISA's KEV catalog on November 24, with a November 27 deadline for US federal civilian agencies. CISA's entry requires forensic triage as well as patching.Vietnamtag is not counted. The United States leads by country (15,921), followed by Italy, China, Germany, Vietnam, France, India, and Canada.
