Drupal Core — Critical Remote Code Execution Vulnerability in Built-In Installer (CVE-2026-132165)

Publication date: November 19, 2026
Category: Vulnerability / Web Security

Introduction

The Drupal Security Team has released an urgent advisory to address a critical vulnerability tracked as CVE-2026-132165, affecting multiple versions of Drupal core. This flaw allows an unauthenticated attacker to exploit the platform’s built-in installation script under specific conditions to attempt a site reinstallation, potentially leading to a complete site takeover or remote code execution (RCE). The vulnerability was discovered using Anthropic’s automated open-source scanning service, further illustrating the growing impact of artificial intelligence tools in accelerating the discovery of attack vectors in open-source software ecosystems.

What is CVE-2026-132165? (General Analysis)

CVE-2026-132165 is a critical access control and installation logic vulnerability residing within Drupal core. Conceptually, the application ships with an initial setup script known as /core/install.php packaged in every core distribution. Built exclusively for initial system deployment, this file typically remains on the web server post-installation.

Because core’s default .htaccess rules do not block incoming requests to this script, restricting access is left entirely to individual site administrators. Under specific configurations where the web server retains write permissions to the primary configuration file (settings.php), an unauthenticated remote attacker can invoke the installer and manipulate the setup initialization flow.

Technical note on classification: Since no official NVD record has been published at the time of writing, a reasoned estimation classifies this issue under CWE-284 (Improper Access Control) and CWE-94 (Improper Control of Generation of Code), with an estimated severity score of CVSS v3.1 9.8 (Critical), accounting for the unauthenticated network vector and severe operational impact (RCE/Takeover). The Drupal project rates the risk internally at 18 out of 25.

How Does It Work? (Technical Analysis)

The exploitation mechanism relies on specific environmental conditions and architectural traits of the target web server:

  • Exploit Entry Flow: The attacker directs direct HTTP requests to the publicly exposed /core/install.php script. Due to the absence of strict web server policies or core directory access controls, the request is successfully parsed by the Drupal engine.
  • Installation State Manipulation: Under specific operational circumstances, the script fails to adequately validate whether the system has already been fully provisioned, permitting interaction with configuration parameters and forms meant only for fresh setups.
  • Partial Blocking Conditions: Exploit paths are obstructed in environments where the web server lacks write permissions or the ability to change permissions on the main settings.php file. However, under default or insufficiently hardened setups, attackers can overwrite vital configuration parameters.
  • Remote Code Execution (RCE): By successfully forcing reinstallation routines or injecting unauthorized configurations during the process, an attacker can introduce arbitrary code executed under the web server’s process privileges, compromising server integrity permanently.

Affected Systems / Environments

The impact of this vulnerability spans a broad spectrum of core branches and versions that were actively maintained or supported:

CVE Category (CWE) Impact CVSS Vector (summary)
CVE-2026-132165 CWE-284 / CWE-94 (Estimated) Site Takeover / RCE 9.8 (Critical - Estimated) Network / Unauthenticated / Conditional Complexity
  • Drupal 11.4.x Branch: All releases prior to 11.4.13 are affected (requires updating to 11.4.13).
  • Drupal 11.3.x Branch: Releases from 11.0.0 prior to 11.3.22 (requires updating to 11.3.22).
  • Drupal 10.6.x Branch: All releases below 10.6.22 (requires updating to 10.6.22).
  • End-of-Life Versions: Drupal 11.2.x and earlier, 10.5.x and earlier, along with Drupal 8 and 9 branches, are end-of-life and will receive no official patches. Furthermore, the 11.3.x branch and Drupal 10 will lose security coverage entirely in December according to the project’s support schedule.

Mitigation and Detection

Remediation

The primary and mandatory action is the immediate deployment of patched versions released by the Drupal Security Team:

  1. Update Drupal 11.4.x to version 11.4.13.
  2. Update Drupal 11.3.x to version 11.3.22.
  3. Update Drupal 10.6.x to version 10.6.22.

Additionally, the Drupal team strongly recommends hardening environments by blocking access to the installer script (install.php) even after updating, using one of the following methods:

  • Implement an explicit denial rule within the web server configuration (Nginx / Apache).
  • Enforce strict rules inside the .htaccess file.
  • Physically remove the file and ensure it remains deleted via automated Composer scripts.
  • Organizations utilizing the Drupal Steward protection service are already shielded against known attack vectors, though upgrading remains essential to mitigate emerging variations.

Detection

Defensive teams (Blue Teams) are advised to implement the following monitoring and forensic inspection guidelines:

  • HTTP Access Log Auditing: Review access logs for repeated HTTP POST or GET requests targeted directly at /core/install.php, especially originating from external IP addresses lacking legitimate administrative association.
  • File Integrity Monitoring (FIM): Monitor unauthorized modifications to sites/default/settings.php and track the unexpected creation of temporary files within the web root directory.

Threat Intelligence Warning: Automated vulnerability discovery via artificial intelligence tools has dramatically compressed the window of exposure. The availability of public proof-of-concept exploits mandates an immediate review of perimeter controls and the physical purging of residual installer scripts in production environments.

Wrapping Up

Vulnerability CVE-2026-132165 serves as a critical reminder regarding the risks posed by residual helper scripts left inside mature web application deployments. The combination of a publicly reachable installer and loose file permissions on core configuration files exposes enterprise sites to total takeover by unauthenticated threat actors. The swift response from the Drupal project—accelerated by AI-driven automated findings—emphasizes the imperative need for rigorous patch management frameworks and strict web server hardening practices across all digital assets.

References