Skip to content

Guide Servers & Security

Drupal Installer Flaw Under Attack (CVE-2026-132165): How to Check, Patch and Block install.php

Attackers are taking over Drupal sites through install.php. Which versions are hit, how to update and block the installer, and how to check for a break-in.

Retro setup wizard at /core/install.php asking to reinstall a live site, an attacker's pointer on Next, LEFT OPEN stamp
On this page 7 sections
  1. What happened, in plain English
  2. Is your Drupal site affected?
  3. How to patch Drupal (the 10-minute version)
  4. How to block the Drupal installer
  5. Check your Drupal site for a break-in
  6. Timeline: how the Drupal installer attack unfolded
  7. Quick answers

Attackers are taking over Drupal sites through a file most people forget is even there: the installer, core/install.php. Drupal fixed the hole on November 18 as CVE-2026-132165, saw it exploited on live sites the next day, and then, on November 25, had to ship a second fix, CVE-2026-136716, because some sites stayed open even after patching. Both are rated "Highly critical", and both are being used in real attacks.

If you run Drupal 10 or 11, the short version is: update to 10.6.23, 11.3.23 or 11.4.14, run update.php, block /core/install.php, and check the admin account (user 1) for changes. The rest of this guide shows you how, step by step.

First flaw Second flaw
CVE CVE-2026-132165 CVE-2026-136716
Drupal advisory SA-CORE-2026-017 (Nov 18) SA-CORE-2026-019 (Nov 25)
Drupal's rating Highly critical, 20/25 Highly critical, 21/25
What it allows Reinstalling the site through the installer: takeover or code execution Takeover of sites left in an unusual or incomplete install state
Exploited? Yes, on live sites since Nov 19, 19:00 UTC Yes, in the wild
Safe versions 10.6.22, 11.3.22, 11.4.13 10.6.23, 11.3.23, 11.4.14 (these fix both)

What happened, in plain English

Every Drupal site ships with an installer. You use it once, on day one, to set up the database and the admin account. After that it should never run again.

The first flaw broke that promise. Drupal's advisory says that "under specific conditions, an attacker can use the installer to attempt to reinstall Drupal", which "can lead to a site takeover or remote code execution". In other words, a stranger with no login could run setup on your live site and make themselves the owner.

The second flaw is the follow-up. After the first fix, Drupal found that "certain sites in unusual or incomplete install states remain vulnerable to site takeover", including production sites. The worrying part: Drupal says this state "is not apparent in the user interface", and a site that has already been taken over may no longer look vulnerable at all.

The first flaw was found by Anthropic's open-source scanner, according to Drupal's credits; Drupal's own security team and volunteers reported and fixed the second.

Quick poll

Which Drupal version does your site run?

Tap an answer to see how other readers voted.

Is your Drupal site affected?

If your version is older than the ones below, treat the site as vulnerable unless you'd already blocked the installer. Here's how to tell:

Your Drupal version Status What to do
11.4.14 or later Fixed Block the installer and check user 1
11.4.0 to 11.4.13 Vulnerable Update to 11.4.14
11.3.0 to 11.3.22 Vulnerable Update to 11.3.23
11.0 to 11.2 Vulnerable, end of life, no fix Move to 11.3 or 11.4
10.6.0 to 10.6.22 Vulnerable Update to 10.6.23
10.5 and older, 8 or 9 End of life, no fix Block the installer now, then upgrade
7 Not covered by these advisories Drupal 7 is past end of life: plan a move

To find your exact version, use any one of these:

  1. In the admin area: go to Reports → Status report (/admin/reports/status). The version is at the top.
  2. With Drush: run drush status and look for "Drupal version".
  3. With Composer: run composer show drupal/core and check the versions line.

One more check matters even on a patched site: can anyone open your installer? Run this from any computer, using your own address:

curl -I https://example.com/core/install.php

A 403 or 404 means it's blocked. A 200 means anyone can reach it, which is exactly what these attacks need.

How to patch Drupal (the 10-minute version)

Most Drupal 10 and 11 sites are managed with Composer. Take a backup of the database and files first, then:

composer update "drupal/core-*" --with-all-dependencies
drush updatedb
drush cache:rebuild

The drush updatedb step is not optional this time. Drupal's second advisory says "an update hook must run to fix existing production sites in this state". If you don't use Drush, open /update.php in your browser as an admin instead.

Check the version again afterwards. You want 10.6.23, 11.3.23 or 11.4.14 or later; the November 18 releases (10.6.22, 11.3.22, 11.4.13) fix only the first flaw.

On managed hosting (Pantheon, Acquia and similar), check your dashboard: many hosts roll out core security releases for you, but you may still need to deploy them and run database updates. If you use Drupal Steward, Drupal says you're protected from the known attack paths, but should still update.

How to block the Drupal installer

This shuts the door the attacks use, and Drupal now recommends it for every site, patched or not. Pick one of these from Drupal's own guide:

Apache (in the virtual host, recommended):

<Location "/core/install.php">
  Require all denied
</Location>

Apache, if you can only edit .htaccess:

<Files "install.php">
  Require all denied
</Files>

nginx (inside your server block):

location ^~ /core/install.php {
  return 404;
}

Reload the web server, then test all three addresses Drupal suggests. Each should return 403 or 404:

curl -I https://example.com/core/install.php
curl -IL https://example.com/install.php
curl -I https://example.com/core/install.php/foo

