techweb24.dev
README.md

Drupal CVE-2026-136716: Check and Fix Installer Takeover

Drupal CVE-2026-136716: Check and Fix Installer Takeover

If you run a Drupal site, this guide covers one job: finding out whether your core version is exposed to CVE-2026-136716, checking what /core/install.php shows to the internet, updating core, running the update script the fix depends on, and blocking the installer at the web server. It is a routine core update plus a few checks, and most sites can finish it in under half an hour.

Short version: update Drupal core to 10.6.23, 11.3.23 or 11.4.14, run update.php (or drush updatedb) straight away, block install.php at the web server, then check that the user 1 account still belongs to you.

What the exposed-installer flaw lets an attacker do

Drupal ships an installer at /core/install.php. It is meant to run once, during setup, and then refuse to run again. Drupal's advisory, SA-CORE-2026-019, rates the bug Highly critical (21/25) as an access bypass. An earlier advisory, SA-CORE-2026-017, fixed several installer bugs, but sites left in certain unusual or incomplete install states stayed open to a full site takeover, production sites included.

CISA's description puts it plainly: an unauthenticated remote attacker can take over a site via the exposed Drupal installer when the site is in one of those states. The installer is the one page in Drupal that can create an administrator account, so reaching it in the wrong state is enough.

NVD scores it 9.8 CRITICAL with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H: reachable over the network, low complexity, no account and no user interaction needed. Two details in the advisory change how you should check:

  • The vulnerable state is not visible in the Drupal admin UI, so a site that looks normal can still be exposed.
  • The bug is being exploited in the wild, and a site that has already been taken over may no longer look vulnerable.

CISA added it to the Known Exploited Vulnerabilities catalog on 2026-11-27 with a due date of 2026-11-30 for US federal agencies.

Which Drupal core versions are affected?

The advisory lists the affected ranges and the first fixed release for each supported branch:

BranchAffected versionsUpdate to
10.6.xEvery Drupal 10 release before 10.6.2310.6.23
11.3.x11.0.0 up to (not including) 11.3.2311.3.23
11.4.x11.4.0 up to (not including) 11.4.1411.4.14
End-of-life branches get no fix. Drupal 10.5.x and below and 11.2.x and below are out of security support. If your site is on one of them, plan the move to 10.6 or 11.3/11.4 now, and block the installer (Step 5) today while you do.

Step 1: Confirm your exact Drupal core version

The version in composer.json is a constraint, not a fact. Check the code that is actually installed:

# Drush (if your project has it)
drush status --fields=drupal-version

# Composer projects: the installed core package
composer show drupal/core --no-ansi | grep -E '^versions'

# No Drush or Composer: read it from the code
grep -m1 "const VERSION" web/core/lib/Drupal.php

On the official drupal:11 Docker image, the last command printed const VERSION = '11.4.14';, a fixed release. Compare your number with the table. If you are on a fixed release or newer on the same branch, skip to Step 4 anyway: the advisory says the update script has to run before existing sites are fully fixed.

Step 2: Check what /core/install.php shows

A version number tells you whether the code is patched. This check tells you what the installer path shows to a visitor. Run it from outside your own network, for example from a phone on mobile data, so a local firewall rule doesn't fool you.

# Status code after following redirects
curl -sSL -o /dev/null -w '%{http_code}\n' https://example.com/core/install.php

# The page title tells you what the installer decided
curl -sSL https://example.com/core/install.php | grep -o '<title>[^<]*</title>'

A 200 on its own proves nothing. On a fully installed and patched Drupal 11.4.14 test site, the installer still answered with a 200, because Drupal shows a "Drupal already installed" page:

200
<title>Drupal already installed | Drupal</title>
Drupal 11.4.14 answering /core/install.php with the Drupal already installed page on a finished test site

How to read your result:

  • 403 or 404: the installer is blocked or missing. Keep it that way.
  • 200 with "Drupal already installed": the installer is reachable but refusing to run. Update and block it anyway, because the vulnerable states are exactly the ones where that refusal doesn't happen.
  • 200 with "Choose language", "Select an installation profile" or any setup form: urgent. Block the path now (Step 5), then update.
  • 500: inconclusive. Check the PHP error log; a broken installer can still be a reachable one.
Run the same check on every hostname that points at the site: staging copies, old subdomains and half-finished migrations are the "unusual states" this bug feeds on.

Step 3: Update Drupal core with Composer

Back up the database and the code first. A core update runs database updates, and those are not easy to undo.

# 1. Back up (adjust names and paths)
mysqldump -u dbuser -p dbname > ~/dbname-pre-update.sql
tar -czf ~/drupal-code-$(date +%F).tar.gz /var/www/html

# 2. Update core within your current branch
composer update "drupal/core-*" --with-all-dependencies

# 3. Confirm the new version
composer show drupal/core --no-ansi | grep -E '^versions'

drupal/core-* updates drupal/core, drupal/core-recommended and the scaffold packages together, which is what Drupal's own update instructions use. If your composer.json pins core to an older minor (for example ~11.2.0), widen the constraint to the branch you are moving to first. If a contributed module blocks the update, fix that conflict; don't push past it with --ignore-platform-reqs.

