Critical CVE Response

Drupal CVE-2026-132165: Is Your install.php Block Rule Actually Blocking It?

Dark cyberpunk illustration of a monolithic building at night with a leftover construction service hatch bolted to its base, hanging open with orange light spilling across wet pavement.

Two Nginx rules for the same file differ by two characters, and only one of them works. location = /core/install.php matches that exact path and nothing else. location ^~ /core/install.php matches every path that begins with it. On a Drupal site running unpatched core, that difference decides whether an anonymous request to /core/install.php/foo still reaches the installer, because a large share of PHP deployments split the URL at .php and pass the remainder along as path info.

The installer is the bug this week. Drupal published SA-CORE-2026-017 on November 18, tracked as CVE-2026-132165, and CISA added Drupal Core to the Known Exploited Vulnerabilities catalog on November 24 with a remediation date of November 27. Drupal's security team recorded a report of exploitation against live sites as early as November 19 at 19:00 UTC, one day after the fix shipped. The advisory now carries a risk score of 20/25 with its exploit element set to "Exploit," raised from the 18/25 it shipped with.

What the installer does when it runs a second time

Every copy of Drupal core ships core/install.php, and that file stays on disk after the site is built. It is a normal, reachable PHP endpoint on a finished site. Under specific conditions an unauthenticated request can drive it into attempting to reinstall a site that is already installed, and the reinstall path leads to site takeover or code execution. CISA files the weakness as CWE-636, not failing securely: the installer was built for a machine with no site on it yet, and it behaves that way when it is called on a machine that already has one.

One detail in the advisory shapes your exposure. Some attack paths are blocked when the web server account cannot write to settings.php or change its permissions, and some are not. Older core would try to repair the permissions on settings.php itself when it found the file unwritable; the fixed releases raise an error and make an operator do it by hand. So a correctly deployed site with a read-only settings.php is harder to exploit, and that is worth something, but Drupal is explicit that it does not cover every path. Treat it as friction, not as a fix.

The same release closed a second issue, SA-CORE-2026-018 (CVE-2026-132166, 14/25), a gadget chain in core that becomes useful only if a separate bug delivers untrusted data to PHP's unserialize(). On its own it changes nothing about your risk today. It matters because the two land in the same update, so patching once handles both.

Who this affects and who can close the tab

If you do not run Drupal, this one is not yours, and no amount of KEV urgency changes that. If you do, the version boundaries are sharp:

Check your branch against these numbers

  • Fixed: 10.6.22, 11.3.22, 11.4.13. Anything at or above the fix for your branch is done.
  • Affected: everything below 10.6.22, plus 11.0.0 through 11.3.22 and 11.4.0 through 11.4.13.
  • End of life, no patch coming: Drupal 8, Drupal 9, 10.5.x and 11.2.x. These get no security release for this CVE at all.

That last line is the one that matters for the sites I see on small-business and nonprofit hosting. An agency built a Drupal 9 site five years ago, the retainer lapsed, and the site is still serving traffic with no upgrade path anybody has funded. For those sites the patch is not available, so the installer block and the forensic check below are the entire response, and an upgrade needs a date on a calendar rather than a line in a backlog.

Read the version off the disk, not off a dashboard

Hosting panels lag, and a "Drupal 10" label tells you nothing about the point release. Three ways to get the real number, in order of how much you can trust them:

# From the source file core ships, which is authoritative
grep -m1 'const VERSION' web/core/lib/Drupal.php

# From the lock file on a Composer-managed project
composer show drupal/core-recommended | grep -i '^versions'

# From the running site
drush status --field=drupal-version

A Composer-managed project and a tarball install behave differently here. On Composer projects the update is a version bump and a deploy, and the installer file comes back every time core is reinstalled. On a tarball or a one-click hosting install, core files were copied in by hand or by a control panel, so the patch is a file replacement and the installer is whatever the last person left behind. Know which kind of site each one is before you plan the work.

Drupal also notes that sites behind Drupal Steward are protected against the known attack vectors. Known is doing real work in that sentence. Update anyway.

Three requests that prove whether you are exposed

