CVE-2026-132165: Drupal core installer can be rerun to take over a site

ByLinuxtastic

November 29, 2026 #CVE, #Drupal

Under specific conditions, the installer that Drupal core ships at core/install.php can be used a second time on a site that is already built, and whoever reruns it ends up owning the site: a new user 1, and from there code execution on the web server. The Drupal security team released the fix on 18 November 2026 and has a report of it being used against live sites from the evening of 19 November. A week later a second advisory, SA-CORE-2026-019, found that sites in an unusual install state were still exposed after this fix. If you run Drupal 10 or 11, do not stop at the versions named here: go straight to 10.6.23, 11.3.23 or 11.4.14, run the database updates, and check user 1. This page covers what this first advisory fixed, who it affects, and how to tell whether the installer was used against you.

CVE-2026-132165 at a glance.

ComponentDrupal core, the installer at core/install.php; any web server and any Linux distribution, since Drupal is installed with Composer rather than from distribution packages
Affected versionsevery release before 10.6.22; 11.0.0 up to but not including 11.3.22; 11.4.0 up to but not including 11.4.13. Drupal 10.5 and earlier, 11.2 and earlier, and all of 8 and 9 are end-of-life and get no fix
Fixed inDrupal 10.6.22, 11.3.22 and 11.4.13, released with SA-CORE-2026-017 on 18 November 2026 — and superseded a week later by 10.6.23, 11.3.23 and 11.4.14 (SA-CORE-2026-019, CVE-2026-136716), which is where an upgrade should land
SeverityCVSS 3.1 9.8 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, NVD). CISA scores it 8.1 High by rating the attack complexity as high, which matches Drupal’s own Highly critical 20/25 with AC:Complex. CWE-306
Exploited in the wildYes. The advisory says the security team received a report of exploitation on live sites as early as 19 November 2026, 19:00 UTC. Added to CISA’s Known Exploited Vulnerabilities catalogue on 24 November 2026; federal remediation was due 27 November 2026. EPSS 0.140 (97.2nd percentile) on 28 November 2026
Who is exposedany Drupal 10.6, 11.3 or 11.4 site below the fixed versions whose installer is reachable over the web, under conditions the advisory does not spell out. Sites where the web server cannot write to or change the permissions of settings.php are protected against some, not all, of the exploit paths. Not affected: anything that is not Drupal
PublishedCVE record 26 November 2026, eight days after the advisory; this page built 29 November 2026, last updated 29 November 2026

What it is

Drupal is installed by visiting install.php in a browser. The script checks the database, writes sites/default/settings.php, creates the first account, user 1, and gives it every permission. Nothing deletes the file afterwards; the protection against running it again is a check inside the installer that the site already exists. SA-CORE-2026-017 is about that check: under specific conditions, which the advisory deliberately does not describe, an attacker can satisfy it and walk through the installer against a site that is already live. The CWE is 306, missing authentication for a critical function, and that is exactly the shape of it: a function that creates an all-powerful account, reachable without any credentials.

Rerunning the installer is a takeover rather than a defacement because of what user 1 can do. Once an attacker holds it they can enable a module that executes PHP, install one of their own, or change settings.php, and the advisory says as much: site takeover or remote code execution. That is also why the mitigation it offers is a file permission rather than a configuration flag. If the web server’s user cannot write settings.php or change its mode, the installer cannot finish the paths that need to rewrite the file, though the advisory is careful to say that not every path needs that.

Drupal does not publish a diff with a core security release, so the files the fix touches are not public. What is public is how the story continued: on 25 November SA-CORE-2026-019 reported that sites in unusual or incomplete install states were still vulnerable after this fix and shipped 10.6.23, 11.3.23 and 11.4.14 with an update hook. For practical purposes the two advisories are one incident with two patches, and only the second one closes it.

Who is affected on Linux

Drupal is not shipped by any current distribution, so the distribution trackers have nothing to fix and say so; the rows below are what each said on 29 November 2026, and the link in a row is the tracker page. The versions that matter are the ones Composer installed.

DistributionStatusFixed package
AlpineNot consultedDrupal is not packaged; see the other row
Debian bookworm, trixieNo packagetracker marks the CVE NOT-FOR-US (Drupal core and add-ons are not in Debian)
UbuntuNo entrythe tracker returned not found on 29 November 2026; Drupal is not in the Ubuntu archive
RHEL, Rocky, Alma, CentOS StreamNo entrythe tracker returned not found on 29 November 2026; Drupal is not a Red Hat product
Fedora, openSUSE/SLE, ArchNot consultednone of them carries Drupal core as a package
Every Linux host running Drupal from Composer, the official drupal container image, or a hosting platform’s own buildCheckaffected if drupal/core is below 10.6.22, 11.3.22 or 11.4.13; still exposed to CVE-2026-136716 if below 10.6.23, 11.3.23 or 11.4.14