No Composer? Drupal 10 and 11 can't update core from the admin UI, and drush up was removed years ago. Sites built from the tarball have to replace the core folder and vendor by hand, which is a good reason to move the site to Composer after this incident.

Step 4: Run the database updates

Don't skip this step. The advisory says an update hook has to run to fix existing production sites that are in the vulnerable state. New files alone leave those sites exposed.

drush updatedb -y
drush cache:rebuild
drush status --fields=drupal-version,db-status

Without Drush, log in as an administrator, open /update.php and follow the prompts. When it says there are no pending updates, you are done.

Step 5: Block the installer at the web server

A finished production site never needs install.php to be reachable, so blocking it costs nothing. Do it even after updating.

# nginx: inside your server { } block, then run nginx -t and reload
location = /core/install.php {
    return 403;
}

On Apache, where the rule goes matters. In the vhost (or any file in conf-enabled), LocationMatch works:

# Apache vhost only. Not allowed in .htaccess.
<LocationMatch "^/core/install\.php$">
    Require all denied
</LocationMatch>

Without access to the vhost, add this to Drupal's .htaccess instead:

# Drupal .htaccess (web root)
<Files "install.php">
    Require all denied
</Files>

Results on the Drupal 11.4.14 test site:

nginx location rule:               /core/install.php -> 403, / -> 200
Apache LocationMatch in vhost:     /core/install.php -> 403, / -> 200
Apache Files in .htaccess:         /core/install.php -> 403, / -> 200
Apache LocationMatch in .htaccess: /core/install.php -> 500, / -> 500
From experience: while testing this guide on a Drupal 11.4.14 site, pasting the LocationMatch block into .htaccess didn't block the installer. It took the whole site down with a 500 error, home page included, because Apache doesn't allow that directive in .htaccess. The Files version did the job without touching anything else.

After reloading, repeat the Step 2 check. You want a 403. If you still see a 200, the rule is in the wrong server block or a CDN is serving a cached page; purge it and test again.

Step 6: Check user 1 and the logs

The advisory asks every site owner to make sure the user 1 account is still theirs, because taking over the installer means creating or changing an administrator.

# Who is user 1, and which email does it use?
drush user:information --uid=1 --fields=uid,name,mail,roles,user_status

# Every account with the administrator role
drush sql:query "SELECT u.uid, u.name, u.mail FROM users_field_data u JOIN user__roles r ON r.entity_id = u.uid WHERE r.roles_target_id = 'administrator'"

Make sure user 1's email is an address you control, then consider resetting its password (drush user:password or the admin UI). Then look for requests to the installer in the web-server logs:

# Requests to the installer, counted per IP (nginx)
grep -a "install.php" /var/log/nginx/access.log* \
  | awk '{print $1}' | sort | uniq -c | sort -rn | head -n 20

# POSTs are the ones that matter most
grep -a "POST /core/install.php" /var/log/nginx/access.log* | tail -n 50

On Apache the logs are usually /var/log/apache2/access.log* or /var/log/httpd/access_log*. Also check Reports > Recent log messages in Drupal for account changes around the same time.

If you find a POST to the installer or an administrator you didn't create, don't just delete the account. Treat the site as compromised: rotate the database password and hash_salt, review file integrity, and follow Drupal's guidance for hacked sites. An administrator can do anything, including leaving another way back in.

Step 7: Make settings.php read-only

While you are in there, make sure anonymous visitors can't run the update script and that the web server can't rewrite your database settings:

// web/sites/default/settings.php
$settings['update_free_access'] = FALSE;
chmod 444 web/sites/default/settings.php
chmod 555 web/sites/default
My tip: after any Drupal security update, run the Step 2 check against every hostname you own and read the page title, not just the status code. A 200 can mean "already installed" or "pick a language", and only the title tells you which.

FAQ

My site is fully installed and working normally. Am I still at risk?

A clean, fully installed site is in a much better position, but the advisory says the vulnerable state isn't visible in the admin UI. Abandoned staging copies, migrations that never finished, restored backups and half-configured multisite instances can all qualify. Update, run the update script and block the installer, then you don't have to guess.

Is a 200 from /core/install.php proof that my site is vulnerable?

No. A finished Drupal site answers with a 200 and a "Drupal already installed" page. Read the page title: a setup form is the dangerous answer, the "already installed" page is not, and a 403 is the best answer.

What if I can't update right away?

Block the installer at the web server today (Step 5). It doesn't fix the underlying bug, but it removes the path an unauthenticated attacker needs, and you can undo it in seconds. Then schedule the core update and the update script as soon as you can.

Sources: Drupal Security Advisory SA-CORE-2026-019, NVD entry for CVE-2026-136716, and the CISA Known Exploited Vulnerabilities catalog.

Zubaer Ahammed

Full-stack & Android developer from Bangladesh. Builds web platforms and apps and writes practical tutorials here. zubaer.com

Comments