DEV Community

Cover image for CVE-2026-132165 Drupal: Unauthenticated Installer RCE — Analysis & Mitigation
Faizan Akhtar
Faizan Akhtar

Posted on Originally published at faizanakhtarcyber.blogspot.com

CVE-2026-132165 Drupal: Unauthenticated Installer RCE — Analysis & Mitigation

CVE-2026-132165 Drupal: Unauthenticated Installer RCE — Analysis & Mitigation

On November 18, 2026, the Drupal Security Team disclosed a critical vulnerability in Drupal core that lets an unauthenticated attacker use the product's own installer to take over a live website. Tracked as CVE-2026-132165 and published as advisory SA-CORE-2026-017, the flaw is rated CVSS 9.8 and Drupal's own highest rating, Highly critical. The installer that ships with every Drupal site — the same core/install.php file used to set the site up in the first place — can, under specific conditions, be made to reinstall a site that is already installed. A successful attack ends with the attacker holding the site's administrator account and a path to running code on the server. The fix shipped the same day, in Drupal 10.6.22, 11.3.22 and 11.4.13. One day later, the Drupal Security Team added a grim update to the advisory: the flaw had been exploited on live sites as early as November 19, 2026, at 19:00 UTC. On November 24, CISA added it to its Known Exploited Vulnerabilities catalog and gave federal agencies three days — until November 27 — to patch. This analysis explains what the flaw is, how it works in general terms, who is exposed, how to check your own sites, and what to patch first.

The short version: if you run Drupal 10.6 before 10.6.22, Drupal 11.0 through 11.3.21, or Drupal 11.4.0 through 11.4.12, you are affected. Upgrade to 10.6.22, 11.3.22 or 11.4.13 for your branch, and then block /core/install.php at the web server and leave it blocked. Older branches — Drupal 11.2 and below, 10.5 and below, and Drupal 8 and 9 — are end of life and receive no fix, so blocking the installer is the only protection. If your site was reachable and unpatched after November 19, check whether the administrator account changed before you patch over the evidence.

What Is Drupal?

Drupal is an open-source content management system written in PHP. It powers government portals, university websites, media outlets, and large enterprise sites around the world, and it is one of the most widely deployed CMS platforms in existence. A Drupal site is built on Drupal core plus contributed modules and themes, and it is installed through a browser-based installer: the administrator visits core/install.php, picks a language and profile, supplies database credentials, and creates the first administrator account. Once installation finishes, the installer has done its job — but the file itself stays on the server, in every Drupal installation, by default.

That leftover file is the whole story of this vulnerability. The installer is part of Drupal core, not an optional module, so every affected site carries the entry point. The flaw is not in a contributed module or a theme. It is in the core installer itself, and in the way it decides whether a site is already installed. Under specific conditions that Drupal has not publicly detailed, an anonymous visitor can convince the installer that the site still needs to be set up, and walk through the installation again — this time pointing the site at a database the attacker controls and creating a new administrator account of their own.

Drupal's own rating tells you how seriously it views the flaw. The advisory scores it 20 out of 25 on Drupal's internal scale — Highly critical, the top band — with attack complexity rated complex, no authentication required, and full impact on confidentiality and integrity. The rating was raised from 18 to 20 out of 25 after the exploitation report arrived, when the "exploit" rating moved from proof-of-concept to confirmed exploitation. The weakness is listed in CISA's catalog as CWE-636, not failing securely: the installer does not fail into a safe state when it cannot verify that installation is complete.

How CVE-2026-132165 Works

To understand the flaw, it helps to know what the installer does. When you install Drupal, core/install.php runs a sequence of steps — called install tasks — that configure the site: it connects to the database, creates the tables, imports configuration, and creates the first user, user 1, who holds the administrator role. The installer tracks where it is in that sequence in the site's stored state. On a finished site, that state says the work is done, and the installer should refuse to run again.

The vulnerability is that the installer can be made to treat a finished site as unfinished. The advisory says only that this happens "under specific conditions," and the exact conditions are not public — but the shape of the attack is clear from what the advisory and the follow-up analysis describe. An unauthenticated visitor reaches the installer and is able to resume or restart the installation flow on a live site. The installer then lets the visitor supply fresh database settings and create a new administrator account. Because the installer runs with the site's own privileges, the new account is a real administrator of the real site, and from there the attacker can install modules and themes, change configuration, and run code on the server — a full site takeover that becomes remote code execution.

Two details from the advisory matter for defenders. First, some — but not all — exploit paths are mitigated if the web server cannot write to or change the permissions on settings.php, the file that holds the site's database credentials. That is a partial mitigation, not a fix, and it depends on file ownership and permissions that vary from host to host. Second, the flaw was found by Anthropic's OSS Scanner and is recorded under the reference ANT-2026-GMRPK0BU. Automated scanning of open-source code found what manual review had missed for years, and it is a reminder that the most dangerous code in a CMS is often the code that runs before any user logs in.

