Guide · Ilia Dubovskii · 25 November 2026

Drupal core installer takeover (CVE-2026-132165): How to Check and Fix

CVE-2026-132165 is a remote code execution bug in Drupal core, fixed on 18 November 2026 in Drupal 10.6.22, 11.3.22 and 11.4.13. Every Drupal site ships the installer at core/install.php, and under conditions Drupal has not detailed, an anonymous attacker can use it to attempt to reinstall the site, which can lead to site takeover or code execution. Drupal rates it Highly critical, 20 out of 25, and reports exploitation on live sites since 19 November 2026 at 19:00 UTC. CISA added it to the Known Exploited Vulnerabilities catalogue on 24 November 2026 with a federal deadline of 27 November 2026.

The short version

1. What CVE-2026-132165 is

Drupal core ships core/install.php, the web installer, and it stays on the server after the site is installed. Drupal's advisory says that under specific conditions an attacker can use it to attempt to reinstall Drupal on a live site. A reinstall replaces the site's configuration and administrator account, which hands the attacker the site and a path to running code. The advisory does not spell out the conditions. Its risk vector marks access complexity as Complex and the vulnerable configuration as Uncommon, so only some setups are exploitable, but Drupal has not said which (SA-CORE-2026-017).

One clue: Drupal says some, but not all, exploit paths are mitigated if the web server cannot write to or change permissions on settings.php, and the fixed installer now errors instead of fixing those permissions itself (11.4.13 release notes). The bug needs no account. It was found by Anthropic's OSS Scanner as ANT-2026-GMRPK0BU.

2. Impact: who is exposed and how badly

Any Drupal 10 or 11 site on an affected version whose /core/install.php is reachable is exposed, and that is the default: core's shipped .htaccess does not block the installer. The worst case is an administrator session on a reinstalled site, then code execution and everything the web server's credentials reach: the database, API keys in settings.php or the environment, cloud credentials on the host or task. Drupal rates the vulnerable configuration as uncommon, but there is no published way to tell which sites are safe.

Branch Affected Fixed in Notes
11.4.x11.4.0 to 11.4.1211.4.13Security coverage until April 2027
11.3.x11.3.0 to 11.3.2111.3.22Coverage until December 2026, when 11.5.0 ships
11.0.x, 11.1.x, 11.2.xallnone, end of lifeMove to 11.3.22 or 11.4.13
10.6.xbelow 10.6.2210.6.22Coverage until December 2026
10.5.x and below, 8, 9allnone, end of lifeMove to 10.6.22

Not affected: sites on 10.6.22, 11.3.22 or 11.4.13 or later. Sites whose web server already returns 403 or 404 for /core/install.php have the known attack path closed but still run vulnerable code, and Drupal's advisory treats that block as a stopgap until you upgrade. Sites behind Drupal Steward, the Security Team's paid firewall, are protected from known vectors but should still upgrade (Drupal Steward). Drupal 10 and 11 are not Debian or Ubuntu packages, so there is no distribution package to wait for.

3. How to check if you are affected

  1. From outside, check whether the installer is reachable. A 200 means exposed; 403 or 404 means blocked (Drupal docs).
curl -I https://example.com/core/install.php
curl -IL https://example.com/install.php
curl -I https://example.com/core/install.php/foo
  1. On the host, read the core version. Drush prints it with the documented --field option; without Drush, the constant is in core/lib/Drupal.php (Drush core:status, Drupal.php at 11.4.13).
drush core:status --field=drupal-version
grep "const VERSION" web/core/lib/Drupal.php
  1. In a Composer project, ask Composer. The lock file is what gets deployed, so check it rather than composer.json. On managed Drupal hosting the core version is still yours: run this against the repository you deploy.
composer show drupal/core
composer outdated "drupal/*"
grep -A1 '"name": "drupal/core"' composer.lock
  1. Container image. The official drupal image sets DRUPAL_VERSION in the environment (Dockerfile template). Check the running container, since floating tags such as latest move.
docker run --rm drupal:11.4-apache printenv DRUPAL_VERSION
docker exec <container> printenv DRUPAL_VERSION
grep -i "^FROM drupal" Dockerfile
  1. Kubernetes and AWS ECS. List the image each workload runs, then compare the tag or run the printenv check inside a pod or task.
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{" "}{.metadata.name}{" "}{.spec.containers[*].image}{"\n"}{end}' | grep -i drupal
aws ecs describe-task-definition --task-definition <family> --query 'taskDefinition.containerDefinitions[*].image'

4. How to fix it

  1. Pick the target. 11.4.x goes to 11.4.13, 11.3.x to 11.3.22, 10.6.x to 10.6.22. End of life branches have no fix; move to a supported branch. The releases contain only security fixes.
  1. Composer projects. Drupal's documented command for a drupal/core-recommended project (Updating Drupal core via Composer). In production, deploy the updated composer.lock, run composer install --no-dev, then drush updatedb.