Do not reason about your web server config. Ask the server. Drupal's own guidance on securing the installer gives three probes, and the third is the one that catches a bad rule:

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

All three should answer 403 or 404. A 200 on any of them means the installer is reachable. The third probe is the interesting one: a site that answers 404 to the first and 200 to the third is running an exact-match block rule in front of a PHP handler that accepts path info, which is the default on more stacks than most people expect. Run all three against every Drupal host you are responsible for, including staging, because staging copies get indexed and attacked like anything else with a public DNS record.

Here are the rules that hold. For Nginx, inside the server block, a prefix match rather than an exact one:

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

The ^~ prefix match covers the path-info variants and takes precedence over regex location blocks, so the ordering of your PHP block stops mattering. For Apache, in the server configuration and not in .htaccess, where it produces a 500:

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

Validate before you reload, with nginx -t or apachectl configtest. One caution: update.php is a separate script and must stay reachable for database updates, so keep the rule narrow and confirm drush updatedb still runs afterward. A rule broad enough to catch both leaves you unable to apply the next patch.

If you cannot reach the web server configuration, because the site sits on managed hosting or a control panel that owns the vhost, block the path at the edge instead. A CDN or WAF rule that matches the URI prefix /core/install.php and returns a block gives you the same coverage of the path-info variants, as long as you match on prefix rather than full-path equality. Verify it with the same three curl probes from outside the network, then verify again from a second network, because a rule scoped to a single firewall zone is a common way to believe you are covered when you are not.

Check whether somebody already ran it

Exploitation was reported on November 19 and the KEV deadline is November 27. Most operators will patch somewhere inside that window, which means a site patched today may have been reachable for a week while an exploit was circulating. Patching does not answer the question of whether anybody used it. These four checks do.

Start with the access log, then the file system

Search for installer requests, including the path-info forms a naive grep install.php for an exact string would still catch but a dashboard filter might not:

# Any request that touched the installer, with status and source
awk '$7 ~ /install\.php/ {print $1, $4, $7, $9}' /var/log/nginx/access.log

# Did settings.php change after the site went live?
stat -c '%n  modified %y  mode %a  owner %U' web/sites/default/settings.php

# PHP dropped into the public files directory, which should hold none
find web/sites/default/files -name '*.php' -o -name '*.phar' | head -50

Then ask the database who holds administrator rights, and when those accounts were created:

drush sql:query "SELECT u.uid, u.name, FROM_UNIXTIME(u.created) AS created, \
  FROM_UNIXTIME(u.access) AS last_access \
  FROM users_field_data u JOIN user__roles r ON r.entity_id = u.uid \
  WHERE r.roles_target_id = 'administrator' ORDER BY u.created DESC;"

A 200 on an installer request, a settings.php whose modification time lands after go-live, an administrator account created in the last fortnight that nobody on your team recognises, or a .php file under the public files directory: any one of those moves this from patching to incident response, and the order matters. Preserve the logs and a disk image before you clean up, because the cleanup destroys the only evidence of how they got in. We have taken over enough half-cleaned CMS compromises to say plainly that the second cleanup costs more than the first one saved.

Delete the installer in your build pipeline

Patch to 10.6.22, 11.3.22 or 11.4.13 today, and block or delete the installer whether or not you patched. Then make the deletion permanent, because a hand-removed core/install.php comes back on the next composer update and nobody notices until the next advisory. Put it in the project's Composer hooks:

"scripts": {
  "post-install-cmd": ["rm -f web/core/install.php"],
  "post-update-cmd":  ["rm -f web/core/install.php"]
}

Adjust web/ to your document root. Two limits are worth knowing: the hook does not fire under composer install --no-scripts, and you will need to restore the file if you ever install a site through the browser again. Both are acceptable trades for an endpoint that does nothing for a running site and hands over the whole site when core is behind.

If you own Drupal sites you did not build, inventory them this week: core version, whether the installer answers, and who is paid to patch them. The sites that get owned in the next fortnight will not be the ones with a patch window. They will be the ones nobody could name an owner for.

Not sure whether that Drupal site was already reinstalled?

We help organizations triage a suspected web compromise and build the incident response playbook that makes the next one shorter. Book a session with our team.