The same security release fixed a second, lower-risk flaw — SA-CORE-2026-018, tracked as CVE-2026-132166 — a gadget chain in Drupal core classes. Drupal rates that one Moderately critical and says it is not directly exploitable: it only becomes a vector if some other vulnerability lets an application pass unsafe input to PHP's unserialize(). It is fixed by the same three releases, and it is worth patching for, but it is not the flaw attackers are using. The installer flaw is.

Impact and Exposure

The exposure is defined by two things: how many Drupal sites run an affected version, and how many of them leave the installer reachable. The answer to the first is large — Drupal 10.6 and the 11.x branches are the current supported lines, and any site that has not updated since November 18 is affected. The answer to the second is that the installer is reachable by default. Drupal core's default configuration does not block core/install.php; the file answers to any anonymous visitor unless the site owner has deliberately secured it. Drupal's own documentation has long recommended securing the installer after installation, but that guidance is easy to miss, and many sites never do it.

The timeline shows how fast this moved from disclosure to real attacks. Drupal published an advance notice on November 16, warning that a security release was coming on November 18. The release landed on November 18 with the advisory, the fixes, and a proof of concept on record. Within a day, the Security Team had a report of exploitation on live sites, dated November 19 at 19:00 UTC. A public proof-of-concept lab appeared on GitHub on November 20. On November 24, CISA added the flaw to its exploited-vulnerabilities catalog with a three-day federal deadline — November 27 — and a forensic triage requirement, the same urgency treatment given to flaws that are being exploited right now rather than flaws that might be exploited later.

What makes the exposure worse is that the attack is silent by design. Reinstalling a site through its installer does not crash anything or deface a page. The site keeps serving content while its administrator account quietly changes hands. An attacker who takes over a Drupal site this way gets the keys to a trusted domain: a site that search engines rank, that users trust, and that often sits inside an organization's network with access to internal services. The site is not the target so much as the platform — for hosting malicious content, for sending phishing from a trusted domain, or for reaching deeper into the network behind it.

Drupal Steward, Drupal's paid protection service, covers known attack vectors for sites that use it, and the advisory notes that those sites are already protected from the known vectors. But the advisory also says those sites should still upgrade in case additional attack vectors are discovered. The protection is a shield over the known paths, not a fix for the underlying flaw, and the underlying flaw is what the patch addresses.

Who Is Affected

Drupal branchStatusAction
11.4.0 – 11.4.12VulnerableUpdate to 11.4.13
11.0.0 – 11.3.21VulnerableUpdate to 11.3.22
10.6.0 – 10.6.21VulnerableUpdate to 10.6.22
11.2.x and belowVulnerable, no fixBlock the installer; upgrade to a supported branch
10.5.x and belowVulnerable, no fixBlock the installer; upgrade to a supported branch
Drupal 8 and 9Vulnerable, no fixBlock the installer; upgrade to a supported branch
10.6.22 / 11.3.22 / 11.4.13FixedBlock the installer anyway

The fixed releases are 10.6.22, 11.3.22 and 11.4.13, all published on November 18, 2026. Every supported branch below those versions is affected. The end-of-life branches — Drupal 11.2 and below, 10.5 and below, and Drupal 8 and 9 — receive no security coverage at all, so there is no patch coming for them; the only defense is blocking the installer at the web server and planning an upgrade to a supported branch. That last point deserves emphasis, because the sites most likely to be running an end-of-life branch are also the sites least likely to have anyone watching them.

One more thing the table cannot show: the flaw matters most on sites where the installer is reachable from the internet, which is the default. A Drupal site behind a VPN or an internal network is not exposed to anonymous internet visitors, but any public-facing Drupal site with an unblocked installer is. If you manage more than one Drupal site, inventory them all — including the forgotten ones, the staging copies that were never taken down, and the old subsites on a multisite installation. The installer is needed only while a site is being installed, including a new site in a multisite setup, so there is no reason for it to be reachable on a finished site.

How to Detect It

Detection starts with the administrator account, because the attack's goal is a new administrator. Check whether user 1 — the site's first administrator — has a changed name, email address, or password, and check whether any new administrator accounts appeared after November 19. Any change to user 1 that does not match a change your team made is a compromise indicator, not a curiosity. Review the account list for accounts created in the days after the advisory, and check their roles: an attacker needs an administrator role, so a new account with full permissions is the signature to look for.

Next, look at the logs. In the web server access log, search for requests to /core/install.php from addresses that are not your own team — especially POST requests to that path, and any installer requests after November 19. A finished site should receive no installer traffic at all, so any request to the installer from an unfamiliar address is suspicious on its own. In Drupal's own watchdog log, look for installer activity in the same window. If your host runs a web application firewall, check its log for installer-access events; firewall vendors began adding detection rules for this flaw within days of disclosure.

Then look for what the attacker did after getting in. A new administrator can install modules and themes, and a malicious module is the most direct route to persistent code execution. Review the module and theme lists for anything installed or enabled after November 19 that your team did not add, and check the file system for new PHP files outside your normal deployment paths. Check configuration changes too — the installer flow touches site configuration, so unexpected configuration changes in the same window are worth investigating. If you find signs of compromise, treat the site as compromised and rebuild from a known-good backup rather than patching over the evidence; patching closes the hole, but it does not remove an attacker who already has an administrator account.

