The Drupal install.php vulnerability, CVE-2026-132165 (advisory SA-CORE-2026-017), lets an attacker use the installer that ships with every Drupal site to try to reinstall it. Drupal says that can lead to site takeover or remote code execution. Fixes shipped on November 18, 2026, exploitation began the next day, and a follow-up installer bug (CVE-2026-136716, SA-CORE-2026-019) means the version you need now is 10.6.23, 11.3.23 or 11.4.14, not the first patch. Both CVEs are in CISA's Known Exploited Vulnerabilities catalog.
This guide covers how to tell whether a site is exposed, the upgrade steps (including the database update that SA-CORE-2026-019 depends on), web-server rules that block the installer on nginx and Apache, and what to look for in logs and the database if the site was reachable before you patched.
Timeline: three advisories in eight days
| Date (2026) | Event | Source |
|---|---|---|
| Nov 18 | SA-CORE-2026-017 (CVE-2026-132165): installer can be abused to reinstall Drupal. Fixed in 10.6.22, 11.3.22, 11.4.13 | SA-CORE-2026-017 |
| Nov 18 | SA-CORE-2026-018 (CVE-2026-132166): gadget chain in core, "not directly exploitable", same fixed releases | SA-CORE-2026-018 |
| Nov 19, 19:00 UTC | Earliest reported exploitation on live sites, per an update to SA-CORE-2026-017 | SA-CORE-2026-017 |
| Nov 24 | CISA adds CVE-2026-132165 to KEV (federal due date Nov 27) | CISA KEV catalog |
| Nov 25 | SA-CORE-2026-019 (CVE-2026-136716): installer access bypass for sites in edge install states, "being exploited in the wild". Fixed in 10.6.23, 11.3.23, 11.4.14 | SA-CORE-2026-019 |
| Nov 27 | CISA adds CVE-2026-136716 to KEV (due Nov 30). Drupal's securing the installer page last updated | CISA KEV, drupal.org |
SA-CORE-2026-017 is now scored 20/25, "Highly critical". SA-CORE-2026-019 is scored 21/25. Drupal credits the original report to Anthropic's OSS Scanner. The advisories deliberately don't publish exploit steps, and I won't speculate about them here. What matters operationally: the installer is reachable by default, it stays on disk after installation, and attackers were using it within about a day of disclosure.
SA-CORE-2026-019 is the reason a patch you applied on November 18 or 19 isn't enough. It covers sites left in "unusual or incomplete install states" that the first fix didn't fully handle. The advisory also says the vulnerable state isn't visible in the admin UI, and that a site already compromised through it may no longer look vulnerable. In other words, a clean-looking site after the fact proves nothing.
Are you exposed to the Drupal install.php vulnerability?
Work through three questions for each site.
1. Which core version is running?
# From the project root (Composer-managed sites)
composer show drupal/core | grep -E '^versions'
# Or ask Drupal itself
drush status --field=drupal-version
| Branch | Vulnerable to CVE-2026-132165 | Vulnerable to CVE-2026-136716 | Install |
|---|---|---|---|
| 11.4.x | below 11.4.13 | 11.4.0 – 11.4.13 | 11.4.14 |
| 11.3.x | below 11.3.22 | 11.0.0 – 11.3.22 | 11.3.23 |
| 10.6.x | below 10.6.22 | below 10.6.23 | 10.6.23 |
| 11.2.x and older, 10.5.x and older, 8, 9 | End of life, no fix | End of life, no fix | Upgrade to a supported branch |
If you're on an end-of-life branch, there's no patch coming. Your only short-term defense is blocking the installer (below), and the upgrade becomes a project rather than a patch.
2. Is the installer reachable from the internet?
Drupal's own documentation gives three URLs to test. Run them against every hostname that serves the site, including the bare origin IP if it's reachable without going through your CDN:
for u in /core/install.php /install.php /core/install.php/foo; do
printf '%-28s ' "$u"
curl -s -o /dev/null -w '%{http_code}\n' -L "https://example.com$u"
done
The expected result is 403 or 404 on all three. A 200 means the installer answers. Testing the /core/install.php/foo form matters because some nginx configurations route .php/ paths to PHP-FPM, which is exactly why Drupal's docs warn against an exact-match location = block. Check with your host too: Drupal notes that some managed platforms already block the installer for you.
3. Can the web server write to settings.php?
SA-CORE-2026-017 says "some (but not all) exploit paths are mitigated if the web server cannot write to or change permissions on" settings.php. Check it as the PHP user, not as yourself:
SITE=web/sites/default
ls -l "$SITE/settings.php"
# Replace www-data with your PHP-FPM / Apache user
sudo -u www-data test -w "$SITE/settings.php" && echo "settings.php WRITABLE by web user"
sudo -u www-data test -w "$SITE" && echo "sites/default WRITABLE by web user"
If either line prints, fix ownership so a deploy user owns the files and the web user can only read them. Drupal's file permissions guidance has the details. Something like chmod 444 settings.php and chmod 555 sites/default is the usual end state. Treat this as defense in depth, though. The advisory is explicit that it blocks some paths, not all.
Patch: upgrade core and run the database update
On a Composer-managed site:
composer update "drupal/core-*" --with-all-dependencies
drush updatedb -y
drush cache:rebuild
drush status --field=drupal-version # expect 11.4.14 / 11.3.23 / 10.6.23
The drush updatedb step is required, not optional housekeeping. SA-CORE-2026-019 says running update.php applies an update hook needed to fix existing production sites that are in the vulnerable state. If your deployment pipeline doesn't run database updates automatically, this is the week to fix that.
If your composer.json constrains core tightly (for example ~11.3.0), the update stays within that minor, which is what you want for a security release. Commit composer.lock and deploy the same lockfile everywhere. A staging site on 11.3.23 does nothing for a production site still built from last month's lock.
Block install.php on nginx and Apache
Even fully patched, there's no reason for an installed production site to serve the installer. The Drupal Security Team "strongly recommends" securing it on all new and existing sites. The snippets below follow Drupal's securing the installer page. Put them in server configuration, because a Drupal core update or Composer scaffolding run can't overwrite that.
nginx
Inside each HTTPS server block for the site:
location ^~ /core/install.php {
return 404;
}
Use ^~, not =. A ^~ prefix match stops nginx from evaluating regex locations, so it wins over the usual location ~ \.php$ block that hands requests to PHP-FPM, and it also catches /core/install.php/anything. If Drupal lives in a subdirectory, adjust the path (for example /drupal/core/install.php). Validate and reload:
nginx -t && systemctl reload nginx
Apache (server or virtual host config)
<Location "/core/install.php">
Require all denied
</Location>
To keep access for one admin IP instead:
<Location "/core/install.php">
Require ip 203.0.113.10
</Location>
Two gotchas from Drupal's docs. <Location> is not allowed in .htaccess, and putting it there gives you a 500 Internal Server Error. Also, the rule has to cover every virtual host that serves the site, the :443 vhost included, or sit outside any <VirtualHost>. Run apachectl -S to list your vhosts and apachectl configtest before reloading.
Apache when you can only use .htaccess
If you're on shared hosting without access to server config:
<Files "install.php">
Require all denied
</Files>
This needs AllowOverride to include AuthConfig. Don't edit .htaccess by hand on a Composer site, because the scaffold plugin overwrites it. Keep the lines in a separate file and have scaffolding append them:
{
"extra": {
"drupal-scaffold": {
"file-mapping": {
"[web-root]/.htaccess": {
"append": "assets/htaccess-additions.txt"
}
}
}
}
}
Then run composer update --lock and composer install, and confirm the lines sit at the end of web/.htaccess.
Deleting the file
You can also remove install.php with Composer scripts ("post-install-cmd": ["rm -f web/core/install.php"] and the same for post-update-cmd). Drupal calls this the weaker option on its own: Composer restores the file on every core update, and --no-scripts skips the removal. Use it alongside a server rule, not instead of one.
Things not to break
- Don't block
update.php. It's a separate script, and you need it for database updates. A broadlocation ~ ^/core/.*\.phprule will catch it. - New site installs and multisite. To install a new site you'll need to lift the block temporarily, or use
drush site:installfrom the CLI, which doesn't go through the web server. - After applying any rule, re-run the three-URL curl test from earlier, then confirm
drush updatedb(or/update.php) still works.
Hunt for exploitation in logs and the database
If the installer was reachable at any point after November 18, assume someone tried it. Exploitation was reported from November 19, and SA-CORE-2026-019 warns that a compromised site may no longer look vulnerable. Here's where I'd look, in order.
Web server access logs
# nginx (adjust paths for Apache: /var/log/apache2/access.log*)
zgrep -h 'install\.php' /var/log/nginx/access.log* \
| awk '{print $1, $4, $6, $7, $9}' | sort | uniq -c | sort -rn | head -50
Pay attention to POST requests and to 200 responses on install.php, especially any dated November 18 or later. A wall of GET requests returning 404 after your block went in is just scanners. A POST that returned 200 before you blocked the path is the line to investigate. If you're behind a CDN or WAF, pull its logs too, since origin logs may only show the CDN's IP addresses.
User 1 and administrator accounts
SA-CORE-2026-019 specifically calls out checking for unauthorized changes to, or actions by, user 1, then setting user 1's email address to one you control and considering a password reset.
drush sql:query "SELECT uid, name, mail, changed, login FROM users_field_data WHERE uid = 1"
drush sql:query "SELECT entity_id FROM user__roles WHERE roles_target_id = 'administrator'"
drush watchdog:show --type=user --count=100
The changed and login columns are Unix timestamps (date -d @1764000000 converts one on Linux). An email address you don't recognize, a recent changed time nobody can explain, or an administrator UID you didn't create are the findings that turn a patch job into an incident. To reset the password for user 1 safely: drush user:password <username> "<new password>". Then follow the current guidance in our NIST SP 800-63B-4 password guidelines for what that password should be.
Files changed on disk
# PHP files under sites/ and the public files directory changed in the last 3 weeks
find web/sites -name '*.php' -mtime -21 -ls
find web/sites/*/files -type f \( -name '*.php' -o -name '*.phar' -o -name '.htaccess' \) -ls
# If the codebase is in git, anything that differs from the deployed commit
git status --porcelain && git diff --stat
A PHP file in the public files directory is never legitimate. A modified settings.php (new database credentials, an added include, a changed $settings['hash_salt']) is a strong sign of a reinstall attempt that got further than it should have. If you find compromise, follow Drupal's guidance on recovering a hacked site: rebuild from a known-good backup and code from version control, and rotate database credentials, the hash salt and any API keys in settings.php. Don't try to clean the site in place.
The gadget chain (CVE-2026-132166): what it means for you
SA-CORE-2026-018 shipped in the same releases. It's a set of core methods that could turn an insecure unserialize() call somewhere else on the site into code execution. On its own it "presents no direct threat", so it's scored 14/25 with a theoretical exploit rating. The practical takeaway: if a contrib or custom module on your site unserializes user input, this chain is what makes that bug serious. Upgrading core removes the chain either way. It's also a good prompt to grep custom code for unserialize( on anything that came from a request, cookie or cache shared with untrusted input.
Frequently Asked Questions
Is CVE-2026-132165 being exploited?
Yes. Drupal's advisory was updated to say exploitation on live sites was reported from November 19, 2026 at 19:00 UTC, and CISA added the CVE to its Known Exploited Vulnerabilities catalog on November 24. The follow-up CVE-2026-136716 is also listed as exploited and was added to KEV on November 27.
Which Drupal version fixes the install.php vulnerability?
Install 11.4.14, 11.3.23 or 10.6.23, released with SA-CORE-2026-019 on November 25, 2026. The earlier 11.4.13, 11.3.22 and 10.6.22 releases fix CVE-2026-132165 but not CVE-2026-136716. After upgrading, run drush updatedb so the fix's update hook runs.
Can I just delete install.php instead of patching?
Deleting it helps, but Drupal calls it the weaker option on its own. Composer puts the file back on every core update, and the deletion script doesn't run with --no-scripts. Patch, then block /core/install.php in nginx or Apache configuration, and treat deletion as an extra layer.
Will blocking install.php break Drupal updates?
No, as long as you block only install.php. Database updates use update.php, which is a separate script, so avoid broad regex rules that match every PHP file under /core/. To install a new site later, use drush site:install or lift the block temporarily.
Is my site safe if the admin UI shows nothing unusual?
Not necessarily. SA-CORE-2026-019 says the vulnerable state isn't visible in the admin interface and that already-compromised sites may no longer appear vulnerable. Check access logs for install.php requests, verify user 1's email and recent changes in the database, and look for unexpected PHP files under sites/.
Does Drupal 7 or Drupal 9 get a fix?
Drupal 8 and 9 are end of life and get no security coverage, and the advisories don't list Drupal 7 as affected or fixed. Within Drupal 10 and 11, only the 10.6, 11.3 and 11.4 branches get patches. Older 10.x and 11.x minors need an upgrade to a supported branch.
Bottom Line
Drupal's installer bug went from disclosure to exploitation in about a day, and the first patch turned out to be incomplete. For every Drupal site you run: get core to 10.6.23, 11.3.23 or 11.4.14, run drush updatedb, block /core/install.php at the web server so the next installer bug doesn't matter, make settings.php read-only for the web user, then check access logs and user 1 for signs that someone got there first. If you're on an end-of-life branch, the server-level block is your only protection until you upgrade. For the same KEV-driven find-patch-hunt approach applied to a Java stack, see our walkthrough of the Apache Axis RCE, CVE-2026-90436. If PHP version requirements are holding back your core upgrade, the PHP 8.6 upgrade guide covers that side. And an SBOM inventory is how you find the Drupal sites nobody remembered owning.