Two more things help:

  • Make settings.php read-only for the web server. Drupal says some exploit paths are blocked if the web server "cannot write to or change permissions on settings.php". That means read-only permissions (for example 444) and a file owner that isn't the web server user, or PHP could simply change it back. Our free chmod calculator turns 444 into plain words if you want to check what each digit means.
  • Composer can wipe your .htaccess change. Composer's "scaffold" step rewrites .htaccess on updates. The web server config is safer; or follow Drupal's guide to append the rule through drupal-scaffold.

Check your Drupal site for a break-in

Patching closes the door but doesn't remove anyone who already got in. Drupal asks every site to check, especially if the installer was reachable after November 18:

  1. Look at user 1. Run drush user:information --uid=1 (or open the first account under People). Is the email address yours? If not, change it at once.
  2. Reset the user 1 password, even if nothing looks wrong. Make it long and unique; our password strength checker shows how long a password would take to crack.
  3. Search your access logs for the installer. For example: grep "install.php" /var/log/nginx/access.log* (or /var/log/apache2/access.log*). Requests from unknown addresses, especially POST requests, after November 18 are a red flag.
  4. Check Drupal's own log under Reports → Recent log messages (drush watchdog:show) for new admin accounts, role changes or modules you didn't enable.
  5. If you find signs of a takeover, follow Drupal's guide "Your Drupal site got hacked. Now what?": take the site offline, restore from a clean backup made before the attacks began on November 19, update, then change every password and key the site uses.

Quick poll

Had you blocked install.php before this week?

Tap an answer to see how other readers voted.

Timeline: how the Drupal installer attack unfolded

Date (2026) What happened
Nov 18 Drupal releases SA-CORE-2026-017 (CVE-2026-132165) and fixed versions 10.6.22, 11.3.22, 11.4.13
Nov 19, 19:00 UTC First attacks on live sites, according to Drupal
Nov 24 CISA adds CVE-2026-132165 to its Known Exploited Vulnerabilities list; US federal agencies must fix it by Nov 27
Nov 25 Drupal releases SA-CORE-2026-019 (CVE-2026-136716) for sites that stayed vulnerable; fixed in 10.6.23, 11.3.23, 11.4.14

It's the second open-source web app under active attack this month, after the Apache Roller flaw. Drupal runs on PHP, so while you're in there, check you have November's PHP security update too, and if your site sits behind nginx, make sure you've patched nginx2root.

Quick answers

What is CVE-2026-132165? A highly critical flaw in Drupal core's installer (install.php) that lets an attacker with no account reinstall Drupal on a live site, leading to site takeover or remote code execution. It's fixed in 10.6.22, 11.3.22 and 11.4.13, and exploited since November 19.

What is CVE-2026-136716? A follow-up flaw (SA-CORE-2026-019): sites left in an unusual or incomplete install state could still be taken over after the first fix. It's exploited in the wild and fixed in 10.6.23, 11.3.23 and 11.4.14.

Which Drupal version is safe? 10.6.23, 11.3.23 or 11.4.14 or later, plus running update.php (or drush updatedb). Older branches such as 10.5 and 11.2 get no fix.

Is Drupal 7 affected? Drupal 7 isn't listed in these advisories. It's past end of life and gets no security fixes at all, so it's a risk either way.

Is blocking install.php enough on its own? It blocks the known attacks, and Drupal says sites that had already secured the installer aren't vulnerable to the second flaw. You should still update and run update.php, because a site might already be in a vulnerable state.

Do I need to do anything if I host on Pantheon or Acquia? Check your host's dashboard and notices. Hosts often prepare core updates, but you may still need to deploy them and run database updates yourself.

Facts checked against Drupal's security advisories SA-CORE-2026-017 and SA-CORE-2026-019, Drupal's guide to securing the installer and CISA's catalog on 26 November 2026. We'll update this guide if Drupal changes its advice.

Last of all, a lesson for every CMS: an installer, setup wizard or "first run" page that stays reachable after setup is an open door. Block it on day one. Our 30-minute VPS security checklist covers the rest of the basics.

Free calculatorchmod Calculator Open it

Sources

The facts in this guide were checked against these sources.

  1. Drupal: SA-CORE-2026-017, Drupal core highly critical remote code execution (CVE-2026-132165) drupal.org
  2. Drupal: SA-CORE-2026-019, Drupal core highly critical access bypass (CVE-2026-136716) drupal.org
  3. Drupal docs: Securing the Drupal installer (install.php) drupal.org
  4. Drupal docs: Your Drupal site got hacked. Now what? drupal.org
  5. CISA Known Exploited Vulnerabilities catalog: CVE-2026-132165 cisa.gov
  6. CVE Record: CVE-2026-132165 cve.org
  7. CVE Record: CVE-2026-136716 cve.org
  8. Canadian Centre for Cyber Security: Drupal security advisory (AV26-359) cyber.gc.ca
  9. BleepingComputer: Hackers now exploit critical Drupal RCE flaw to hijack sites (November 25, 2026) bleepingcomputer.com
  10. The Hacker News: Drupal warns of new highly critical site takeover vulnerability under active exploitation (November 26, 2026) thehackernews.com

Keep reading

Tools for this guide

Get new guides and tools by email

Security alerts, AI explainers, tax rule changes and new free tools, in one short email. No spam.