Drupal Core “Fail2Install” Installer Flaw Allows Unauthenticated Site Takeover and RCE (CVE-2026-132165)

A critical flaw in Drupal core, CVE-2026-132165 (Fail2Install), lets an unauthenticated attacker, under specific conditions, use the installer to attempt to reinstall Drupal on an existing site, leading to site takeover or remote code execution. It has been exploited since November 19, 2026, and fixes are in Drupal 11.4.13, 11.3.22 and 10.6.22.

Vulnerability

A critical vulnerability in Drupal core, nicknamed Fail2Install, affects Drupal’s installer (install.php). Under specific conditions, an unauthenticated attacker can use it to attempt to reinstall Drupal on an existing site. That can lead to site takeover or remote code execution.

Drupal disclosed and fixed the flaw on November 18, 2026. It’s the third Drupal flaw exploited this year, after CVE-2026-9082 and CVE-2026-118539.

Searchlight Cyber published an analysis of how the flaw works. Drupal checks whether a site is already installed before letting installation proceed. The researchers found these checks can be bypassed by exhausting server resources. Failed database connections and a failed check for an existing installation are read as evidence that the site isn’t installed.

The attack uses three resource exhaustion techniques:

  • the limit on how many files a Linux process can open (EMFILE)
  • database connection exhaustion
  • TCP source-port exhaustion

Together they force a fail, fail, then success sequence that reopens the installer on an existing website after the attacker wins a race condition.

Code execution follows from how the installer handles SQLite. It supports SQLite database files and lets the database path be chosen with no restriction on the file extension. An attacker picks a path ending in .php under the document root, and the installer creates an SQLite database with a PHP extension.

At the site configuration form, the submitted site name is stored in that file. A PHP payload used as the site name is written into the .php file.

On a stock Apache deployment, Drupal’s .htaccess blocks direct access to that file. However, a path-handling weakness in an Apache RewriteRule can be exploited to execute it. The attacker also ends up controlling an administrator account.

CVE and severity

The vulnerability is tracked as CVE-2026-132165.

It’s a critical vulnerability.

Impact

An unauthenticated attacker who reopens the installer can take over the site or run code on the server. The researchers say this gives pre-authentication remote code execution across Drupal 8.9, 9, 10 and 11. It works on four common deployment combinations: Apache or PHP-FPM, each with MySQL or PostgreSQL.

The installer ships with every copy of Drupal core.

Exploit status

The Drupal Security Team (SA-CORE-2026-017) received a report of exploitation on live sites as early as November 19, 2026 at 19:00 UTC.

CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities catalog on November 24, 2026, with a federal deadline of November 27, 2026.

A proof of concept existed when the flaw was first disclosed. The Drupal Security Team rated exploitation as complex.

Affected component and versions

Drupal core is affected. Research confirms pre-authentication remote code execution on Drupal 8.9, 9, 10 and 11, on the deployment combinations above.

Fixed releases exist only for currently supported branches:

  • Drupal 11.4.x: fixed in 11.4.13
  • Drupal 11.3.x: fixed in 11.3.22
  • Drupal 10.6.x: fixed in 10.6.22

No fixes are listed for older branches such as 8.9, 9 and earlier 10.x.

Fix and mitigation

  • Update Drupal core to 11.4.13, 11.3.22 or 10.6.22, depending on your branch, as soon as possible.
  • Upgrade sites on unsupported branches (8.9, 9 and earlier 10.x) to a supported release, since no fixes are available for them.
  • Block access to the installer (/core/install.php) at the web server level on production sites. Drupal’s default .htaccess rules don’t block it, and the file stays on the site after installation. Drupal states that blocking is left to each site.
  • Where possible, prevent the web server from writing to or changing permissions on settings.php, which Drupal says blocks some exploit paths. This isn’t a substitute for patching.
  • Because exploitation began on November 19, assume internet-facing sites that were unpatched may already be compromised and hunt accordingly. Look for:
    • unexpected .php files under the document root
    • SQLite database files with a .php extension
    • unexpected administrator accounts
    • unexpected changes to settings.php
    • a site name containing PHP code
    • evidence of the installer being run on an installed site
  • Review web server and PHP-FPM logs for requests to install.php on already-installed sites. Also look for bursts of connections or errors consistent with resource exhaustion (file descriptor, database connection or TCP port limits).
  • If you find a compromise, treat the server as compromised and restore from a known-good backup. Then rotate credentials stored on the server, including database passwords.

References