Drupal Patches Actively Exploited Fail2Install Flaw in Core Installer

· Original article ↗

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

CVE

Products

Tools

Countries

Related Articles