Skip to content
RCE Write-up Intermediate

CVE-2026-132165 | Drupal Core Installer Remote Code Execution Vulnerability

The installer script shipped with Drupal core could be reached on an already-installed site, letting an unauthenticated attacker start a reinstallation. Driving that installer could give the attacker administrative control of the site or code execution on the host.

Horizon3 Follow

Published on horizon3.ai

CVE-2026-132165 is a critical remote code execution vulnerability in the installer shipped with Drupal core. Under specific conditions, an attacker with no credentials can reach install.php and attempt to reinstall a running site, which can lead to site takeover or remote code execution.

Horizon3, on horizon3.ai

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the installer script remained reachable on already-installed sites and could be driven to reinstall, running setup logic with the web server's privileges.

Impact

An unauthenticated attacker could take over the site or execute code on the host, though some exploit paths are blocked when the web server cannot write to or change permissions on settings.php and Drupal says only uncommon module configurations are exploitable.

What the attacker needed

Install.php reachable by the attacker; site already installed; uncommon module configuration

The fix

It was fixed in Drupal 10.6.22, 11.3.22 and 11.4.13, and Drupal also recommends blocking public access to the installer and keeping settings.php unwritable.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Drupal is a content management system used to build websites. Its installer, a script called install.php, is meant to set up a new site, but on a live site it could still be reached and made to run setup again. Because setup runs with the web server's permissions, an attacker who reaches it could take over the site or run their own code on the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Horizon3

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.