The Drupal installer vulnerability CVE-2026-132165 lets an anonymous attacker reinstall Drupal through /core/install.php and take over the site. Status: confirmed by Drupal, exploited since November 19, 2026, and a second installer flaw was disclosed on November 25. Here are the 3 steps that close your site.
What happened, day by day
Every Drupal 8+ codebase ships an installer at core/install.php. After a site is installed, the installer is supposed to refuse to run again. In November 2026 it turned out that, under certain conditions, it does not: an attacker can start a fresh installation over a live site, set their own administrator and get remote code execution.
| Date (2026) | Event |
|---|---|
| November 16 | Drupal pre-announces a core security release rated critical, exploitable by anonymous users |
| November 18 | SA-CORE-2026-017 (CVE-2026-132165, highly critical 20/25) and SA-CORE-2026-018 (CVE-2026-132166, moderately critical 14/25) |
| November 19, 19:00 UTC | The earliest exploitation on live sites reported to the Drupal Security Team |
| November 24 | CISA adds CVE-2026-132165 to the Known Exploited Vulnerabilities catalog, federal deadline November 27 |
| November 25 | SA-CORE-2026-019 (CVE-2026-136716, highly critical 21/25): sites in an incomplete install state stay vulnerable after the first fix, already exploited |
The first flaw was discovered by Anthropic's OSS Scanner and reported together with several Drupal contributors. The second one was found while the Drupal community was looking at real attacks after the first release.
Which versions are affected
Data from the official advisories, checked on November 26, 2026:
| Branch | Fixes CVE-2026-132165 (Nov 18) | Fixes CVE-2026-136716 too (Nov 25) |
|---|---|---|
| Drupal 11.4.x | 11.4.13 | 11.4.14 |
| Drupal 11.3.x | 11.3.22 | 11.3.23 |
| Drupal 10.6.x | 10.6.22 | 10.6.23 |
| 11.2.x and older, 10.5.x and older, Drupal 8 and 9 | end of life, no fix: block the installer and upgrade the branch | |
SA-CORE-2026-018 is a gadget chain: it is dangerous only if some other bug lets an attacker feed data to unserialize(), and Drupal says it is not directly exploitable. It is fixed in the same releases, so you get it for free.
Why the installer is reachable at all
Drupal does not delete install.php after installation, and the .htaccess shipped with core does not block it. On most sites the URL answers with a page saying the site is already installed, which looks harmless. The bugs were in exactly that "already installed" check.
SA-CORE-2026-017 notes that some, but not all, attack paths fail when the web server cannot write to settings.php or change its permissions. That is a good default to keep, but not a fix. The second advisory adds that the admin UI does not show whether a site is in the vulnerable incomplete state, so you cannot rule it out by looking at the dashboard.
Step 1. Check your site in 2 minutes
Is the installer reachable?
# Drupal 8+: the installer lives in /core
curl -I https://example.com/core/install.php
# a redirect from the old path and the ".php/" trick must be blocked too
curl -IL https://example.com/install.php
curl -I https://example.com/core/install.php/foo
# 403 or 404 = blocked, 200 = the installer is reachableAll three should return 403 or 404. A 200 on any of them means the installer answers, and the site must be treated as exposed until the steps below are done. The third request matters: on servers that pass .php/ URLs to PHP, an exact-match block on /core/install.php can be bypassed.
Which core version do you run?
# core version from the command line
drush status --field=drupal-version
# or straight from Composer
composer show drupal/core --format=json | grep '"versions"' -A1Without shell access, open Reports → Status report in the admin area: the Drupal version is in the first lines.
Step 2. Block install.php right now
This takes a minute and works even before you update. The official Drupal guide to securing the installer (updated November 26, 2026) recommends a web server rule first, because it survives core updates.
nginx
# inside the HTTPS server block (find it with: nginx -T)
location ^~ /core/install.php {
return 404;
}Use ^~, not location =: the exact match misses /core/install.php/foo. Check with nginx -t and reload.
Apache
# in the VirtualHost config, not in .htaccess
<Location "/core/install.php">
Require all denied
</Location>
# then: apachectl configtest && systemctl reload apache2<Location> belongs in the server config: in .htaccess it causes a 500 error. Add it to every VirtualHost of the site, HTTP and HTTPS, or once outside them.
Shared hosting without server config
# shared hosting, Apache only: append to .htaccess
<Files "install.php">
Require all denied
</Files>The catch: .htaccess is a scaffold file, and Composer overwrites it on every scaffold run, including a plain composer install. Keep the rule in a separate file and let Composer append it, as in the next example.
Delete the file, and keep it deleted
Removing core/install.php works too, but Composer puts it back on every core install or update. Drupal suggests Composer scripts that delete it after each run:
{
"scripts": {
"post-install-cmd": ["rm -f web/core/install.php"],
"post-update-cmd": ["rm -f web/core/install.php"]
},
"extra": {
"drupal-scaffold": {
"file-mapping": {
"[web-root]/.htaccess": {
"append": "assets/htaccess-additions.txt"
}
}
}
}
}Step 3. Update core and run database updates
# 1. backup database and files first
drush sql:dump --gzip --result-file=../backup-before-update.sql
# 2. update core (use drupal/core-recommended if your project requires it)
composer update "drupal/core-*" --with-all-dependencies
# 3. run database updates: SA-CORE-2026-019 requires this step
drush updatedb -y
# 4. rebuild caches and confirm the version
drush cache:rebuild
drush status --field=drupal-versionThe updatedb step is not optional this time. SA-CORE-2026-019 says database updates must run to fix existing production sites that are stuck in an incomplete install state. Then repeat the checks from step 1 and confirm the site and update.php still work.
Signs your site was already taken over
Attacks started on November 19, before most sites were patched, so checking for compromise is part of the job. Drupal specifically asks to look at changes made by or to user 1, the account created during installation.
# requests to the installer in access logs (nginx path; Apache: /var/log/apache2/)
zgrep -h "install.php" /var/log/nginx/access.log* | grep -v " 40[34] " | tail -n 50
# user 1 and administrators (MySQL/MariaDB syntax)
drush sql:query "SELECT uid, name, mail, FROM_UNIXTIME(changed) FROM users_field_data WHERE uid = 1"
drush sql:query "SELECT u.uid, u.name, u.mail, FROM_UNIXTIME(u.created) FROM users_field_data u JOIN user__roles r ON r.entity_id = u.uid WHERE r.roles_target_id = 'administrator'"
# was settings.php changed recently?
ls -l --time-style=long-iso web/sites/default/settings.php- Requests to install.php with a 200 response after November 18 are the clearest sign.
- User 1 has a different email or a fresh "changed" date. Set its email to an address you control and reset the password.
- Administrators you do not recognise, new modules you did not install, a modified
settings.php. - Unknown PHP files in
sites/default/files, which should hold uploads only.
Drupal 7, 8 and 9
The advisories list Drupal 8 and 9 as end of life and say nothing about Drupal 7, which reached end of life on January 5, 2025. No official fixes will come for these versions. If you still run one of them, block the installer at the web server today (in Drupal 7 it sits at /install.php in the web root), then plan the move to 10.6 or 11.x, or buy extended support from a commercial vendor.
For agencies and hosts with many sites
A server-wide rule is faster than patching sites one by one: on shared nginx or Apache hosts, a single block for /core/install.php in a common include protects every Drupal site at once while updates roll out. Then check from the outside that it works:
#!/bin/sh
# sites.txt: one base URL per line
while read -r site; do
code=$(curl -s -o /dev/null -w '%{http_code}' "$site/core/install.php")
echo "$code $site"
done < sites.txt | sortSort the output and start with the 200s. Agencies that also maintain WordPress sites will recognise the pattern from the WordPress plugin backdoor in November 2026 and the PHP security release of November 19: the fix is fast, the hard part is knowing which sites you run and on what versions.
A note on third-party tools: Sitecog's live chat, forms and analytics connect to a Drupal site with one script tag and add no modules or PHP code to it. That keeps them out of this incident, but it does not replace any of the steps above.
Frequently asked questions
Is blocking install.php enough without updating Drupal?
It closes the attack path used against both installer flaws, and Drupal says a site whose installer is already secured is not vulnerable to SA-CORE-2026-019. It does not fix SA-CORE-2026-018 or the next bug. Block the installer today and update to 10.6.23, 11.3.23 or 11.4.14 as soon as you can, then run update.php.
I updated on November 18. Do I need to update again?
Yes. Versions 10.6.22, 11.3.22 and 11.4.13 fix CVE-2026-132165 but are still inside the affected range of CVE-2026-136716, published on November 25, 2026. Update to 10.6.23, 11.3.23 or 11.4.14 and run the database updates (drush updatedb): Drupal says this step is needed to fix production sites stuck in an incomplete install state.
Does this affect Drupal 7?
The advisories cover Drupal 10 and 11 and do not mention Drupal 7. Drupal 7 reached end of life on January 5, 2025, so it gets no fixes from the Drupal Security Team either way. If you still run it, block /install.php at the web server and plan a migration or paid extended support.
What about Drupal 9 and Drupal 10.5?
Drupal 8 and 9 are end of life, as are 10.5.x and 11.2.x and older branches. They are not listed as fixed, so the only safe options are blocking the installer immediately and moving to a supported branch: 10.6, 11.3 or 11.4.
Do Drupal Steward or a WAF protect my site?
Drupal says sites that use Drupal Steward are protected against SA-CORE-2026-017 and, with its recommended mitigations, against SA-CORE-2026-019. A generic WAF helps only if it has a rule for these requests. A web server rule that blocks /core/install.php is free, takes a minute and does not depend on any vendor.
What does the CISA KEV listing mean for me?
CISA added CVE-2026-132165 to its Known Exploited Vulnerabilities catalog on November 24, 2026, with a remediation deadline of November 27 for US federal agencies. For everyone else it is a strong signal: the flaw is exploited in real attacks, not just in theory, so it should jump the queue.
How do I know if my Drupal site was already hacked?
Look for requests to install.php in access logs that got a 200 response, a changed email or password for user 1, administrators you did not create, and a recently modified settings.php. If any of these show up, follow the Drupal guide for hacked sites: restore from a clean backup, rotate all secrets and review the code.