There is one more diagnostic worth running on your own sites. Drupal's command-line tool, Drush, can report the installer's stored state — whether the installation sequence is recorded as complete. On a finished site that state should show the work as done. Anything else means the installer can resume, and that site should be patched and blocked immediately. Run that check on every site you manage, including the ones you think are already patched.

How to Fix It

Upgrade first. Move Drupal 11.4.x to 11.4.13, Drupal 11.3.x to 11.3.22, and Drupal 10.6.x to 10.6.22. The fixes were published on November 18, 2026, and the update is a normal core update — Composer-managed sites update the core package and run the database updates and a cache rebuild. There is no workaround that replaces the upgrade; the patch is the remediation, and the installer block below is a defense-in-depth step, not a substitute for it.

Then block the installer — and keep it blocked. Drupal recommends three ways to do it, and the web server rule is the strongest because a core update cannot overwrite it. For nginx, deny the installer path in the server block; for Apache, add a rule in the server configuration that denies it. Removing core/install.php also works, but it must be kept removed after each update, for example with a Composer script, or the next update will put it back. The block should stay in place permanently and be lifted only while someone is actively installing a site in the browser — and for routine work, prefer Drush, which installs and manages sites without the browser installer at all.

As a supporting step, make settings.php read-only to the web server where your hosting allows it. The advisory says some exploit paths are mitigated when the web server cannot write to or change the permissions on that file. It is not a complete defense — only some paths are affected — but it raises the bar, and it costs nothing. The same hardening applies to the installer block: it is cheap, it is permanent, and it protects against the next installer flaw as well as this one.

After patching, verify rather than assume. Confirm the running core version on every site, including staging copies and multisite subsites, and re-check the administrator accounts and the installer state described above. Treat any site that was reachable and unpatched after November 19 as potentially probed: review its logs and its account list for the compromise signals described above before you declare it clean.

Lessons for Defenders

The first lesson is about leftover setup code. The installer is needed for a few minutes in a site's life and then never again, yet it stays on the server for years, answering requests from anyone who finds it. Setup and installation code is among the most privileged code in any application — it creates administrator accounts and writes configuration — and it is also the code most likely to be forgotten once the site is running. Anything that exists only to set a system up should be removed or blocked the moment setup is finished, and that rule should be enforced automatically, not left to memory.

The second lesson is about failing securely. The flaw's weakness class is CWE-636: the installer did not fail into a safe state when it could not verify that installation was complete. When a security-critical check is uncertain — when the system cannot tell whether it is installed or not — the safe answer is always to refuse, not to proceed. Any component that decides whether a privileged operation is allowed must default to denial when its state is ambiguous, and that behavior should be tested explicitly, because the ambiguous state is exactly the one an attacker will try to create.

The third lesson is about patch speed on internet-facing infrastructure. The fix for this flaw was available on November 18, the first exploitation report is dated November 19 at 19:00 UTC, and a public proof of concept appeared on November 20. That is a one-day window from patch to exploitation, and a two-day window to a public exploit. Critical patches on public-facing systems should be measured in hours, not in monthly cycles, and the patch window should start when the fix ships — not when exploitation is confirmed, because by then it is already happening.

Frequently Asked Questions

Is my Drupal site affected if the installer was already blocked?

If /core/install.php was already blocked at the web server, the known attack paths cannot reach it, and you are protected from this flaw. You should still upgrade to a fixed release, because the block protects against known vectors and the patch fixes the underlying flaw. Keep the block in place permanently either way.

Does Drupal 7 have this vulnerability?

No. The advisory's affected versions cover Drupal 10.6 and the 11.x branches. Drupal 7 is not listed as affected by this flaw, though it is itself end of life and should not be relied on for security coverage in general.

What is SA-CORE-2026-018, the second flaw in the same release?

It is CVE-2026-132166, a gadget chain in Drupal core classes, rated Moderately critical. It is not directly exploitable on its own — it only becomes a vector if another vulnerability lets an application pass unsafe input to PHP's unserialize(). It is fixed by the same three releases, 10.6.22, 11.3.22 and 11.4.13.

Is CVE-2026-132165 in CISA's Known Exploited Vulnerabilities catalog?

Yes. CISA added it on November 24, 2026, with a federal remediation deadline of November 27, 2026, and a forensic triage requirement. The deadline applies to US federal civilian agencies, but the addition itself is CISA's confirmation that the flaw is being exploited in the wild.

What should I check first if my site was unpatched after November 19?

Check the administrator accounts first — whether user 1 changed or any new administrator appeared. Then check the web server access log for requests to /core/install.php and Drupal's watchdog log for installer activity in the same window. If you find signs of compromise, rebuild from a known-good backup rather than patching over it.

Why does Drupal say to secure the installer even after upgrading?

Because the installer file is not removed by the security release, and the exposure check stays relevant after patching. Blocking the installer permanently protects against this flaw's remaining paths and against the next installer flaw, and it costs nothing. The upgrade fixes the vulnerability; the block removes the attack surface.

Related posts:

Report by Faizan Akhtar — The Cyber Security Researcher

Top comments (0)