How to check

Three questions, in order: which core version is installed, is the installer reachable from outside, and can the web server write the one file the installer needs to rewrite. Run them from the site’s web root as the user that owns it.

# 1. core version: below 10.6.22 / 11.3.22 / 11.4.13 is affected by this CVE; below .23 / .23 / .14 by its follow-up
cd /var/www/example.org            # the directory that holds composer.json
composer show drupal/core 2>/dev/null | grep -E '^(name|versions)'
vendor/bin/drush status --field=drupal-version 2>/dev/null

# 2. is the installer reachable? 200 or 302 means yes; 403 or 404 means your web server already blocks it
curl -s -o /dev/null -w '%{http_code}\n' https://example.org/core/install.php

# 3. the partial mitigation: the web server's user must not own or be able to write settings.php or its directory
ps -o user= -C php-fpm8.3 2>/dev/null | sort -u; ps -o user= -C php-fpm 2>/dev/null | sort -u
stat -c '%U:%G %a %n' sites/default sites/default/settings.php

If step 1 prints 10.6.23, 11.3.23, 11.4.14 or later, you are done with both advisories. If it prints 10.6.22, 11.3.22 or 11.4.13 you fixed this CVE and still have the next one, so upgrade again. Anything older is affected whatever step 2 says. Step 3 is the one that tells you how much time you had: a settings.php owned by www-data or mode 664 in a directory the same user can write means every exploit path was open.

Exploitation began on 19 November, before most sites had patched, so look back as well as forward. The signature is a successful request to the installer followed by a change to user 1 or a new administrator.

# requests to the installer since mid-November, with status codes (adjust the path for Apache or a vhost)
grep -h 'core/install.php' /var/log/nginx/access.log* | awk '{print $1, $4, $9}' | sort | uniq -c | sort -rn | head

# Drupal's own log of account events
vendor/bin/drush watchdog:show --type=user --count=50

# user 1 as it stands, and every account holding the administrator role
vendor/bin/drush sql:query "SELECT uid, name, mail, FROM_UNIXTIME(changed) FROM users_field_data WHERE uid = 1"
vendor/bin/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'"

# modules enabled recently that you did not enable
vendor/bin/drush pm:list --status=enabled --no-core --format=table

An installer request that returned 200 from an address you do not know, followed by user 1 carrying an email you did not set, is not a false positive. Treat the site as taken over and rebuild it from a backup older than that request; Restoring a Linux Server is the page for that. Changing user 1’s password on a site the attacker has already placed a module on changes nothing.

How to fix it

Update core with Composer, and because the follow-up release carries an update hook, run the database updates as well; then clear caches and reload PHP so the opcode cache drops the old files. Go to the newer versions, not the ones in this advisory’s title.

cd /var/www/example.org
composer update 'drupal/core-*' --with-all-dependencies
vendor/bin/drush updatedb -y
vendor/bin/drush cache:rebuild
composer show drupal/core | grep versions        # must now say 10.6.23, 11.3.23 or 11.4.14, not .22 / .22 / .13

sudo systemctl reload php8.3-fpm        # Debian/Ubuntu; the unit name carries the PHP version
sudo systemctl reload php-fpm           # RHEL family, Fedora, Arch

If you cannot upgrade in the next hour, do the two things the advisory names: take the installer off the web, and take the web server’s write access to settings.php away. The first is Drupal’s standing recommendation for every production site; the second is what the installer needs to finish.

# nginx: inside the server block, before the location that hands .php to FPM
location = /core/install.php { return 404; }
sudo nginx -t && sudo systemctl reload nginx

# settings.php owned by the deploy user, readable by the web server, writable by nobody; the directory likewise
sudo chown deploy:www-data sites/default/settings.php sites/default
sudo chmod 440 sites/default/settings.php
sudo chmod 550 sites/default

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

Neither step is the fix. The advisory says the permission change mitigates some exploit paths and not others, and the follow-up advisory says the state that leaves a site exposed is not visible from the admin pages, so a site that has only been hardened still needs the upgrade. Deleting install.php is also not a fix: the next Composer update restores it, and you will have stopped checking.

Sources

Related reading

This advisory page was assembled from the primary sources listed above on 29 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.