composer update "drupal/core-*" --with-all-dependencies   # changes composer.lock
drush updatedb                                           # changes the database
drush cache:rebuild                                      # clears and rebuilds caches
  1. Containers. Change the FROM line to a fixed tag such as drupal:11.4.13-apache-bookworm, drupal:11.3.22-fpm-alpine or drupal:10.6.22-php8.3-apache (Docker Hub), rebuild, and roll the Deployment or ECS service.
  1. Confirm the running process is fixed. Repeat check step 2 or 4 against the live host or container. The answer should be 10.6.22, 11.3.22 or 11.4.13. Then block the installer as described in the next section; Drupal recommends it even on patched sites.
  1. Watch for the known regression. The 18 November releases carry a theme registry bug, issue #3639497, that breaks some contributed code including Search API with the error "Theme hook field not found." The fix ships in 11.4.14; Drupal names no fix for 11.3.x or 10.6.x and tells affected sites on 11.3.22 or 10.6.22 to move to 11.4 (11.3.22 release notes). Do not roll back.

5. If you cannot patch today

Drupal documents one mitigation: block HTTP access to the installer, in guidance updated 21 November 2026 (Securing the installer). These are web server configuration changes.

<Location "/core/install.php">
  Require all denied
</Location>
location ^~ /core/install.php {
  return 404;
}

Limits: the block closes the attack path but does not fix the code. Drupal says it does not affect update.php or Drush, but a new site cannot be installed through the browser while it is in place. Making settings.php read-only mitigates some but not all exploit paths. Generic cuts also apply: take the site off the public internet or restrict it by IP until patched.

6. How to tell if you were already hit

Drupal has published no indicators of compromise. Two early write-ups list overlapping places to look (Rescana, University of Toronto):

If you find a reinstall, rebuild from a known good backup. The usual pattern after code execution is that the attacker reads the environment and settings.php for credentials and uses them from elsewhere, so rotate anything the web server could read.

7. How autonomous DevOps handles a bug like this

Two of the check steps above are inventory questions: which image tag each ECS task definition runs, and what each composer.lock pins for drupal/core. Compass, Beamreach's open-source operations agent for AWS, keeps that map current, with whether each workload faces the internet, so on 18 November the answer is a lookup rather than a sweep across repositories (Compass). Drupal is on its default product list and this CVE is in KEV, so it meets the threshold to open a fix without a click.

The fix is the kind of change its patch pull requests make: a base image tag from drupal:11.4.12-apache to drupal:11.4.13-apache, or the direct dependency drupal/core-recommended moved to 11.4.13 in composer.json. The pull request runs the repository's CI and the image build, plus an optional canary on a staging copy that compares health checks, 5xx rate and p95 latency with before, where the 11.4.13 theme regression would show if staging exercises that code. Compass never merges; a person does (patching docs).

The limits matter here. Blocking /core/install.php is a web server configuration change, not a version bump, so that step stays with a person. Compass is not a WAF and does not block the exploit request. It covers AWS only, not Kubernetes clusters as such or on-premises hosting.

For the window before the fix is deployed, a honeytoken helps. A decoy database login or AWS key in the task's environment trips when an attacker who has reinstalled the site uses it, and the policy-gated response restarts the ECS task or deactivates the key, with snapshot and rollback. That does not fix the vulnerability and only catches an attacker who touches the decoy, but our PHP2Shell incident in October 2026 was contained that way in under two minutes (write-up).

8. Sources

9. FAQ

Is my Drupal site affected by CVE-2026-132165?

Yes if it runs Drupal core below 10.6.22, 11.0.0 through 11.3.21, or 11.4.0 through 11.4.12. If /core/install.php returns 200 from the internet the site is also exposed. Drupal says only uncommon configurations are exploitable but has not said which, so treat every unpatched site as affected, even one where the installer is blocked.

Which Drupal version fixes CVE-2026-132165?

Drupal 11.4.13, 11.3.22 and 10.6.22, released on 18 November 2026. Drupal 11.2.x and below and 10.5.x and below are end of life and get no fix. Official Docker images with those version tags are on Docker Hub.

Is CVE-2026-132165 being exploited?

Yes. Drupal updated SA-CORE-2026-017 to report exploitation on live sites as early as 2026-11-19 19:00 UTC, one day after the fix. CISA added it to the Known Exploited Vulnerabilities catalogue on 24 November 2026 with a 27 November 2026 due date for federal agencies. Ransomware use is listed as unknown.

Is there a workaround for the Drupal installer vulnerability?

Block access to /core/install.php in the web server configuration. Drupal gives Apache and Nginx snippets and a .htaccess option, asks every site to do this even after upgrading, and says the block does not affect update.php or Drush. Making settings.php unwritable blocks some but not all exploit paths. Neither replaces the upgrade.

Last checked: 25 November 2026. Written from the vendor advisory and the CVE record, linked below. Confirm against the vendor advisory before acting.

Related: CVE Watch: all pages · How to protect against *2Shell vulnerabilities · Automated patching compared · AWS canary credentials