Drupal Core CVE-2026-132165 and CVE-2026-136716: Exploited Installer Flaws Allow Full Site Takeover

Introduction

Drupal has shipped two "highly critical" core advisories in a week for the same weak spot: the installer. CVE-2026-132165 (SA-CORE-2026-017, risk 20/25) lets an attacker use a reachable install.php to reinstall a site, which leads to takeover or remote code execution. It was exploited within a day of release, and CISA added it to KEV on November 24. CVE-2026-136716 (SA-CORE-2026-019, risk 21/25) followed on November 25, because the first fix left sites in unusual install states still open, and that bug is also being exploited. Sites patched only to the first release are still vulnerable. Update to 10.6.23, 11.3.23 or 11.4.14, run update.php, block the installer, and check the user 1 account.

What Happened

Date (2026) Event
Nov 16 PSA-2026-11-16 warns of a critical core release with a proof-of-concept exploit, so sites can prepare
Nov 18 SA-CORE-2026-017 / CVE-2026-132165 released: fixed in 10.6.22, 11.3.22, 11.4.13
Nov 19, 19:00 UTC Earliest exploitation on live sites reported to the Drupal Security Team
Nov 24 CISA adds CVE-2026-132165 to KEV, federal due date Nov 27
Nov 25 SA-CORE-2026-019 / CVE-2026-136716 released: fixed in 10.6.23, 11.3.23, 11.4.14, also exploited in the wild

SA-CORE-2026-017 ("Remote code execution", AC:Complex/A:None/CI:All/II:All/E:Exploit/TD:Uncommon). Under specific conditions the core installer can be used to try reinstalling Drupal on top of a live site. If that works, the attacker owns the site. Drupal says some, but not all, exploit paths are blocked when the web server cannot write to or change permissions on settings.php. The advisory credits discovery to Anthropic's OSS Scanner (ANT-2026-GMRPK0BU). The same release also shipped SA-CORE-2026-018 (CVE-2026-132166), a moderately critical gadget chain that Drupal says is not directly exploitable.

SA-CORE-2026-019 ("Access bypass", AC:Basic/A:None/CI:All/II:All/E:Exploit/TD:Uncommon). The November 18 fix did not cover sites that are in an unusual or incomplete install state. Drupal notes that the admin UI does not show whether a site is in that state, and that a site that has already been compromised may no longer be in it. The code fix needs a database update hook, so you have to run update.php or drush updatedb after deploying the new code. Drupal says it is being exploited in the wild, and that sites that had already secured the installer are not vulnerable.

CISA's KEV entry covers CVE-2026-132165 only. CVE-2026-136716 was published the day after the KEV alert and was not on the list at the time of writing.

Why It Matters

Drupal runs government portals, universities, media sites and enterprise intranets. Those are the kinds of sites that move slowly through change control, and they hold user accounts, forms full of personal data, and credentials for whatever the site integrates with. Site takeover via the installer is not a partial compromise. The attacker ends up with the equivalent of user 1, which in Drupal means unrestricted admin, and from there PHP code execution through modules or configuration is a short step.

The two-step fix is the trap. Anyone who patched on November 18 and moved on is still exposed if the site was ever left in an odd install state, such as a half-finished deployment, a restored database, or a multisite added by hand. Teams that never blocked install.php at the web server are the ones being hit.

Who Is Affected

  • Drupal 10 before 10.6.23 (10.6.22 fixes only CVE-2026-132165).
  • Drupal 11.0–11.3 before 11.3.23, and 11.4 before 11.4.14.
  • End of life, no fix: Drupal 11.2.x and older, 10.5.x and older, and Drupal 8 and 9. Upgrade to a supported branch.
  • Drupal 7 is not mentioned in either advisory.
  • Sites where /core/install.php is reachable from the internet, and sites in an unusual or incomplete install state, which you can't see from the UI.
  • Sites that had already secured the installer are stated to be not vulnerable to CVE-2026-136716.

How to Protect Yourself

1. Check your core version

cd /var/www/drupal          # your Drupal root
drush status --field=drupal-version
# or, without drush
composer show drupal/core | grep -E '^versions'

2. Update core and run the database updates

composer update "drupal/core-*" --with-all-dependencies
drush updatedb -y           # required: the SA-CORE-2026-019 fix ships an update hook
drush cache:rebuild
drush status --field=drupal-version   # want 10.6.23 / 11.3.23 / 11.4.14 or later

Deploying the code without running updatedb leaves existing production sites in the vulnerable state.

3. Block the installer at the web server

Do this even after patching. A production site has no reason to serve the installer:

# nginx
location ~* ^/core/install\.php { deny all; return 404; }
# Apache (.htaccess or vhost)
<Files "install.php">
    Require all denied
</Files>

Then confirm it from outside:

curl -s -o /dev/null -w '%{http_code}\n' https://www.example.com/core/install.php   # expect 403 or 404

4. Make settings.php read-only

Drupal says this blocks some exploit paths for CVE-2026-132165. It is not a full mitigation, but it is good practice regardless:

chmod 444 sites/default/settings.php
chmod 555 sites/default
ls -l sites/default/settings.php

5. Hunt for installer access and takeover signs

Look for requests to the installer since the first advisory:

sudo zgrep -hE '/core/install\.php' /var/log/nginx/access.log* /var/log/apache2/access.log* /var/log/httpd/access_log* 2>/dev/null \
  | awk '{print $1, $4, $6, $7, $9}' | sort | uniq -c | sort -rn | head -50

Check user 1 and any recently created or changed admin accounts:

drush user:information --uid=1 --fields=name,mail,status,login,access
drush sql:query "SELECT uid, name, mail, FROM_UNIXTIME(created), FROM_UNIXTIME(changed), FROM_UNIXTIME(login) FROM users_field_data WHERE changed > UNIX_TIMESTAMP('2026-11-18') ORDER BY changed DESC LIMIT 50;"
drush sql:query "SELECT entity_id, roles_target_id FROM user__roles WHERE roles_target_id = 'administrator';"

As Drupal advises, set the user 1 email to an address you control and reset its password. Then look for other persistence: modules enabled since November 18 (drush pm:list --status=enabled), new PHP files under sites/*/files (which should never contain any), and changes to settings.php:

find sites/*/files -name '*.php' 2>/dev/null
find . -path ./vendor -prune -o -name '*.php' -newermt '2026-11-18' -type f -print | head -50

6. If you find signs of compromise, treat the site as owned

Follow Drupal's "Your Drupal site got hacked. Now what?" guidance. Take the site offline, preserve logs and a database dump, and restore code and database from a backup made before November 18 if you have one. Then patch, run updatedb, and rotate the database password, hash_salt, SMTP and API credentials, and anything else stored in settings.php or site configuration.

Source